feat 替换go mod 名称

This commit is contained in:
timerzz 2024-12-11 11:08:36 +08:00
parent 364e132845
commit db0aac347b
8 changed files with 27 additions and 27 deletions

2
go.mod
View File

@ -1,4 +1,4 @@
module gitea.timerzz.com/kedaya_haitao/proxy-detector module gitea.timerzz.com/proxy-detector
go 1.22.5 go 1.22.5

12
main.go
View File

@ -5,12 +5,12 @@ import (
"flag" "flag"
"os" "os"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/config" "gitea.timerzz.com/proxy-detector/config"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/log" "gitea.timerzz.com/proxy-detector/log"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/getter" "gitea.timerzz.com/proxy-detector/pkg/getter"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/proxy" "gitea.timerzz.com/proxy-detector/pkg/proxy"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/proxy/structs" "gitea.timerzz.com/proxy-detector/pkg/proxy/structs"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/worker" "gitea.timerzz.com/proxy-detector/pkg/worker"
"github.com/gofiber/fiber/v3" "github.com/gofiber/fiber/v3"
"github.com/gofiber/fiber/v3/middleware/cors" "github.com/gofiber/fiber/v3/middleware/cors"
"github.com/gofiber/fiber/v3/middleware/recover" "github.com/gofiber/fiber/v3/middleware/recover"

View File

@ -3,8 +3,8 @@ package getter
import ( import (
"errors" "errors"
configv1 "gitea.timerzz.com/kedaya_haitao/proxy-detector/config" configv1 "gitea.timerzz.com/proxy-detector/config"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/proxy/structs" "gitea.timerzz.com/proxy-detector/pkg/proxy/structs"
) )
type Getter interface { type Getter interface {

View File

@ -4,9 +4,9 @@ import (
"fmt" "fmt"
"time" "time"
configv1 "gitea.timerzz.com/kedaya_haitao/proxy-detector/config" configv1 "gitea.timerzz.com/proxy-detector/config"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/log" "gitea.timerzz.com/proxy-detector/log"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/proxy/structs" "gitea.timerzz.com/proxy-detector/pkg/proxy/structs"
"github.com/go-resty/resty/v2" "github.com/go-resty/resty/v2"
"github.com/metacubex/mihomo/adapter" "github.com/metacubex/mihomo/adapter"
clash_config "github.com/metacubex/mihomo/config" clash_config "github.com/metacubex/mihomo/config"

View File

@ -4,10 +4,10 @@ import (
"os" "os"
"time" "time"
configv1 "gitea.timerzz.com/kedaya_haitao/proxy-detector/config" configv1 "gitea.timerzz.com/proxy-detector/config"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/log" "gitea.timerzz.com/proxy-detector/log"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/proxy/structs" "gitea.timerzz.com/proxy-detector/pkg/proxy/structs"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/templates" "gitea.timerzz.com/proxy-detector/pkg/templates"
"github.com/go-resty/resty/v2" "github.com/go-resty/resty/v2"
"github.com/metacubex/mihomo/adapter" "github.com/metacubex/mihomo/adapter"
clash_config "github.com/metacubex/mihomo/config" clash_config "github.com/metacubex/mihomo/config"

View File

@ -11,10 +11,10 @@ import (
"sync" "sync"
"time" "time"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/config" "gitea.timerzz.com/proxy-detector/config"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/log" "gitea.timerzz.com/proxy-detector/log"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/proxy/structs" "gitea.timerzz.com/proxy-detector/pkg/proxy/structs"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/worker" "gitea.timerzz.com/proxy-detector/pkg/worker"
C "github.com/metacubex/mihomo/constant" C "github.com/metacubex/mihomo/constant"
) )

View File

@ -5,10 +5,10 @@ import (
"sync" "sync"
"time" "time"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/getter" "gitea.timerzz.com/proxy-detector/pkg/getter"
healthcheck "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/health-check" healthcheck "gitea.timerzz.com/proxy-detector/pkg/health-check"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/proxy/structs" "gitea.timerzz.com/proxy-detector/pkg/proxy/structs"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/worker" "gitea.timerzz.com/proxy-detector/pkg/worker"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

View File

@ -5,9 +5,9 @@ import (
"fmt" "fmt"
"time" "time"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/log" "gitea.timerzz.com/proxy-detector/log"
healthcheck "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/health-check" healthcheck "gitea.timerzz.com/proxy-detector/pkg/health-check"
"gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/proxy/structs" "gitea.timerzz.com/proxy-detector/pkg/proxy/structs"
) )
func CronHealthCheck(ctx context.Context, interval int) { func CronHealthCheck(ctx context.Context, interval int) {