chore: update module path to git.kingecg.top
This commit is contained in:
parent
c290c98bae
commit
de1bbbfb7b
|
@ -209,8 +209,8 @@ sudo journalctl -u gohttpd.service
|
||||||
|
|
||||||
### 依赖库
|
### 依赖库
|
||||||
- `module git.kingecg.top/kingecg/cmux`: 多路复用支持
|
- `module git.kingecg.top/kingecg/cmux`: 多路复用支持
|
||||||
- `git.pyer.club/kingecg/godaemon`: 守护进程支持
|
- `git.kingecg.top/kingecg/godaemon`: 守护进程支持
|
||||||
- `git.pyer.club/kingecg/gologger`: 自定义日志库
|
- `git.kingecg.top/kingecg/gologger`: 自定义日志库
|
||||||
- `github.com/golang-jwt/jwt/v5`: JWT支持
|
- `github.com/golang-jwt/jwt/v5`: JWT支持
|
||||||
- `github.com/nanmu42/gzip`: Gzip压缩支持
|
- `github.com/nanmu42/gzip`: Gzip压缩支持
|
||||||
- `github.com/samber/lo`: 工具库
|
- `github.com/samber/lo`: 工具库
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"module git.kingecg.top/kingecg/gohttpd/model"
|
"module git.kingecg.top/kingecg/gohttpd/model"
|
||||||
"git.pyer.club/kingecg/gohttpd/server"
|
"git.kingecg.top/kingecg/gohttpd/server"
|
||||||
"github.com/gin-gonic/gin" // 添加Gin框架导入
|
"github.com/gin-gonic/gin" // 添加Gin框架导入
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"module git.kingecg.top/kingecg/gohttpd/model"
|
"module git.kingecg.top/kingecg/gohttpd/model"
|
||||||
"git.pyer.club/kingecg/gohttpd/server"
|
"git.kingecg.top/kingecg/gohttpd/server"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/golang-jwt/jwt/v5"
|
"github.com/golang-jwt/jwt/v5"
|
||||||
)
|
)
|
||||||
|
|
6
go.mod
6
go.mod
|
@ -5,9 +5,9 @@ go 1.23.0
|
||||||
toolchain go1.23.1
|
toolchain go1.23.1
|
||||||
|
|
||||||
require (
|
require (
|
||||||
module git.kingecg.top/kingecg/cmux v0.0.0-20250603150926-1a9da8d893b9
|
git.kingecg.top/kingecg/cmux v0.0.0-20250603150926-1a9da8d893b9
|
||||||
git.pyer.club/kingecg/godaemon v0.0.0-20231210104221-3a72649c6511
|
git.kingecg.top/kingecg/godaemon v0.0.0-20231210104221-3a72649c6511
|
||||||
git.pyer.club/kingecg/gologger v1.0.1
|
git.kingecg.top/kingecg/gologger v1.0.1
|
||||||
github.com/golang-jwt/jwt/v5 v5.2.1
|
github.com/golang-jwt/jwt/v5 v5.2.1
|
||||||
github.com/nanmu42/gzip v1.2.0
|
github.com/nanmu42/gzip v1.2.0
|
||||||
github.com/samber/lo v1.39.0
|
github.com/samber/lo v1.39.0
|
||||||
|
|
10
go.sum
10
go.sum
|
@ -1,9 +1,9 @@
|
||||||
module git.kingecg.top/kingecg/cmux v0.0.0-20250603150926-1a9da8d893b9 h1:0J9uGBOIhoonvvn1F7OSMrdhRq2KCYrRxdkSvUm4oGg=
|
module git.kingecg.top/kingecg/cmux v0.0.0-20250603150926-1a9da8d893b9 h1:0J9uGBOIhoonvvn1F7OSMrdhRq2KCYrRxdkSvUm4oGg=
|
||||||
git.pyer.club/kingecg/cmux v0.0.0-20250603150926-1a9da8d893b9/go.mod h1:z3C1aFTj8jWd0I/4w3noDrnI1aEJbAKa2CFKcntArnI=
|
git.kingecg.top/kingecg/cmux v0.0.0-20250603150926-1a9da8d893b9/go.mod h1:z3C1aFTj8jWd0I/4w3noDrnI1aEJbAKa2CFKcntArnI=
|
||||||
git.pyer.club/kingecg/godaemon v0.0.0-20231210104221-3a72649c6511 h1:qgNgm8ewkZdK7S3gaMagPKi90wgHpuGjpQdBVz21tjE=
|
git.kingecg.top/kingecg/godaemon v0.0.0-20231210104221-3a72649c6511 h1:qgNgm8ewkZdK7S3gaMagPKi90wgHpuGjpQdBVz21tjE=
|
||||||
git.pyer.club/kingecg/godaemon v0.0.0-20231210104221-3a72649c6511/go.mod h1:6cL7tPbT1m6EaTvrbDg/YhoZG0Mms8WBD10yRGhng4o=
|
git.kingecg.top/kingecg/godaemon v0.0.0-20231210104221-3a72649c6511/go.mod h1:6cL7tPbT1m6EaTvrbDg/YhoZG0Mms8WBD10yRGhng4o=
|
||||||
git.pyer.club/kingecg/gologger v1.0.1 h1:snCb0ePlfDUglX+CHwNzq5MRK5uNTnPUks1Dnapl/p8=
|
git.kingecg.top/kingecg/gologger v1.0.1 h1:snCb0ePlfDUglX+CHwNzq5MRK5uNTnPUks1Dnapl/p8=
|
||||||
git.pyer.club/kingecg/gologger v1.0.1/go.mod h1:SNSl2jRHPzIpHSzdKOoVG798rtYMjPDPFyxUrEgivkY=
|
git.kingecg.top/kingecg/gologger v1.0.1/go.mod h1:SNSl2jRHPzIpHSzdKOoVG798rtYMjPDPFyxUrEgivkY=
|
||||||
github.com/bytedance/sonic v1.13.3 h1:MS8gmaH16Gtirygw7jV91pDCN33NyMrPbN7qiYhEsF0=
|
github.com/bytedance/sonic v1.13.3 h1:MS8gmaH16Gtirygw7jV91pDCN33NyMrPbN7qiYhEsF0=
|
||||||
github.com/bytedance/sonic v1.13.3/go.mod h1:o68xyaF9u2gvVBuGHPlUVCy+ZfmNNO5ETf1+KgkJhz4=
|
github.com/bytedance/sonic v1.13.3/go.mod h1:o68xyaF9u2gvVBuGHPlUVCy+ZfmNNO5ETf1+KgkJhz4=
|
||||||
github.com/bytedance/sonic/loader v0.1.1/go.mod h1:ncP89zfokxS5LZrJxl5z0UJcsk4M4yY2JpfqGeCtNLU=
|
github.com/bytedance/sonic/loader v0.1.1/go.mod h1:ncP89zfokxS5LZrJxl5z0UJcsk4M4yY2JpfqGeCtNLU=
|
||||||
|
|
|
@ -8,10 +8,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"module git.kingecg.top/kingecg/gohttpd/admin"
|
"module git.kingecg.top/kingecg/gohttpd/admin"
|
||||||
"git.pyer.club/kingecg/gohttpd/model"
|
"git.kingecg.top/kingecg/gohttpd/model"
|
||||||
"git.pyer.club/kingecg/gohttpd/server"
|
"git.kingecg.top/kingecg/gohttpd/server"
|
||||||
"git.pyer.club/kingecg/gohttpd/utils"
|
"git.kingecg.top/kingecg/gohttpd/utils"
|
||||||
"git.pyer.club/kingecg/gologger"
|
"git.kingecg.top/kingecg/gologger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type GoHttp struct {
|
type GoHttp struct {
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"module git.kingecg.top/kingecg/gohttpd/healthcheck"
|
"module git.kingecg.top/kingecg/gohttpd/healthcheck"
|
||||||
"git.pyer.club/kingecg/gohttpd/model"
|
"git.kingecg.top/kingecg/gohttpd/model"
|
||||||
"git.pyer.club/kingecg/gologger"
|
"git.kingecg.top/kingecg/gologger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProxyHandler struct {
|
type ProxyHandler struct {
|
||||||
|
|
2
main.go
2
main.go
|
@ -6,7 +6,7 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"module git.kingecg.top/kingecg/godaemon"
|
"module git.kingecg.top/kingecg/godaemon"
|
||||||
"git.pyer.club/kingecg/gologger"
|
"git.kingecg.top/kingecg/gologger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// main 函数是程序的入口点
|
// main 函数是程序的入口点
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"module git.kingecg.top/kingecg/gohttpd/utils"
|
"module git.kingecg.top/kingecg/gohttpd/utils"
|
||||||
"git.pyer.club/kingecg/gologger"
|
"git.kingecg.top/kingecg/gologger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// HealthCheckConfig 定义健康检查配置
|
// HealthCheckConfig 定义健康检查配置
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
|
|
||||||
"module git.kingecg.top/kingecg/gohttpd/utils"
|
"module git.kingecg.top/kingecg/gohttpd/utils"
|
||||||
"git.pyer.club/kingecg/gologger"
|
"git.kingecg.top/kingecg/gologger"
|
||||||
"golang.org/x/crypto/acme"
|
"golang.org/x/crypto/acme"
|
||||||
"golang.org/x/crypto/acme/autocert"
|
"golang.org/x/crypto/acme/autocert"
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
// "compress/gzip"
|
// "compress/gzip"
|
||||||
"module git.kingecg.top/kingecg/gohttpd/model"
|
"module git.kingecg.top/kingecg/gohttpd/model"
|
||||||
"git.pyer.club/kingecg/gologger"
|
"git.kingecg.top/kingecg/gologger"
|
||||||
"github.com/nanmu42/gzip"
|
"github.com/nanmu42/gzip"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"module git.kingecg.top/kingecg/cmux"
|
"module git.kingecg.top/kingecg/cmux"
|
||||||
"git.pyer.club/kingecg/gohttpd/model"
|
"git.kingecg.top/kingecg/gohttpd/model"
|
||||||
logger "git.pyer.club/kingecg/gologger"
|
logger "git.kingecg.top/kingecg/gologger"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ServerManager map[string]*ServerListener = make(map[string]*ServerListener)
|
var ServerManager map[string]*ServerListener = make(map[string]*ServerListener)
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"module git.kingecg.top/kingecg/gohttpd/model"
|
"module git.kingecg.top/kingecg/gohttpd/model"
|
||||||
"git.pyer.club/kingecg/gologger"
|
"git.kingecg.top/kingecg/gologger"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/golang-jwt/jwt/v5"
|
"github.com/golang-jwt/jwt/v5"
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
handler "module git.kingecg.top/kingecg/gohttpd/handler"
|
handler "module git.kingecg.top/kingecg/gohttpd/handler"
|
||||||
"git.pyer.club/kingecg/gohttpd/model"
|
"git.kingecg.top/kingecg/gohttpd/model"
|
||||||
logger "git.pyer.club/kingecg/gologger"
|
logger "git.kingecg.top/kingecg/gologger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RequestCtxKey string
|
type RequestCtxKey string
|
||||||
|
|
Loading…
Reference in New Issue