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