diff --git a/go.mod b/go.mod index b45df54..be9a6e6 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitea.timerzz.com/kedaya_haitao/proxy-detector +module gitea.timerzz.com/proxy-detector go 1.22.5 diff --git a/main.go b/main.go index 2b4f61f..9bb376d 100644 --- a/main.go +++ b/main.go @@ -5,12 +5,12 @@ import ( "flag" "os" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/config" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/log" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/getter" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/proxy" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/proxy/structs" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/worker" + "gitea.timerzz.com/proxy-detector/config" + "gitea.timerzz.com/proxy-detector/log" + "gitea.timerzz.com/proxy-detector/pkg/getter" + "gitea.timerzz.com/proxy-detector/pkg/proxy" + "gitea.timerzz.com/proxy-detector/pkg/proxy/structs" + "gitea.timerzz.com/proxy-detector/pkg/worker" "github.com/gofiber/fiber/v3" "github.com/gofiber/fiber/v3/middleware/cors" "github.com/gofiber/fiber/v3/middleware/recover" diff --git a/pkg/getter/base.go b/pkg/getter/base.go index 768cbe9..01d9d52 100644 --- a/pkg/getter/base.go +++ b/pkg/getter/base.go @@ -3,8 +3,8 @@ package getter import ( "errors" - configv1 "gitea.timerzz.com/kedaya_haitao/proxy-detector/config" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/proxy/structs" + configv1 "gitea.timerzz.com/proxy-detector/config" + "gitea.timerzz.com/proxy-detector/pkg/proxy/structs" ) type Getter interface { diff --git a/pkg/getter/clash.go b/pkg/getter/clash.go index 221b986..9c6dd4f 100644 --- a/pkg/getter/clash.go +++ b/pkg/getter/clash.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - configv1 "gitea.timerzz.com/kedaya_haitao/proxy-detector/config" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/log" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/proxy/structs" + configv1 "gitea.timerzz.com/proxy-detector/config" + "gitea.timerzz.com/proxy-detector/log" + "gitea.timerzz.com/proxy-detector/pkg/proxy/structs" "github.com/go-resty/resty/v2" "github.com/metacubex/mihomo/adapter" clash_config "github.com/metacubex/mihomo/config" diff --git a/pkg/getter/subscription.go b/pkg/getter/subscription.go index f786c88..6eb38f8 100644 --- a/pkg/getter/subscription.go +++ b/pkg/getter/subscription.go @@ -4,10 +4,10 @@ import ( "os" "time" - configv1 "gitea.timerzz.com/kedaya_haitao/proxy-detector/config" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/log" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/proxy/structs" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/templates" + configv1 "gitea.timerzz.com/proxy-detector/config" + "gitea.timerzz.com/proxy-detector/log" + "gitea.timerzz.com/proxy-detector/pkg/proxy/structs" + "gitea.timerzz.com/proxy-detector/pkg/templates" "github.com/go-resty/resty/v2" "github.com/metacubex/mihomo/adapter" clash_config "github.com/metacubex/mihomo/config" diff --git a/pkg/health-check/health.go b/pkg/health-check/health.go index 295e614..ac764c2 100644 --- a/pkg/health-check/health.go +++ b/pkg/health-check/health.go @@ -11,10 +11,10 @@ import ( "sync" "time" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/config" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/log" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/proxy/structs" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/worker" + "gitea.timerzz.com/proxy-detector/config" + "gitea.timerzz.com/proxy-detector/log" + "gitea.timerzz.com/proxy-detector/pkg/proxy/structs" + "gitea.timerzz.com/proxy-detector/pkg/worker" C "github.com/metacubex/mihomo/constant" ) diff --git a/pkg/proxy/crawl.go b/pkg/proxy/crawl.go index 90c5c39..1e44955 100644 --- a/pkg/proxy/crawl.go +++ b/pkg/proxy/crawl.go @@ -5,10 +5,10 @@ import ( "sync" "time" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/getter" - healthcheck "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/health-check" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/proxy/structs" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/worker" + "gitea.timerzz.com/proxy-detector/pkg/getter" + healthcheck "gitea.timerzz.com/proxy-detector/pkg/health-check" + "gitea.timerzz.com/proxy-detector/pkg/proxy/structs" + "gitea.timerzz.com/proxy-detector/pkg/worker" log "github.com/sirupsen/logrus" ) diff --git a/pkg/proxy/health.go b/pkg/proxy/health.go index 0bd63c4..6847e2e 100644 --- a/pkg/proxy/health.go +++ b/pkg/proxy/health.go @@ -5,9 +5,9 @@ import ( "fmt" "time" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/log" - healthcheck "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/health-check" - "gitea.timerzz.com/kedaya_haitao/proxy-detector/pkg/proxy/structs" + "gitea.timerzz.com/proxy-detector/log" + healthcheck "gitea.timerzz.com/proxy-detector/pkg/health-check" + "gitea.timerzz.com/proxy-detector/pkg/proxy/structs" ) func CronHealthCheck(ctx context.Context, interval int) {