chore: update module path to git.kingecg.top
This commit is contained in:
parent
de1bbbfb7b
commit
da05fe2b3d
|
@ -208,7 +208,7 @@ sudo journalctl -u gohttpd.service
|
|||
- Admin: 管理后台API
|
||||
|
||||
### 依赖库
|
||||
- `module git.kingecg.top/kingecg/cmux`: 多路复用支持
|
||||
- `git.kingecg.top/kingecg/cmux`: 多路复用支持
|
||||
- `git.kingecg.top/kingecg/godaemon`: 守护进程支持
|
||||
- `git.kingecg.top/kingecg/gologger`: 自定义日志库
|
||||
- `github.com/golang-jwt/jwt/v5`: JWT支持
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"net/http"
|
||||
"runtime"
|
||||
|
||||
"module git.kingecg.top/kingecg/gohttpd/model"
|
||||
"git.kingecg.top/kingecg/gohttpd/model"
|
||||
"git.kingecg.top/kingecg/gohttpd/server"
|
||||
"github.com/gin-gonic/gin" // 添加Gin框架导入
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"module git.kingecg.top/kingecg/gohttpd/model"
|
||||
"git.kingecg.top/kingecg/gohttpd/model"
|
||||
"git.kingecg.top/kingecg/gohttpd/server"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/golang-jwt/jwt/v5"
|
||||
|
|
2
go.sum
2
go.sum
|
@ -1,4 +1,4 @@
|
|||
module git.kingecg.top/kingecg/cmux v0.0.0-20250603150926-1a9da8d893b9 h1:0J9uGBOIhoonvvn1F7OSMrdhRq2KCYrRxdkSvUm4oGg=
|
||||
git.kingecg.top/kingecg/cmux v0.0.0-20250603150926-1a9da8d893b9 h1:0J9uGBOIhoonvvn1F7OSMrdhRq2KCYrRxdkSvUm4oGg=
|
||||
git.kingecg.top/kingecg/cmux v0.0.0-20250603150926-1a9da8d893b9/go.mod h1:z3C1aFTj8jWd0I/4w3noDrnI1aEJbAKa2CFKcntArnI=
|
||||
git.kingecg.top/kingecg/godaemon v0.0.0-20231210104221-3a72649c6511 h1:qgNgm8ewkZdK7S3gaMagPKi90wgHpuGjpQdBVz21tjE=
|
||||
git.kingecg.top/kingecg/godaemon v0.0.0-20231210104221-3a72649c6511/go.mod h1:6cL7tPbT1m6EaTvrbDg/YhoZG0Mms8WBD10yRGhng4o=
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"module git.kingecg.top/kingecg/gohttpd/admin"
|
||||
"git.kingecg.top/kingecg/gohttpd/admin"
|
||||
"git.kingecg.top/kingecg/gohttpd/model"
|
||||
"git.kingecg.top/kingecg/gohttpd/server"
|
||||
"git.kingecg.top/kingecg/gohttpd/utils"
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"module git.kingecg.top/kingecg/gologger"
|
||||
"git.kingecg.top/kingecg/gologger"
|
||||
)
|
||||
|
||||
type FileHandler struct {
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"module git.kingecg.top/kingecg/gohttpd/healthcheck"
|
||||
"git.kingecg.top/kingecg/gohttpd/healthcheck"
|
||||
"git.kingecg.top/kingecg/gohttpd/model"
|
||||
"git.kingecg.top/kingecg/gologger"
|
||||
)
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"net/http"
|
||||
"time"
|
||||
|
||||
"module git.kingecg.top/kingecg/gologger"
|
||||
"git.kingecg.top/kingecg/gologger"
|
||||
)
|
||||
|
||||
// HealthChecker 健康检查器
|
||||
|
|
2
main.go
2
main.go
|
@ -5,7 +5,7 @@ import (
|
|||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"module git.kingecg.top/kingecg/godaemon"
|
||||
"git.kingecg.top/kingecg/godaemon"
|
||||
"git.kingecg.top/kingecg/gologger"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"encoding/json"
|
||||
"os"
|
||||
|
||||
"module git.kingecg.top/kingecg/gohttpd/utils"
|
||||
"git.kingecg.top/kingecg/gohttpd/utils"
|
||||
"git.kingecg.top/kingecg/gologger"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"crypto/tls"
|
||||
|
||||
"module git.kingecg.top/kingecg/gohttpd/utils"
|
||||
"git.kingecg.top/kingecg/gohttpd/utils"
|
||||
"git.kingecg.top/kingecg/gologger"
|
||||
"golang.org/x/crypto/acme"
|
||||
"golang.org/x/crypto/acme/autocert"
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"strings"
|
||||
|
||||
// "compress/gzip"
|
||||
"module git.kingecg.top/kingecg/gohttpd/model"
|
||||
"git.kingecg.top/kingecg/gohttpd/model"
|
||||
"git.kingecg.top/kingecg/gologger"
|
||||
"github.com/nanmu42/gzip"
|
||||
)
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"bufio"
|
||||
"io"
|
||||
|
||||
"module git.kingecg.top/kingecg/cmux"
|
||||
"git.kingecg.top/kingecg/cmux"
|
||||
"git.kingecg.top/kingecg/gohttpd/model"
|
||||
logger "git.kingecg.top/kingecg/gologger"
|
||||
)
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"reflect"
|
||||
"strings"
|
||||
|
||||
"module git.kingecg.top/kingecg/gohttpd/model"
|
||||
"git.kingecg.top/kingecg/gohttpd/model"
|
||||
"git.kingecg.top/kingecg/gologger"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/golang-jwt/jwt/v5"
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"sort"
|
||||
"strings"
|
||||
|
||||
handler "module git.kingecg.top/kingecg/gohttpd/handler"
|
||||
handler "git.kingecg.top/kingecg/gohttpd/handler"
|
||||
"git.kingecg.top/kingecg/gohttpd/model"
|
||||
logger "git.kingecg.top/kingecg/gologger"
|
||||
)
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"regexp"
|
||||
"strings"
|
||||
|
||||
"module git.kingecg.top/kingecg/gologger"
|
||||
"git.kingecg.top/kingecg/gologger"
|
||||
)
|
||||
|
||||
type UrlParamMatcher struct {
|
||||
|
|
Loading…
Reference in New Issue