chore: update module path to git.kingecg.top

This commit is contained in:
kingecg 2025-06-26 01:05:19 +08:00
parent de1bbbfb7b
commit da05fe2b3d
16 changed files with 16 additions and 16 deletions

View File

@ -208,7 +208,7 @@ sudo journalctl -u gohttpd.service
- Admin: 管理后台API - Admin: 管理后台API
### 依赖库 ### 依赖库
- `module git.kingecg.top/kingecg/cmux`: 多路复用支持 - `git.kingecg.top/kingecg/cmux`: 多路复用支持
- `git.kingecg.top/kingecg/godaemon`: 守护进程支持 - `git.kingecg.top/kingecg/godaemon`: 守护进程支持
- `git.kingecg.top/kingecg/gologger`: 自定义日志库 - `git.kingecg.top/kingecg/gologger`: 自定义日志库
- `github.com/golang-jwt/jwt/v5`: JWT支持 - `github.com/golang-jwt/jwt/v5`: JWT支持

View File

@ -5,7 +5,7 @@ import (
"net/http" "net/http"
"runtime" "runtime"
"module git.kingecg.top/kingecg/gohttpd/model" "git.kingecg.top/kingecg/gohttpd/model"
"git.kingecg.top/kingecg/gohttpd/server" "git.kingecg.top/kingecg/gohttpd/server"
"github.com/gin-gonic/gin" // 添加Gin框架导入 "github.com/gin-gonic/gin" // 添加Gin框架导入
) )

View File

@ -8,7 +8,7 @@ import (
"strings" "strings"
"time" "time"
"module git.kingecg.top/kingecg/gohttpd/model" "git.kingecg.top/kingecg/gohttpd/model"
"git.kingecg.top/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"

2
go.sum
View File

@ -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/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 h1:qgNgm8ewkZdK7S3gaMagPKi90wgHpuGjpQdBVz21tjE=
git.kingecg.top/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=

View File

@ -7,7 +7,7 @@ import (
"path/filepath" "path/filepath"
"strings" "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/model"
"git.kingecg.top/kingecg/gohttpd/server" "git.kingecg.top/kingecg/gohttpd/server"
"git.kingecg.top/kingecg/gohttpd/utils" "git.kingecg.top/kingecg/gohttpd/utils"

View File

@ -10,7 +10,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"module git.kingecg.top/kingecg/gologger" "git.kingecg.top/kingecg/gologger"
) )
type FileHandler struct { type FileHandler struct {

View File

@ -9,7 +9,7 @@ import (
"strings" "strings"
"time" "time"
"module git.kingecg.top/kingecg/gohttpd/healthcheck" "git.kingecg.top/kingecg/gohttpd/healthcheck"
"git.kingecg.top/kingecg/gohttpd/model" "git.kingecg.top/kingecg/gohttpd/model"
"git.kingecg.top/kingecg/gologger" "git.kingecg.top/kingecg/gologger"
) )

View File

@ -5,7 +5,7 @@ import (
"net/http" "net/http"
"time" "time"
"module git.kingecg.top/kingecg/gologger" "git.kingecg.top/kingecg/gologger"
) )
// HealthChecker 健康检查器 // HealthChecker 健康检查器

View File

@ -5,7 +5,7 @@ import (
"os/signal" "os/signal"
"syscall" "syscall"
"module git.kingecg.top/kingecg/godaemon" "git.kingecg.top/kingecg/godaemon"
"git.kingecg.top/kingecg/gologger" "git.kingecg.top/kingecg/gologger"
) )

View File

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"os" "os"
"module git.kingecg.top/kingecg/gohttpd/utils" "git.kingecg.top/kingecg/gohttpd/utils"
"git.kingecg.top/kingecg/gologger" "git.kingecg.top/kingecg/gologger"
) )

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"crypto/tls" "crypto/tls"
"module git.kingecg.top/kingecg/gohttpd/utils" "git.kingecg.top/kingecg/gohttpd/utils"
"git.kingecg.top/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"

View File

@ -7,7 +7,7 @@ import (
"strings" "strings"
// "compress/gzip" // "compress/gzip"
"module git.kingecg.top/kingecg/gohttpd/model" "git.kingecg.top/kingecg/gohttpd/model"
"git.kingecg.top/kingecg/gologger" "git.kingecg.top/kingecg/gologger"
"github.com/nanmu42/gzip" "github.com/nanmu42/gzip"
) )

View File

@ -9,7 +9,7 @@ import (
"bufio" "bufio"
"io" "io"
"module git.kingecg.top/kingecg/cmux" "git.kingecg.top/kingecg/cmux"
"git.kingecg.top/kingecg/gohttpd/model" "git.kingecg.top/kingecg/gohttpd/model"
logger "git.kingecg.top/kingecg/gologger" logger "git.kingecg.top/kingecg/gologger"
) )

View File

@ -10,7 +10,7 @@ import (
"reflect" "reflect"
"strings" "strings"
"module git.kingecg.top/kingecg/gohttpd/model" "git.kingecg.top/kingecg/gohttpd/model"
"git.kingecg.top/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"

View File

@ -7,7 +7,7 @@ import (
"sort" "sort"
"strings" "strings"
handler "module git.kingecg.top/kingecg/gohttpd/handler" handler "git.kingecg.top/kingecg/gohttpd/handler"
"git.kingecg.top/kingecg/gohttpd/model" "git.kingecg.top/kingecg/gohttpd/model"
logger "git.kingecg.top/kingecg/gologger" logger "git.kingecg.top/kingecg/gologger"
) )

View File

@ -5,7 +5,7 @@ import (
"regexp" "regexp"
"strings" "strings"
"module git.kingecg.top/kingecg/gologger" "git.kingecg.top/kingecg/gologger"
) )
type UrlParamMatcher struct { type UrlParamMatcher struct {