diff --git a/README.md b/README.md index 6f768c4dc..da5179b36 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@

Build Status -GoDoc +GoDoc codeCov Go Report Card License diff --git a/README_zh.md b/README_zh.md index 230f52f02..ee56662df 100644 --- a/README_zh.md +++ b/README_zh.md @@ -2,7 +2,7 @@

Build Status -GoDoc +GoDoc codeCov Go Report Card License @@ -95,9 +95,9 @@ kratos run ### Kratos Boot ``` -import "github.com/go-kratos/kratos/v2" -import "github.com/go-kratos/kratos/v2/transport/grpc" -import "github.com/go-kratos/kratos/v2/transport/http" +import "gitea.drugeyes.vip/pharnexbase/kratos/v2" +import "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/grpc" +import "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/http" httpSrv := http.NewServer(http.Address(":8000")) grpcSrv := grpc.NewServer(grpc.Address(":9000")) diff --git a/api/metadata/metadata.proto b/api/metadata/metadata.proto index d3b9a4134..80e3a20eb 100644 --- a/api/metadata/metadata.proto +++ b/api/metadata/metadata.proto @@ -5,7 +5,7 @@ package kratos.api; import "google/protobuf/descriptor.proto"; import "google/api/annotations.proto"; -option go_package = "github.com/go-kratos/kratos/v2/api/proto/kratos/api;metadata"; +option go_package = "gitea.drugeyes.vip/pharnexbase/kratos/v2/api/proto/kratos/api;metadata"; option java_multiple_files = true; option java_package = "com.github.kratos.api"; option objc_class_prefix = "KratosAPI"; diff --git a/api/metadata/metadata_http.pb.go b/api/metadata/metadata_http.pb.go index 91636b48d..3bf54d68a 100644 --- a/api/metadata/metadata_http.pb.go +++ b/api/metadata/metadata_http.pb.go @@ -6,8 +6,8 @@ package metadata import ( context "context" - http "github.com/go-kratos/kratos/v2/transport/http" - binding "github.com/go-kratos/kratos/v2/transport/http/binding" + http "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/http" + binding "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/http/binding" ) // This is a compile-time assertion to ensure that this generated file diff --git a/api/metadata/server.go b/api/metadata/server.go index e3d5e373a..074840ca4 100644 --- a/api/metadata/server.go +++ b/api/metadata/server.go @@ -19,7 +19,7 @@ import ( "google.golang.org/protobuf/reflect/protoregistry" dpb "google.golang.org/protobuf/types/descriptorpb" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) // Server is api meta server diff --git a/app.go b/app.go index 436be2949..381fb8f35 100644 --- a/app.go +++ b/app.go @@ -9,9 +9,9 @@ import ( "syscall" "time" - "github.com/go-kratos/kratos/v2/log" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" "github.com/google/uuid" "golang.org/x/sync/errgroup" diff --git a/app_test.go b/app_test.go index 05e10134b..77403b77f 100644 --- a/app_test.go +++ b/app_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/transport/grpc" - "github.com/go-kratos/kratos/v2/transport/http" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/grpc" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/http" ) type mockRegistry struct { diff --git a/cmd/kratos/internal/base/mod.go b/cmd/kratos/internal/base/mod.go index 2349aca9e..d59e9803a 100644 --- a/cmd/kratos/internal/base/mod.go +++ b/cmd/kratos/internal/base/mod.go @@ -53,7 +53,7 @@ func KratosMod() string { if cachePath == "" { cachePath = filepath.Join(gopath, "pkg", "mod") } - if path, err := ModuleVersion("github.com/go-kratos/kratos/v2"); err == nil { + if path, err := ModuleVersion("gitea.drugeyes.vip/pharnexbase/kratos/v2"); err == nil { // $GOPATH/pkg/mod/github.com/go-kratos/kratos@v2 return filepath.Join(cachePath, path) } diff --git a/cmd/kratos/internal/base/mod_test.go b/cmd/kratos/internal/base/mod_test.go index 1cf4be968..ff0914a3a 100644 --- a/cmd/kratos/internal/base/mod_test.go +++ b/cmd/kratos/internal/base/mod_test.go @@ -23,7 +23,7 @@ func TestModulePath(t *testing.T) { t.Fatal(err) } - mod := `module github.com/go-kratos/kratos/v2 + mod := `module gitea.drugeyes.vip/pharnexbase/kratos/v2 go 1.16` _, err = f.WriteString(mod) @@ -35,8 +35,8 @@ go 1.16` if err != nil { t.Fatal(err) } - if p != "github.com/go-kratos/kratos/v2" { - t.Fatalf("want: %s, got: %s", "github.com/go-kratos/kratos/v2", p) + if p != "gitea.drugeyes.vip/pharnexbase/kratos/v2" { + t.Fatalf("want: %s, got: %s", "gitea.drugeyes.vip/pharnexbase/kratos/v2", p) } t.Cleanup(func() { os.RemoveAll("/tmp/test_mod") }) diff --git a/cmd/protoc-gen-go-errors/errors.go b/cmd/protoc-gen-go-errors/errors.go index f09c89ea8..6eb46ef9b 100644 --- a/cmd/protoc-gen-go-errors/errors.go +++ b/cmd/protoc-gen-go-errors/errors.go @@ -15,7 +15,7 @@ import ( ) const ( - errorsPackage = protogen.GoImportPath("github.com/go-kratos/kratos/v2/errors") + errorsPackage = protogen.GoImportPath("gitea.drugeyes.vip/pharnexbase/kratos/v2/errors") fmtPackage = protogen.GoImportPath("fmt") ) diff --git a/cmd/protoc-gen-go-errors/errors/errors.proto b/cmd/protoc-gen-go-errors/errors/errors.proto index ff6766b49..bffc5533c 100644 --- a/cmd/protoc-gen-go-errors/errors/errors.proto +++ b/cmd/protoc-gen-go-errors/errors/errors.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package errors; -option go_package = "github.com/go-kratos/kratos/v2/errors;errors"; +option go_package = "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors;errors"; option java_multiple_files = true; option java_package = "com.github.kratos.errors"; option objc_class_prefix = "KratosErrors"; diff --git a/cmd/protoc-gen-go-http/http.go b/cmd/protoc-gen-go-http/http.go index f52a20772..ea668b938 100644 --- a/cmd/protoc-gen-go-http/http.go +++ b/cmd/protoc-gen-go-http/http.go @@ -17,8 +17,8 @@ import ( const ( contextPackage = protogen.GoImportPath("context") - transportHTTPPackage = protogen.GoImportPath("github.com/go-kratos/kratos/v2/transport/http") - bindingPackage = protogen.GoImportPath("github.com/go-kratos/kratos/v2/transport/http/binding") + transportHTTPPackage = protogen.GoImportPath("gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/http") + bindingPackage = protogen.GoImportPath("gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/http/binding") ) var methodSets = make(map[string]int) diff --git a/config/config.go b/config/config.go index 9efc90240..4404ebceb 100644 --- a/config/config.go +++ b/config/config.go @@ -8,11 +8,11 @@ import ( "time" // init encoding - _ "github.com/go-kratos/kratos/v2/encoding/json" - _ "github.com/go-kratos/kratos/v2/encoding/proto" - _ "github.com/go-kratos/kratos/v2/encoding/xml" - _ "github.com/go-kratos/kratos/v2/encoding/yaml" - "github.com/go-kratos/kratos/v2/log" + _ "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding/json" + _ "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding/proto" + _ "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding/xml" + _ "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding/yaml" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) var _ Config = (*config)(nil) diff --git a/config/env/env.go b/config/env/env.go index cdd30e1b7..4a38e9297 100644 --- a/config/env/env.go +++ b/config/env/env.go @@ -4,7 +4,7 @@ import ( "os" "strings" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) type env struct { diff --git a/config/env/env_test.go b/config/env/env_test.go index 72fcff31d..dc7af277c 100644 --- a/config/env/env_test.go +++ b/config/env/env_test.go @@ -6,8 +6,8 @@ import ( "reflect" "testing" - "github.com/go-kratos/kratos/v2/config" - "github.com/go-kratos/kratos/v2/config/file" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config/file" ) const _testJSON = ` diff --git a/config/env/watcher.go b/config/env/watcher.go index 84e7932e1..f18dd0807 100644 --- a/config/env/watcher.go +++ b/config/env/watcher.go @@ -3,7 +3,7 @@ package env import ( "context" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) var _ config.Watcher = (*watcher)(nil) diff --git a/config/file/file.go b/config/file/file.go index 3fc6a599b..e866526df 100644 --- a/config/file/file.go +++ b/config/file/file.go @@ -6,7 +6,7 @@ import ( "path/filepath" "strings" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) var _ config.Source = (*file)(nil) diff --git a/config/file/file_test.go b/config/file/file_test.go index ac6ad8435..d1cb1db53 100644 --- a/config/file/file_test.go +++ b/config/file/file_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) const ( @@ -69,18 +69,18 @@ const ( }` // _testYaml = ` - //Foo: + // Foo: // bar : // - {name: nihao,age: 1} // - {name: nihao,age: 1} // // - //` + // ` ) -//func TestScan(t *testing.T) { +// func TestScan(t *testing.T) { // -//} +// } func TestFile(t *testing.T) { var ( diff --git a/config/file/watcher.go b/config/file/watcher.go index 1f067d1a9..5843f55c2 100644 --- a/config/file/watcher.go +++ b/config/file/watcher.go @@ -7,7 +7,7 @@ import ( "github.com/fsnotify/fsnotify" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) var _ config.Watcher = (*watcher)(nil) diff --git a/config/options.go b/config/options.go index 443ddaba1..a39ca743f 100644 --- a/config/options.go +++ b/config/options.go @@ -5,8 +5,8 @@ import ( "regexp" "strings" - "github.com/go-kratos/kratos/v2/encoding" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) // Decoder is config decoder. diff --git a/config/reader.go b/config/reader.go index 2202de6b8..4798c1c70 100644 --- a/config/reader.go +++ b/config/reader.go @@ -12,7 +12,7 @@ import ( "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/proto" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) // Reader is config reader. diff --git a/config/reader_test.go b/config/reader_test.go index 11b2d990e..eb9e12516 100644 --- a/config/reader_test.go +++ b/config/reader_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - "github.com/go-kratos/kratos/v2/encoding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding" ) func TestReader_Merge(t *testing.T) { diff --git a/config/value.go b/config/value.go index 11de2e897..a8e3ea2c8 100644 --- a/config/value.go +++ b/config/value.go @@ -10,7 +10,7 @@ import ( "google.golang.org/protobuf/proto" - kratosjson "github.com/go-kratos/kratos/v2/encoding/json" + kratosjson "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding/json" ) var ( diff --git a/contrib/config/apollo/README.md b/contrib/config/apollo/README.md index a8eea4932..93eb827e1 100644 --- a/contrib/config/apollo/README.md +++ b/contrib/config/apollo/README.md @@ -12,7 +12,7 @@ import ( "log" "github.com/go-kratos/kratos/contrib/config/apollo/v2" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) func main() { diff --git a/contrib/config/apollo/apollo.go b/contrib/config/apollo/apollo.go index 1734fdb02..34fe1f461 100644 --- a/contrib/config/apollo/apollo.go +++ b/contrib/config/apollo/apollo.go @@ -3,14 +3,13 @@ package apollo import ( "strings" - "github.com/apolloconfig/agollo/v4" "github.com/apolloconfig/agollo/v4/constant" apolloconfig "github.com/apolloconfig/agollo/v4/env/config" "github.com/apolloconfig/agollo/v4/extension" - "github.com/go-kratos/kratos/v2/config" - "github.com/go-kratos/kratos/v2/encoding" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) type apollo struct { diff --git a/contrib/config/apollo/go.mod b/contrib/config/apollo/go.mod index 72998e9b4..ee41c01d5 100644 --- a/contrib/config/apollo/go.mod +++ b/contrib/config/apollo/go.mod @@ -4,9 +4,9 @@ go 1.16 require ( github.com/apolloconfig/agollo/v4 v4.3.0 - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 ) require github.com/spf13/viper v1.11.0 // indirect -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/config/apollo/watcher.go b/contrib/config/apollo/watcher.go index ad8424209..acbededf9 100644 --- a/contrib/config/apollo/watcher.go +++ b/contrib/config/apollo/watcher.go @@ -6,9 +6,9 @@ import ( "github.com/apolloconfig/agollo/v4/storage" - "github.com/go-kratos/kratos/v2/config" - "github.com/go-kratos/kratos/v2/encoding" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) type watcher struct { diff --git a/contrib/config/consul/config.go b/contrib/config/consul/config.go index 0404801bc..9f466490b 100644 --- a/contrib/config/consul/config.go +++ b/contrib/config/consul/config.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/consul/api" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) // Option is etcd config option. diff --git a/contrib/config/consul/config_test.go b/contrib/config/consul/config_test.go index adb3c27c0..0e09e7de2 100644 --- a/contrib/config/consul/config_test.go +++ b/contrib/config/consul/config_test.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/consul/api" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) const testPath = "kratos/test/config" diff --git a/contrib/config/consul/go.mod b/contrib/config/consul/go.mod index b2baab301..fe290bd71 100644 --- a/contrib/config/consul/go.mod +++ b/contrib/config/consul/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( github.com/armon/go-metrics v0.3.10 // indirect - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 github.com/hashicorp/consul/api v1.20.0 github.com/hashicorp/go-hclog v0.14.1 // indirect github.com/hashicorp/go-immutable-radix v1.3.0 // indirect @@ -12,4 +12,4 @@ require ( github.com/hashicorp/go-multierror v1.1.1 // indirect ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/config/consul/watcher.go b/contrib/config/consul/watcher.go index 5562505c2..b4943527f 100644 --- a/contrib/config/consul/watcher.go +++ b/contrib/config/consul/watcher.go @@ -6,7 +6,7 @@ import ( "github.com/hashicorp/consul/api" "github.com/hashicorp/consul/api/watch" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) type watcher struct { diff --git a/contrib/config/etcd/README.md b/contrib/config/etcd/README.md index 131619c1a..043668c51 100644 --- a/contrib/config/etcd/README.md +++ b/contrib/config/etcd/README.md @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc" cfg "github.com/go-kratos/kratos/contrib/config/etcd/v2" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) // create an etcd client diff --git a/contrib/config/etcd/config.go b/contrib/config/etcd/config.go index 76045a58c..028ee6d02 100644 --- a/contrib/config/etcd/config.go +++ b/contrib/config/etcd/config.go @@ -8,7 +8,7 @@ import ( clientv3 "go.etcd.io/etcd/client/v3" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) // Option is etcd config option. diff --git a/contrib/config/etcd/go.mod b/contrib/config/etcd/go.mod index 8173c67c3..347b09866 100644 --- a/contrib/config/etcd/go.mod +++ b/contrib/config/etcd/go.mod @@ -3,9 +3,9 @@ module github.com/go-kratos/kratos/contrib/config/etcd/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 go.etcd.io/etcd/client/v3 v3.5.8 google.golang.org/grpc v1.56.1 ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/config/etcd/watcher.go b/contrib/config/etcd/watcher.go index dd2ea9112..1921a2bfd 100644 --- a/contrib/config/etcd/watcher.go +++ b/contrib/config/etcd/watcher.go @@ -5,7 +5,7 @@ import ( clientv3 "go.etcd.io/etcd/client/v3" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) type watcher struct { diff --git a/contrib/config/kubernetes/config.go b/contrib/config/kubernetes/config.go index 12026fe86..0ee4a86ff 100644 --- a/contrib/config/kubernetes/config.go +++ b/contrib/config/kubernetes/config.go @@ -13,7 +13,7 @@ import ( "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) // Option is kubernetes option. diff --git a/contrib/config/kubernetes/config_test.go b/contrib/config/kubernetes/config_test.go index b110b634d..d304ced0f 100644 --- a/contrib/config/kubernetes/config_test.go +++ b/contrib/config/kubernetes/config_test.go @@ -15,7 +15,7 @@ import ( "k8s.io/client-go/tools/clientcmd" "k8s.io/client-go/util/homedir" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) const ( diff --git a/contrib/config/kubernetes/go.mod b/contrib/config/kubernetes/go.mod index 88064b04f..fafb48390 100644 --- a/contrib/config/kubernetes/go.mod +++ b/contrib/config/kubernetes/go.mod @@ -3,10 +3,10 @@ module github.com/go-kratos/kratos/contrib/config/kubernetes/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 k8s.io/api v0.26.3 k8s.io/apimachinery v0.26.3 k8s.io/client-go v0.26.3 ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/config/kubernetes/watcher.go b/contrib/config/kubernetes/watcher.go index c13a8a7ef..ee7a87c22 100644 --- a/contrib/config/kubernetes/watcher.go +++ b/contrib/config/kubernetes/watcher.go @@ -8,7 +8,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/watch" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) type watcher struct { diff --git a/contrib/config/nacos/README.md b/contrib/config/nacos/README.md index fa54caf07..18e1255dd 100644 --- a/contrib/config/nacos/README.md +++ b/contrib/config/nacos/README.md @@ -5,7 +5,7 @@ import ( "github.com/nacos-group/nacos-sdk-go/clients" "github.com/nacos-group/nacos-sdk-go/common/constant" - kconfig "github.com/go-kratos/kratos/v2/config" + kconfig "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) diff --git a/contrib/config/nacos/config.go b/contrib/config/nacos/config.go index c234817c5..6e2ff46b8 100644 --- a/contrib/config/nacos/config.go +++ b/contrib/config/nacos/config.go @@ -8,7 +8,7 @@ import ( "github.com/nacos-group/nacos-sdk-go/clients/config_client" "github.com/nacos-group/nacos-sdk-go/vo" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) type Option func(*options) diff --git a/contrib/config/nacos/config_test.go b/contrib/config/nacos/config_test.go index 2d2908037..81c4a3486 100644 --- a/contrib/config/nacos/config_test.go +++ b/contrib/config/nacos/config_test.go @@ -9,7 +9,7 @@ import ( "github.com/nacos-group/nacos-sdk-go/common/constant" "github.com/nacos-group/nacos-sdk-go/vo" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) func TestConfig_Load(t *testing.T) { diff --git a/contrib/config/nacos/go.mod b/contrib/config/nacos/go.mod index 311e0afd4..6dcadaec6 100644 --- a/contrib/config/nacos/go.mod +++ b/contrib/config/nacos/go.mod @@ -3,10 +3,10 @@ module github.com/go-kratos/kratos/contrib/config/nacos/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 github.com/nacos-group/nacos-sdk-go v1.0.9 ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ replace github.com/buger/jsonparser => github.com/buger/jsonparser v1.1.1 diff --git a/contrib/config/nacos/watcher.go b/contrib/config/nacos/watcher.go index fd528af7a..b01b7d570 100644 --- a/contrib/config/nacos/watcher.go +++ b/contrib/config/nacos/watcher.go @@ -7,7 +7,7 @@ import ( "github.com/nacos-group/nacos-sdk-go/vo" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) type Watcher struct { diff --git a/contrib/config/polaris/config.go b/contrib/config/polaris/config.go index 288db4383..c23eadf24 100644 --- a/contrib/config/polaris/config.go +++ b/contrib/config/polaris/config.go @@ -6,9 +6,7 @@ import ( "path/filepath" "strings" - "github.com/polarismesh/polaris-go" - - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) // Option is polaris config option. diff --git a/contrib/config/polaris/go.mod b/contrib/config/polaris/go.mod index 1fe9d249a..8358f63b5 100644 --- a/contrib/config/polaris/go.mod +++ b/contrib/config/polaris/go.mod @@ -3,7 +3,7 @@ module github.com/go-kratos/kratos/contrib/config/polaris/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 github.com/polarismesh/polaris-go v1.1.0 ) @@ -16,4 +16,4 @@ require ( go.uber.org/zap v1.21.0 // indirect ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/config/polaris/watcher.go b/contrib/config/polaris/watcher.go index 703055508..bddaa25fa 100644 --- a/contrib/config/polaris/watcher.go +++ b/contrib/config/polaris/watcher.go @@ -5,11 +5,10 @@ import ( "path/filepath" "strings" - "github.com/polarismesh/polaris-go" "github.com/polarismesh/polaris-go/pkg/model" - "github.com/go-kratos/kratos/v2/config" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) type Watcher struct { diff --git a/contrib/encoding/msgpack/go.mod b/contrib/encoding/msgpack/go.mod index 221398569..71efa4a0e 100644 --- a/contrib/encoding/msgpack/go.mod +++ b/contrib/encoding/msgpack/go.mod @@ -3,8 +3,8 @@ module github.com/go-kratos/kratos/contrib/encoding/msgpack/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 github.com/vmihailenco/msgpack/v5 v5.3.5 ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/encoding/msgpack/msgpack.go b/contrib/encoding/msgpack/msgpack.go index 4272b16b8..c38e7efb2 100644 --- a/contrib/encoding/msgpack/msgpack.go +++ b/contrib/encoding/msgpack/msgpack.go @@ -1,9 +1,7 @@ package msgpack import ( - "github.com/vmihailenco/msgpack/v5" - - "github.com/go-kratos/kratos/v2/encoding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding" ) // Name is the name registered for the msgpack compressor. diff --git a/contrib/log/aliyun/aliyun.go b/contrib/log/aliyun/aliyun.go index 836960e06..7292ab594 100644 --- a/contrib/log/aliyun/aliyun.go +++ b/contrib/log/aliyun/aliyun.go @@ -10,7 +10,7 @@ import ( "github.com/aliyun/aliyun-log-go-sdk/producer" "google.golang.org/protobuf/proto" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) // Logger see more detail https://github.com/aliyun/aliyun-log-go-sdk diff --git a/contrib/log/aliyun/aliyun_test.go b/contrib/log/aliyun/aliyun_test.go index d8c914bad..26062ff18 100644 --- a/contrib/log/aliyun/aliyun_test.go +++ b/contrib/log/aliyun/aliyun_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) func TestWithEndpoint(t *testing.T) { diff --git a/contrib/log/aliyun/go.mod b/contrib/log/aliyun/go.mod index a2f088bbd..5c271a122 100644 --- a/contrib/log/aliyun/go.mod +++ b/contrib/log/aliyun/go.mod @@ -4,11 +4,11 @@ go 1.16 require ( github.com/aliyun/aliyun-log-go-sdk v0.1.44 - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 google.golang.org/protobuf v1.31.0 ) replace ( - github.com/go-kratos/kratos/v2 => ../../../ + gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ github.com/gogo/protobuf v1.3.1 => github.com/gogo/protobuf v1.3.2 ) diff --git a/contrib/log/fluent/fluent.go b/contrib/log/fluent/fluent.go index 86e86993e..080f859b3 100644 --- a/contrib/log/fluent/fluent.go +++ b/contrib/log/fluent/fluent.go @@ -9,7 +9,7 @@ import ( "github.com/fluent/fluent-logger-golang/fluent" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) var _ log.Logger = (*Logger)(nil) diff --git a/contrib/log/fluent/fluent_test.go b/contrib/log/fluent/fluent_test.go index 41f7080d3..5815dc451 100644 --- a/contrib/log/fluent/fluent_test.go +++ b/contrib/log/fluent/fluent_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) func TestMain(m *testing.M) { diff --git a/contrib/log/fluent/go.mod b/contrib/log/fluent/go.mod index e3410e0c1..fd8b64197 100644 --- a/contrib/log/fluent/go.mod +++ b/contrib/log/fluent/go.mod @@ -5,8 +5,8 @@ go 1.16 require ( github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect github.com/fluent/fluent-logger-golang v1.9.0 - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 github.com/tinylib/msgp v1.1.6 // indirect ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/log/logrus/go.mod b/contrib/log/logrus/go.mod index 48ef29325..67f2914f1 100644 --- a/contrib/log/logrus/go.mod +++ b/contrib/log/logrus/go.mod @@ -3,8 +3,8 @@ module github.com/go-kratos/kratos/contrib/log/logrus/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 github.com/sirupsen/logrus v1.8.1 ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/log/logrus/logrus.go b/contrib/log/logrus/logrus.go index 6fda38c50..1450eb3eb 100644 --- a/contrib/log/logrus/logrus.go +++ b/contrib/log/logrus/logrus.go @@ -3,7 +3,7 @@ package logrus import ( "github.com/sirupsen/logrus" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) var _ log.Logger = (*Logger)(nil) diff --git a/contrib/log/logrus/logrus_test.go b/contrib/log/logrus/logrus_test.go index 45fe9da2d..c9f765594 100644 --- a/contrib/log/logrus/logrus_test.go +++ b/contrib/log/logrus/logrus_test.go @@ -7,7 +7,7 @@ import ( "github.com/sirupsen/logrus" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) func TestLoggerLog(t *testing.T) { diff --git a/contrib/log/tencent/go.mod b/contrib/log/tencent/go.mod index b62ea5a42..bdfc68c7b 100644 --- a/contrib/log/tencent/go.mod +++ b/contrib/log/tencent/go.mod @@ -3,9 +3,9 @@ module github.com/go-kratos/kratos/contrib/log/tencent/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 github.com/tencentcloud/tencentcloud-cls-sdk-go v1.0.2 google.golang.org/protobuf v1.31.0 ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/log/tencent/tencent.go b/contrib/log/tencent/tencent.go index 460b85c60..7e953fb63 100644 --- a/contrib/log/tencent/tencent.go +++ b/contrib/log/tencent/tencent.go @@ -9,7 +9,7 @@ import ( cls "github.com/tencentcloud/tencentcloud-cls-sdk-go" "google.golang.org/protobuf/proto" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) type Logger interface { diff --git a/contrib/log/tencent/tencent_test.go b/contrib/log/tencent/tencent_test.go index df1fe367c..d17c8f409 100644 --- a/contrib/log/tencent/tencent_test.go +++ b/contrib/log/tencent/tencent_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) func TestWithEndpoint(t *testing.T) { diff --git a/contrib/log/zap/go.mod b/contrib/log/zap/go.mod index 649700847..a1d89ed3f 100644 --- a/contrib/log/zap/go.mod +++ b/contrib/log/zap/go.mod @@ -3,8 +3,8 @@ module github.com/go-kratos/kratos/contrib/log/zap/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 go.uber.org/zap v1.23.0 ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/log/zap/zap.go b/contrib/log/zap/zap.go index 1ad8caed6..1d86711ab 100644 --- a/contrib/log/zap/zap.go +++ b/contrib/log/zap/zap.go @@ -5,7 +5,7 @@ import ( "go.uber.org/zap" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) var _ log.Logger = (*Logger)(nil) diff --git a/contrib/log/zap/zap_test.go b/contrib/log/zap/zap_test.go index 393af79e9..c81fd16d1 100644 --- a/contrib/log/zap/zap_test.go +++ b/contrib/log/zap/zap_test.go @@ -6,7 +6,7 @@ import ( "go.uber.org/zap" "go.uber.org/zap/zapcore" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) type testWriteSyncer struct { diff --git a/contrib/metrics/datadog/counter.go b/contrib/metrics/datadog/counter.go index 360490241..02f1622ef 100644 --- a/contrib/metrics/datadog/counter.go +++ b/contrib/metrics/datadog/counter.go @@ -1,7 +1,7 @@ package datadog import ( - "github.com/go-kratos/kratos/v2/metrics" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/metrics" ) var _ metrics.Counter = (*counter)(nil) diff --git a/contrib/metrics/datadog/gauge.go b/contrib/metrics/datadog/gauge.go index 86912f92c..aba6a4822 100644 --- a/contrib/metrics/datadog/gauge.go +++ b/contrib/metrics/datadog/gauge.go @@ -1,7 +1,7 @@ package datadog import ( - "github.com/go-kratos/kratos/v2/metrics" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/metrics" ) var _ metrics.Gauge = (*gauge)(nil) diff --git a/contrib/metrics/datadog/go.mod b/contrib/metrics/datadog/go.mod index d7867d76a..92fbba68f 100644 --- a/contrib/metrics/datadog/go.mod +++ b/contrib/metrics/datadog/go.mod @@ -4,9 +4,9 @@ go 1.16 require ( github.com/DataDog/datadog-go v4.8.3+incompatible - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 ) require github.com/Microsoft/go-winio v0.5.2 // indirect -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/metrics/datadog/observer.go b/contrib/metrics/datadog/observer.go index 92c8cab01..5a60f657b 100644 --- a/contrib/metrics/datadog/observer.go +++ b/contrib/metrics/datadog/observer.go @@ -3,7 +3,7 @@ package datadog import ( "time" - "github.com/go-kratos/kratos/v2/metrics" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/metrics" ) var _ metrics.Observer = (*timing)(nil) diff --git a/contrib/metrics/prometheus/counter.go b/contrib/metrics/prometheus/counter.go index 5873c017a..499aff34e 100644 --- a/contrib/metrics/prometheus/counter.go +++ b/contrib/metrics/prometheus/counter.go @@ -3,7 +3,7 @@ package prometheus import ( "github.com/prometheus/client_golang/prometheus" - "github.com/go-kratos/kratos/v2/metrics" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/metrics" ) var _ metrics.Counter = (*counter)(nil) diff --git a/contrib/metrics/prometheus/gauge.go b/contrib/metrics/prometheus/gauge.go index 25750b6ca..022ca546e 100644 --- a/contrib/metrics/prometheus/gauge.go +++ b/contrib/metrics/prometheus/gauge.go @@ -3,7 +3,7 @@ package prometheus import ( "github.com/prometheus/client_golang/prometheus" - "github.com/go-kratos/kratos/v2/metrics" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/metrics" ) var _ metrics.Gauge = (*gauge)(nil) diff --git a/contrib/metrics/prometheus/go.mod b/contrib/metrics/prometheus/go.mod index 034901b79..9508aebf7 100644 --- a/contrib/metrics/prometheus/go.mod +++ b/contrib/metrics/prometheus/go.mod @@ -3,9 +3,9 @@ module github.com/go-kratos/kratos/contrib/metrics/prometheus/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 github.com/prometheus/client_golang v1.15.1 github.com/prometheus/common v0.44.0 ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/metrics/prometheus/histogram.go b/contrib/metrics/prometheus/histogram.go index a0245d73c..606e48bb9 100644 --- a/contrib/metrics/prometheus/histogram.go +++ b/contrib/metrics/prometheus/histogram.go @@ -3,7 +3,7 @@ package prometheus import ( "github.com/prometheus/client_golang/prometheus" - "github.com/go-kratos/kratos/v2/metrics" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/metrics" ) var _ metrics.Observer = (*histogram)(nil) diff --git a/contrib/metrics/prometheus/summary.go b/contrib/metrics/prometheus/summary.go index 25969edfa..a459ac5c8 100644 --- a/contrib/metrics/prometheus/summary.go +++ b/contrib/metrics/prometheus/summary.go @@ -3,7 +3,7 @@ package prometheus import ( "github.com/prometheus/client_golang/prometheus" - "github.com/go-kratos/kratos/v2/metrics" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/metrics" ) var _ metrics.Observer = (*summary)(nil) diff --git a/contrib/opensergo/go.mod b/contrib/opensergo/go.mod index 46c205aa6..3a8f60f5a 100644 --- a/contrib/opensergo/go.mod +++ b/contrib/opensergo/go.mod @@ -3,7 +3,7 @@ module github.com/go-kratos/kratos/contrib/opensergo/v2 go 1.17 require ( - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 github.com/opensergo/opensergo-go v0.0.0-20220331070310-e5b01fee4d1c golang.org/x/net v0.10.0 google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc @@ -24,4 +24,4 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect ) -replace github.com/go-kratos/kratos/v2 => ../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../ diff --git a/contrib/opensergo/opensergo.go b/contrib/opensergo/opensergo.go index 56de2536e..135dff71e 100644 --- a/contrib/opensergo/opensergo.go +++ b/contrib/opensergo/opensergo.go @@ -17,8 +17,6 @@ import ( "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protoreflect" "google.golang.org/protobuf/reflect/protoregistry" - - "github.com/go-kratos/kratos/v2" ) type Option func(*options) diff --git a/contrib/polaris/config.go b/contrib/polaris/config.go index 5a79d2e80..adf42f933 100644 --- a/contrib/polaris/config.go +++ b/contrib/polaris/config.go @@ -4,11 +4,10 @@ import ( "path/filepath" "strings" - "github.com/polarismesh/polaris-go" "github.com/polarismesh/polaris-go/pkg/model" - "github.com/go-kratos/kratos/v2/config" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) // ConfigOption is polaris config option. diff --git a/contrib/polaris/config_test.go b/contrib/polaris/config_test.go index 3ad701e4f..5a6da0cef 100644 --- a/contrib/polaris/config_test.go +++ b/contrib/polaris/config_test.go @@ -10,9 +10,7 @@ import ( "testing" "time" - "github.com/go-kratos/kratos/v2/config" - - "github.com/polarismesh/polaris-go" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) var ( diff --git a/contrib/polaris/go.mod b/contrib/polaris/go.mod index 9b92fd204..b96395afb 100644 --- a/contrib/polaris/go.mod +++ b/contrib/polaris/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/go-kratos/aegis v0.2.0 - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 github.com/google/uuid v1.3.0 github.com/polarismesh/polaris-go v1.3.0 google.golang.org/protobuf v1.31.0 @@ -42,4 +42,4 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect ) -replace github.com/go-kratos/kratos/v2 => ../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../ diff --git a/contrib/polaris/polaris.go b/contrib/polaris/polaris.go index 15da49f16..e4070585c 100644 --- a/contrib/polaris/polaris.go +++ b/contrib/polaris/polaris.go @@ -3,10 +3,9 @@ package polaris import ( "errors" - "github.com/polarismesh/polaris-go" "github.com/polarismesh/polaris-go/api" - "github.com/go-kratos/kratos/v2/config" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/config" ) type Polaris struct { diff --git a/contrib/polaris/ratelimit.go b/contrib/polaris/ratelimit.go index f59938e9a..0df8413f5 100644 --- a/contrib/polaris/ratelimit.go +++ b/contrib/polaris/ratelimit.go @@ -6,10 +6,10 @@ import ( "github.com/go-kratos/aegis/ratelimit" - "github.com/go-kratos/kratos/v2/errors" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/transport" - "github.com/go-kratos/kratos/v2/transport/http" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/http" "github.com/polarismesh/polaris-go/pkg/model" ) diff --git a/contrib/polaris/registry.go b/contrib/polaris/registry.go index 4d1e4a337..844073f4d 100644 --- a/contrib/polaris/registry.go +++ b/contrib/polaris/registry.go @@ -9,10 +9,9 @@ import ( "time" "github.com/google/uuid" - "github.com/polarismesh/polaris-go" "github.com/polarismesh/polaris-go/pkg/model" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) var ( diff --git a/contrib/polaris/registry_test.go b/contrib/polaris/registry_test.go index a03f807e4..b22ceef48 100644 --- a/contrib/polaris/registry_test.go +++ b/contrib/polaris/registry_test.go @@ -5,9 +5,7 @@ import ( "testing" "time" - "github.com/polarismesh/polaris-go" - - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) // TestRegistry diff --git a/contrib/polaris/router.go b/contrib/polaris/router.go index 958db4ab4..c6821c97c 100644 --- a/contrib/polaris/router.go +++ b/contrib/polaris/router.go @@ -7,18 +7,16 @@ import ( "strconv" "strings" - "github.com/polarismesh/polaris-go" "github.com/polarismesh/polaris-go/pkg/model" "github.com/polarismesh/polaris-go/pkg/model/local" "github.com/polarismesh/polaris-go/pkg/model/pb" v1 "github.com/polarismesh/polaris-go/pkg/model/pb/v1" "google.golang.org/protobuf/types/known/wrapperspb" - "github.com/go-kratos/kratos/v2" - "github.com/go-kratos/kratos/v2/log" - "github.com/go-kratos/kratos/v2/selector" - "github.com/go-kratos/kratos/v2/transport" - "github.com/go-kratos/kratos/v2/transport/http" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/http" ) type router struct { diff --git a/contrib/polaris/router_test.go b/contrib/polaris/router_test.go index 535521454..57672954a 100644 --- a/contrib/polaris/router_test.go +++ b/contrib/polaris/router_test.go @@ -8,11 +8,8 @@ import ( "testing" "time" - "github.com/polarismesh/polaris-go" - - "github.com/go-kratos/kratos/v2" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" ) func TestRouter(t *testing.T) { diff --git a/contrib/registry/consul/client.go b/contrib/registry/consul/client.go index ea5fe846d..6b06c971f 100644 --- a/contrib/registry/consul/client.go +++ b/contrib/registry/consul/client.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "github.com/go-kratos/kratos/v2/log" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" "github.com/hashicorp/consul/api" ) diff --git a/contrib/registry/consul/go.mod b/contrib/registry/consul/go.mod index edb571e51..c15a089b4 100644 --- a/contrib/registry/consul/go.mod +++ b/contrib/registry/consul/go.mod @@ -4,7 +4,7 @@ go 1.16 require ( github.com/armon/go-metrics v0.3.10 // indirect - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 github.com/hashicorp/consul/api v1.20.0 github.com/hashicorp/go-hclog v0.14.1 // indirect github.com/hashicorp/go-immutable-radix v1.3.0 // indirect @@ -12,4 +12,4 @@ require ( github.com/hashicorp/go-multierror v1.1.1 // indirect ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/registry/consul/registry.go b/contrib/registry/consul/registry.go index 8105ab1d0..0831c5f13 100644 --- a/contrib/registry/consul/registry.go +++ b/contrib/registry/consul/registry.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/consul/api" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) var ( diff --git a/contrib/registry/consul/registry_test.go b/contrib/registry/consul/registry_test.go index 791c2efc0..d69dff347 100644 --- a/contrib/registry/consul/registry_test.go +++ b/contrib/registry/consul/registry_test.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/consul/api" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) func tcpServer(lis net.Listener) { diff --git a/contrib/registry/consul/service.go b/contrib/registry/consul/service.go index a0a166094..6e6a153cb 100644 --- a/contrib/registry/consul/service.go +++ b/contrib/registry/consul/service.go @@ -4,7 +4,7 @@ import ( "sync" "sync/atomic" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) type serviceSet struct { diff --git a/contrib/registry/consul/watcher.go b/contrib/registry/consul/watcher.go index 0a5d35751..b3c496297 100644 --- a/contrib/registry/consul/watcher.go +++ b/contrib/registry/consul/watcher.go @@ -3,7 +3,7 @@ package consul import ( "context" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) type watcher struct { diff --git a/contrib/registry/discovery/README.md b/contrib/registry/discovery/README.md index 46c46e2d0..f4d9b88cc 100644 --- a/contrib/registry/discovery/README.md +++ b/contrib/registry/discovery/README.md @@ -48,7 +48,7 @@ func main() { ```go import ( "github.com/go-kratos/kratos/contrib/registry/discovery/v2" - "github.com/go-kratos/kratos/v2/transport/grpc" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/grpc" ) func main() { diff --git a/contrib/registry/discovery/discovery.go b/contrib/registry/discovery/discovery.go index bbacd7bb8..547924525 100644 --- a/contrib/registry/discovery/discovery.go +++ b/contrib/registry/discovery/discovery.go @@ -10,10 +10,9 @@ import ( "sync/atomic" "time" - "github.com/go-resty/resty/v2" "github.com/pkg/errors" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" ) type Discovery struct { @@ -444,22 +443,22 @@ func (r *Resolve) fetch(_ context.Context) (ins *disInstancesInfo, ok bool) { for zone, in := range appIns.Instances { ins.Instances[zone] = in } - //if r.opt.Filter != nil { + // if r.opt.Filter != nil { // ins.Instances = r.opt.Filter(appIns.Instances) - //} else { + // } else { // ins.Instances = make(map[string][]*discoveryInstance) // for zone, in := range appIns.Instances { // ins.Instances[zone] = in // } - //} - //if r.opt.scheduler != nil { + // } + // if r.opt.scheduler != nil { // ins.Instances[r.opt.ClientZone] = r.opt.scheduler(ins) - //} - //if r.opt.Subset != nil && r.opt.SubsetSize != 0 { + // } + // if r.opt.Subset != nil && r.opt.SubsetSize != 0 { // for zone, inss := range ins.Instances { // ins.Instances[zone] = r.opt.Subset(inss, r.opt.SubsetSize) // } - //} + // } } return } diff --git a/contrib/registry/discovery/discovery_helper.go b/contrib/registry/discovery/discovery_helper.go index 236f2fb85..06dbe1692 100644 --- a/contrib/registry/discovery/discovery_helper.go +++ b/contrib/registry/discovery/discovery_helper.go @@ -9,7 +9,7 @@ import ( "github.com/pkg/errors" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) var ( @@ -20,7 +20,7 @@ var ( const ( // Discovery server resource uri _registerURL = "http://%s/discovery/register" - //_setURL = "http://%s/discovery/set" + // _setURL = "http://%s/discovery/set" _cancelURL = "http://%s/discovery/cancel" _renewURL = "http://%s/discovery/renew" _pollURL = "http://%s/discovery/polls" @@ -29,7 +29,7 @@ const ( _codeOK = 0 _codeNotFound = -404 _codeNotModified = -304 - //_SERVER_ERROR = -500 + // _SERVER_ERROR = -500 // _registerGap is the gap to renew instance registration. _registerGap = 30 * time.Second diff --git a/contrib/registry/discovery/go.mod b/contrib/registry/discovery/go.mod index 803847fff..9fa9e6394 100644 --- a/contrib/registry/discovery/go.mod +++ b/contrib/registry/discovery/go.mod @@ -3,9 +3,9 @@ module github.com/go-kratos/kratos/contrib/registry/discovery/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 github.com/go-resty/resty/v2 v2.7.0 github.com/pkg/errors v0.9.1 ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/registry/discovery/impl_discover.go b/contrib/registry/discovery/impl_discover.go index fb1b01d15..d8e4f8806 100644 --- a/contrib/registry/discovery/impl_discover.go +++ b/contrib/registry/discovery/impl_discover.go @@ -7,7 +7,7 @@ import ( "github.com/pkg/errors" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) func filterInstancesByZone(ins *disInstancesInfo, zone string) []*registry.ServiceInstance { diff --git a/contrib/registry/discovery/impl_registrar.go b/contrib/registry/discovery/impl_registrar.go index c4af66b7b..6911a5db1 100644 --- a/contrib/registry/discovery/impl_registrar.go +++ b/contrib/registry/discovery/impl_registrar.go @@ -9,8 +9,8 @@ import ( "github.com/pkg/errors" - "github.com/go-kratos/kratos/v2/log" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) func (d *Discovery) Register(ctx context.Context, service *registry.ServiceInstance) (err error) { diff --git a/contrib/registry/etcd/go.mod b/contrib/registry/etcd/go.mod index 287088b6f..9f3450e6e 100644 --- a/contrib/registry/etcd/go.mod +++ b/contrib/registry/etcd/go.mod @@ -3,9 +3,9 @@ module github.com/go-kratos/kratos/contrib/registry/etcd/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 go.etcd.io/etcd/client/v3 v3.5.8 google.golang.org/grpc v1.56.1 ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/registry/etcd/registry.go b/contrib/registry/etcd/registry.go index ca858c993..bdf92eaab 100644 --- a/contrib/registry/etcd/registry.go +++ b/contrib/registry/etcd/registry.go @@ -8,7 +8,7 @@ import ( clientv3 "go.etcd.io/etcd/client/v3" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) var ( diff --git a/contrib/registry/etcd/registry_test.go b/contrib/registry/etcd/registry_test.go index 8fcecf945..ea239a674 100644 --- a/contrib/registry/etcd/registry_test.go +++ b/contrib/registry/etcd/registry_test.go @@ -10,7 +10,7 @@ import ( clientv3 "go.etcd.io/etcd/client/v3" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) func TestRegistry(t *testing.T) { diff --git a/contrib/registry/etcd/service.go b/contrib/registry/etcd/service.go index e6aa851c8..cd043e972 100644 --- a/contrib/registry/etcd/service.go +++ b/contrib/registry/etcd/service.go @@ -3,7 +3,7 @@ package etcd import ( "encoding/json" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) func marshal(si *registry.ServiceInstance) (string, error) { diff --git a/contrib/registry/etcd/watcher.go b/contrib/registry/etcd/watcher.go index d20fe5a25..3fc0791db 100644 --- a/contrib/registry/etcd/watcher.go +++ b/contrib/registry/etcd/watcher.go @@ -6,7 +6,7 @@ import ( clientv3 "go.etcd.io/etcd/client/v3" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) var _ registry.Watcher = (*watcher)(nil) diff --git a/contrib/registry/eureka/go.mod b/contrib/registry/eureka/go.mod index e6c60bb2c..bcd292ff0 100644 --- a/contrib/registry/eureka/go.mod +++ b/contrib/registry/eureka/go.mod @@ -2,6 +2,6 @@ module github.com/go-kratos/kratos/contrib/registry/eureka/v2 go 1.16 -require github.com/go-kratos/kratos/v2 v2.6.3 +require gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/registry/eureka/register.go b/contrib/registry/eureka/register.go index 242ec9105..9a665a692 100644 --- a/contrib/registry/eureka/register.go +++ b/contrib/registry/eureka/register.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) var ( diff --git a/contrib/registry/eureka/register_test.go b/contrib/registry/eureka/register_test.go index c8c340c85..e72b85f56 100644 --- a/contrib/registry/eureka/register_test.go +++ b/contrib/registry/eureka/register_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) func TestRegistry(_ *testing.T) { diff --git a/contrib/registry/eureka/watcher.go b/contrib/registry/eureka/watcher.go index 0d526fa9a..1e517c6ea 100644 --- a/contrib/registry/eureka/watcher.go +++ b/contrib/registry/eureka/watcher.go @@ -3,7 +3,7 @@ package eureka import ( "context" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) var _ registry.Watcher = (*watcher)(nil) diff --git a/contrib/registry/kubernetes/go.mod b/contrib/registry/kubernetes/go.mod index 1afcbbdb0..9fb71783d 100644 --- a/contrib/registry/kubernetes/go.mod +++ b/contrib/registry/kubernetes/go.mod @@ -3,11 +3,11 @@ module github.com/go-kratos/kratos/contrib/registry/kubernetes/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 github.com/json-iterator/go v1.1.12 k8s.io/api v0.24.3 k8s.io/apimachinery v0.24.3 k8s.io/client-go v0.24.3 ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/registry/kubernetes/registry.go b/contrib/registry/kubernetes/registry.go index 21562dc55..d917721d5 100644 --- a/contrib/registry/kubernetes/registry.go +++ b/contrib/registry/kubernetes/registry.go @@ -21,7 +21,7 @@ import ( listerv1 "k8s.io/client-go/listers/core/v1" "k8s.io/client-go/tools/cache" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) // Defines the key name of specific fields diff --git a/contrib/registry/kubernetes/registry_test.go b/contrib/registry/kubernetes/registry_test.go index 2363b1c3a..5f065ad56 100644 --- a/contrib/registry/kubernetes/registry_test.go +++ b/contrib/registry/kubernetes/registry_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" appsv1 "k8s.io/api/apps/v1" apiv1 "k8s.io/api/core/v1" diff --git a/contrib/registry/nacos/README.md b/contrib/registry/nacos/README.md index 1a3e09cb8..a4923c891 100644 --- a/contrib/registry/nacos/README.md +++ b/contrib/registry/nacos/README.md @@ -13,7 +13,7 @@ import ( "github.com/nacos-group/nacos-sdk-go/vo" "github.com/go-kratos/kratos/contrib/registry/nacos/v2" - "github.com/go-kratos/kratos/v2" + "gitea.drugeyes.vip/pharnexbase/kratos/v2" ) func main() { @@ -57,7 +57,7 @@ import ( "github.com/nacos-group/nacos-sdk-go/vo" "github.com/go-kratos/kratos/contrib/registry/nacos/v2" - "github.com/go-kratos/kratos/v2/transport/grpc" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/grpc" ) func main() { diff --git a/contrib/registry/nacos/go.mod b/contrib/registry/nacos/go.mod index 463e83664..4098560e4 100644 --- a/contrib/registry/nacos/go.mod +++ b/contrib/registry/nacos/go.mod @@ -3,10 +3,10 @@ module github.com/go-kratos/kratos/contrib/registry/nacos/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 github.com/nacos-group/nacos-sdk-go v1.0.9 ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ replace github.com/buger/jsonparser => github.com/buger/jsonparser v1.1.1 diff --git a/contrib/registry/nacos/registry.go b/contrib/registry/nacos/registry.go index 1a3722b84..b3c263fdd 100644 --- a/contrib/registry/nacos/registry.go +++ b/contrib/registry/nacos/registry.go @@ -12,7 +12,7 @@ import ( "github.com/nacos-group/nacos-sdk-go/common/constant" "github.com/nacos-group/nacos-sdk-go/vo" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) var ErrServiceInstanceNameEmpty = errors.New("kratos/nacos: ServiceInstance.Name can not be empty") diff --git a/contrib/registry/nacos/registry_test.go b/contrib/registry/nacos/registry_test.go index 1910a68d8..86c0e524a 100644 --- a/contrib/registry/nacos/registry_test.go +++ b/contrib/registry/nacos/registry_test.go @@ -10,7 +10,7 @@ import ( "github.com/nacos-group/nacos-sdk-go/common/constant" "github.com/nacos-group/nacos-sdk-go/vo" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) func TestRegistry_Register(t *testing.T) { diff --git a/contrib/registry/nacos/watcher.go b/contrib/registry/nacos/watcher.go index 78b4fc21b..4eb9e9c49 100644 --- a/contrib/registry/nacos/watcher.go +++ b/contrib/registry/nacos/watcher.go @@ -8,7 +8,7 @@ import ( "github.com/nacos-group/nacos-sdk-go/model" "github.com/nacos-group/nacos-sdk-go/vo" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) var _ registry.Watcher = (*watcher)(nil) diff --git a/contrib/registry/polaris/go.mod b/contrib/registry/polaris/go.mod index 45a44a68b..faa0b5552 100644 --- a/contrib/registry/polaris/go.mod +++ b/contrib/registry/polaris/go.mod @@ -3,8 +3,8 @@ module github.com/go-kratos/kratos/contrib/registry/polaris/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 github.com/polarismesh/polaris-go v1.3.0 ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/registry/polaris/registry.go b/contrib/registry/polaris/registry.go index d9b87150c..7b1645883 100644 --- a/contrib/registry/polaris/registry.go +++ b/contrib/registry/polaris/registry.go @@ -9,9 +9,9 @@ import ( "strings" "time" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" "github.com/polarismesh/polaris-go/api" "github.com/polarismesh/polaris-go/pkg/config" diff --git a/contrib/registry/servicecomb/README.md b/contrib/registry/servicecomb/README.md index ea48cb930..e5608a996 100644 --- a/contrib/registry/servicecomb/README.md +++ b/contrib/registry/servicecomb/README.md @@ -10,7 +10,7 @@ import ( "github.com/go-chassis/sc-client" "github.com/go-kratos/kratos/contrib/registry/servicecomb/v2" - "github.com/go-kratos/kratos/v2" + "gitea.drugeyes.vip/pharnexbase/kratos/v2" ) func main() { @@ -41,7 +41,7 @@ import ( "github.com/go-chassis/sc-client" "github.com/go-kratos/kratos/contrib/registry/servicecomb/v2" - "github.com/go-kratos/kratos/v2/transport/grpc" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/grpc" ) func main() { diff --git a/contrib/registry/servicecomb/go.mod b/contrib/registry/servicecomb/go.mod index d43a5a884..2d9587bc2 100644 --- a/contrib/registry/servicecomb/go.mod +++ b/contrib/registry/servicecomb/go.mod @@ -5,7 +5,7 @@ go 1.16 require ( github.com/go-chassis/cari v0.6.0 github.com/go-chassis/sc-client v0.6.1-0.20210615014358-a45e9090c751 - github.com/go-kratos/kratos/v2 v2.3.1 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.3.1 github.com/gofrs/uuid v4.2.0+incompatible golang.org/x/net v0.7.0 // indirect ) diff --git a/contrib/registry/servicecomb/go.sum b/contrib/registry/servicecomb/go.sum index f5277cd73..e008fdc5f 100644 --- a/contrib/registry/servicecomb/go.sum +++ b/contrib/registry/servicecomb/go.sum @@ -123,8 +123,8 @@ github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2 github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= github.com/go-kratos/aegis v0.1.2/go.mod h1:jYeSQ3Gesba478zEnujOiG5QdsyF3Xk/8owFUeKcHxw= -github.com/go-kratos/kratos/v2 v2.3.1 h1:Qfx3JSEIrfZl0f8mXvbeGv3tRIZ2L/ArhcKwxAr3uMo= -github.com/go-kratos/kratos/v2 v2.3.1/go.mod h1:5acyLj4EgY428AJnZl2EwCrMV1OVlttQFBum+SghMiA= +gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.3.1 h1:Qfx3JSEIrfZl0f8mXvbeGv3tRIZ2L/ArhcKwxAr3uMo= +gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.3.1/go.mod h1:5acyLj4EgY428AJnZl2EwCrMV1OVlttQFBum+SghMiA= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= diff --git a/contrib/registry/servicecomb/registry.go b/contrib/registry/servicecomb/registry.go index d2e9a853e..8f0888f31 100644 --- a/contrib/registry/servicecomb/registry.go +++ b/contrib/registry/servicecomb/registry.go @@ -8,11 +8,10 @@ import ( "github.com/go-chassis/cari/discovery" "github.com/go-chassis/cari/pkg/errsvc" - "github.com/go-chassis/sc-client" "github.com/gofrs/uuid" - "github.com/go-kratos/kratos/v2/log" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) func init() { diff --git a/contrib/registry/servicecomb/registry_test.go b/contrib/registry/servicecomb/registry_test.go index 9e1394925..fb48b426a 100644 --- a/contrib/registry/servicecomb/registry_test.go +++ b/contrib/registry/servicecomb/registry_test.go @@ -5,10 +5,9 @@ import ( "testing" pb "github.com/go-chassis/cari/discovery" - "github.com/go-chassis/sc-client" "github.com/gofrs/uuid" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) var r *Registry @@ -23,7 +22,7 @@ func (receiver *mockClient) WatchMicroService(_ string, _ func(*sc.MicroServiceI return nil } -//nolint +// nolint func (receiver *mockClient) FindMicroServiceInstances(_, _, microServiceName, _ string, _ ...sc.CallOption, ) ([]*pb.MicroServiceInstance, error) { diff --git a/contrib/registry/servicecomb/watcher.go b/contrib/registry/servicecomb/watcher.go index cc4545ccc..1f4dbb412 100644 --- a/contrib/registry/servicecomb/watcher.go +++ b/contrib/registry/servicecomb/watcher.go @@ -3,9 +3,7 @@ package servicecomb import ( "context" - "github.com/go-chassis/sc-client" - - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) var _ registry.Watcher = (*Watcher)(nil) diff --git a/contrib/registry/zookeeper/go.mod b/contrib/registry/zookeeper/go.mod index c040ea1dd..36621c9c8 100644 --- a/contrib/registry/zookeeper/go.mod +++ b/contrib/registry/zookeeper/go.mod @@ -3,9 +3,9 @@ module github.com/go-kratos/kratos/contrib/registry/zookeeper/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.6.3 + gitea.drugeyes.vip/pharnexbase/kratos/v2 v2.6.3 github.com/go-zookeeper/zk v1.0.3 golang.org/x/sync v0.2.0 ) -replace github.com/go-kratos/kratos/v2 => ../../../ +replace gitea.drugeyes.vip/pharnexbase/kratos/v2 => ../../../ diff --git a/contrib/registry/zookeeper/register.go b/contrib/registry/zookeeper/register.go index 0e4ff0bb1..6f8247d04 100644 --- a/contrib/registry/zookeeper/register.go +++ b/contrib/registry/zookeeper/register.go @@ -8,7 +8,7 @@ import ( "github.com/go-zookeeper/zk" "golang.org/x/sync/singleflight" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) var ( diff --git a/contrib/registry/zookeeper/register_test.go b/contrib/registry/zookeeper/register_test.go index a6f4515e5..b58bd1820 100644 --- a/contrib/registry/zookeeper/register_test.go +++ b/contrib/registry/zookeeper/register_test.go @@ -8,7 +8,7 @@ import ( "github.com/go-zookeeper/zk" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) func TestRegistry_GetService(t *testing.T) { diff --git a/contrib/registry/zookeeper/service.go b/contrib/registry/zookeeper/service.go index 36cd72be2..64b6ec77d 100644 --- a/contrib/registry/zookeeper/service.go +++ b/contrib/registry/zookeeper/service.go @@ -3,7 +3,7 @@ package zookeeper import ( "encoding/json" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) func marshal(si *registry.ServiceInstance) ([]byte, error) { diff --git a/contrib/registry/zookeeper/watcher.go b/contrib/registry/zookeeper/watcher.go index 1f71d07ba..29689e6cc 100644 --- a/contrib/registry/zookeeper/watcher.go +++ b/contrib/registry/zookeeper/watcher.go @@ -8,7 +8,7 @@ import ( "github.com/go-zookeeper/zk" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) var _ registry.Watcher = (*watcher)(nil) diff --git a/encoding/form/form.go b/encoding/form/form.go index ba0447e47..ad6c9f4c2 100644 --- a/encoding/form/form.go +++ b/encoding/form/form.go @@ -7,7 +7,7 @@ import ( "github.com/go-playground/form/v4" "google.golang.org/protobuf/proto" - "github.com/go-kratos/kratos/v2/encoding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding" ) const ( diff --git a/encoding/form/form_test.go b/encoding/form/form_test.go index 27a52c4b1..5b899ce3a 100644 --- a/encoding/form/form_test.go +++ b/encoding/form/form_test.go @@ -10,10 +10,10 @@ import ( "google.golang.org/protobuf/types/known/timestamppb" "google.golang.org/protobuf/types/known/wrapperspb" - "github.com/go-kratos/kratos/v2/encoding" - bdtest "github.com/go-kratos/kratos/v2/internal/testdata/binding" - "github.com/go-kratos/kratos/v2/internal/testdata/complex" - ectest "github.com/go-kratos/kratos/v2/internal/testdata/encoding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding" + bdtest "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/testdata/binding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/testdata/complex" + ectest "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/testdata/encoding" ) type LoginRequest struct { diff --git a/encoding/form/proto_decode_test.go b/encoding/form/proto_decode_test.go index 986d7c333..3eef7343b 100644 --- a/encoding/form/proto_decode_test.go +++ b/encoding/form/proto_decode_test.go @@ -9,7 +9,7 @@ import ( "google.golang.org/protobuf/reflect/protoreflect" - "github.com/go-kratos/kratos/v2/internal/testdata/complex" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/testdata/complex" ) func TestDecodeValues(t *testing.T) { diff --git a/encoding/form/proto_encode_test.go b/encoding/form/proto_encode_test.go index 7d0cfa9ea..1376e3ce8 100644 --- a/encoding/form/proto_encode_test.go +++ b/encoding/form/proto_encode_test.go @@ -8,7 +8,7 @@ import ( "google.golang.org/protobuf/types/known/timestamppb" "google.golang.org/protobuf/types/known/wrapperspb" - "github.com/go-kratos/kratos/v2/internal/testdata/complex" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/testdata/complex" ) func TestEncodeValues(t *testing.T) { diff --git a/encoding/json/json.go b/encoding/json/json.go index c1982190e..f6a5f41b0 100644 --- a/encoding/json/json.go +++ b/encoding/json/json.go @@ -7,7 +7,7 @@ import ( "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/proto" - "github.com/go-kratos/kratos/v2/encoding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding" ) // Name is the name registered for the json codec. diff --git a/encoding/json/json_test.go b/encoding/json/json_test.go index b43e4ef70..22411b074 100644 --- a/encoding/json/json_test.go +++ b/encoding/json/json_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - testData "github.com/go-kratos/kratos/v2/internal/testdata/encoding" + testData "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/testdata/encoding" ) type testEmbed struct { diff --git a/encoding/proto/proto.go b/encoding/proto/proto.go index 8c6ae58d1..fc0aef5e5 100644 --- a/encoding/proto/proto.go +++ b/encoding/proto/proto.go @@ -8,7 +8,7 @@ import ( "google.golang.org/protobuf/proto" - "github.com/go-kratos/kratos/v2/encoding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding" ) // Name is the name registered for the proto compressor. diff --git a/encoding/proto/proto_test.go b/encoding/proto/proto_test.go index 2c2ffece9..6dd755650 100644 --- a/encoding/proto/proto_test.go +++ b/encoding/proto/proto_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - testData "github.com/go-kratos/kratos/v2/internal/testdata/encoding" + testData "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/testdata/encoding" ) func TestName(t *testing.T) { diff --git a/encoding/xml/xml.go b/encoding/xml/xml.go index 3352fdfaf..d7ab104b7 100644 --- a/encoding/xml/xml.go +++ b/encoding/xml/xml.go @@ -3,7 +3,7 @@ package xml import ( "encoding/xml" - "github.com/go-kratos/kratos/v2/encoding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding" ) // Name is the name registered for the xml codec. diff --git a/encoding/yaml/yaml.go b/encoding/yaml/yaml.go index 1364b24c1..f817e0da4 100644 --- a/encoding/yaml/yaml.go +++ b/encoding/yaml/yaml.go @@ -3,7 +3,7 @@ package yaml import ( "gopkg.in/yaml.v3" - "github.com/go-kratos/kratos/v2/encoding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding" ) // Name is the name registered for the yaml codec. diff --git a/errors/errors.go b/errors/errors.go index caf31cd3e..63ec17287 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -7,7 +7,7 @@ import ( "google.golang.org/genproto/googleapis/rpc/errdetails" "google.golang.org/grpc/status" - httpstatus "github.com/go-kratos/kratos/v2/transport/http/status" + httpstatus "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/http/status" ) const ( diff --git a/errors/errors.proto b/errors/errors.proto index ab14f20b3..37c143fe8 100644 --- a/errors/errors.proto +++ b/errors/errors.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package errors; -option go_package = "github.com/go-kratos/kratos/v2/errors;errors"; +option go_package = "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors;errors"; option java_multiple_files = true; option java_package = "com.github.kratos.errors"; option objc_class_prefix = "KratosErrors"; diff --git a/go.mod b/go.mod index bacfe5df4..d651f7611 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/go-kratos/kratos/v2 +module gitea.drugeyes.vip/pharnexbase/kratos/v2 go 1.19 diff --git a/internal/matcher/middleware.go b/internal/matcher/middleware.go index 8d5681820..ad1abc021 100644 --- a/internal/matcher/middleware.go +++ b/internal/matcher/middleware.go @@ -4,7 +4,7 @@ import ( "sort" "strings" - "github.com/go-kratos/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" ) // Matcher is a middleware matcher. diff --git a/internal/matcher/middleware_test.go b/internal/matcher/middleware_test.go index 9c948aebc..25b1672b9 100644 --- a/internal/matcher/middleware_test.go +++ b/internal/matcher/middleware_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - "github.com/go-kratos/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" ) func logging(module string) middleware.Middleware { diff --git a/internal/testdata/helloworld/helloworld.proto b/internal/testdata/helloworld/helloworld.proto index ed068a38b..e8afacf57 100644 --- a/internal/testdata/helloworld/helloworld.proto +++ b/internal/testdata/helloworld/helloworld.proto @@ -4,7 +4,7 @@ package helloworld; import "google/api/annotations.proto"; -option go_package = "github.com/go-kratos/kratos/v2/internal/testdata/helloworld"; +option go_package = "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/testdata/helloworld"; // The greeting service definition. service Greeter { diff --git a/internal/testdata/helloworld/helloworld_http.pb.go b/internal/testdata/helloworld/helloworld_http.pb.go index b77f02ec2..f47006a5e 100644 --- a/internal/testdata/helloworld/helloworld_http.pb.go +++ b/internal/testdata/helloworld/helloworld_http.pb.go @@ -6,8 +6,8 @@ package helloworld import ( context "context" - http "github.com/go-kratos/kratos/v2/transport/http" - binding "github.com/go-kratos/kratos/v2/transport/http/binding" + http "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/http" + binding "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/http/binding" ) // This is a compile-time assertion to ensure that this generated file diff --git a/middleware/auth/jwt/jwt.go b/middleware/auth/jwt/jwt.go index c83d5cddd..6acc48ba7 100644 --- a/middleware/auth/jwt/jwt.go +++ b/middleware/auth/jwt/jwt.go @@ -7,9 +7,9 @@ import ( "github.com/golang-jwt/jwt/v4" - "github.com/go-kratos/kratos/v2/errors" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) type authKey struct{} diff --git a/middleware/auth/jwt/jwt_test.go b/middleware/auth/jwt/jwt_test.go index dc2cc9e02..070372d5e 100644 --- a/middleware/auth/jwt/jwt_test.go +++ b/middleware/auth/jwt/jwt_test.go @@ -14,8 +14,8 @@ import ( "github.com/golang-jwt/jwt/v4" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) type headerCarrier http.Header diff --git a/middleware/circuitbreaker/circuitbreaker.go b/middleware/circuitbreaker/circuitbreaker.go index 76f261fd2..628b14484 100644 --- a/middleware/circuitbreaker/circuitbreaker.go +++ b/middleware/circuitbreaker/circuitbreaker.go @@ -6,10 +6,10 @@ import ( "github.com/go-kratos/aegis/circuitbreaker" "github.com/go-kratos/aegis/circuitbreaker/sre" - "github.com/go-kratos/kratos/v2/errors" - "github.com/go-kratos/kratos/v2/internal/group" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/group" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) // ErrNotAllowed is request failed due to circuit breaker triggered. diff --git a/middleware/circuitbreaker/circuitbreaker_test.go b/middleware/circuitbreaker/circuitbreaker_test.go index 3b27da1a3..b2a7fa230 100644 --- a/middleware/circuitbreaker/circuitbreaker_test.go +++ b/middleware/circuitbreaker/circuitbreaker_test.go @@ -5,9 +5,9 @@ import ( "errors" "testing" - kratoserrors "github.com/go-kratos/kratos/v2/errors" - "github.com/go-kratos/kratos/v2/internal/group" - "github.com/go-kratos/kratos/v2/transport" + kratoserrors "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/group" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) type transportMock struct { diff --git a/middleware/logging/logging.go b/middleware/logging/logging.go index 9573d1985..856c2a971 100644 --- a/middleware/logging/logging.go +++ b/middleware/logging/logging.go @@ -5,10 +5,10 @@ import ( "fmt" "time" - "github.com/go-kratos/kratos/v2/errors" - "github.com/go-kratos/kratos/v2/log" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) // Redacter defines how to log an object diff --git a/middleware/logging/logging_test.go b/middleware/logging/logging_test.go index 76cad19b1..10d7cb887 100644 --- a/middleware/logging/logging_test.go +++ b/middleware/logging/logging_test.go @@ -6,9 +6,9 @@ import ( "errors" "testing" - "github.com/go-kratos/kratos/v2/log" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) var _ transport.Transporter = (*Transport)(nil) diff --git a/middleware/metadata/metadata.go b/middleware/metadata/metadata.go index 30cb8df90..3f5bd4f8b 100644 --- a/middleware/metadata/metadata.go +++ b/middleware/metadata/metadata.go @@ -4,9 +4,9 @@ import ( "context" "strings" - "github.com/go-kratos/kratos/v2/metadata" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/metadata" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) // Option is metadata option. diff --git a/middleware/metadata/metadata_test.go b/middleware/metadata/metadata_test.go index 9e9436d75..004815f64 100644 --- a/middleware/metadata/metadata_test.go +++ b/middleware/metadata/metadata_test.go @@ -7,8 +7,8 @@ import ( "reflect" "testing" - "github.com/go-kratos/kratos/v2/metadata" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/metadata" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) type headerCarrier http.Header diff --git a/middleware/metrics/metrics.go b/middleware/metrics/metrics.go index 1ca95cca7..63af1caba 100644 --- a/middleware/metrics/metrics.go +++ b/middleware/metrics/metrics.go @@ -5,10 +5,10 @@ import ( "strconv" "time" - "github.com/go-kratos/kratos/v2/errors" - "github.com/go-kratos/kratos/v2/metrics" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/metrics" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) // Option is metrics option. diff --git a/middleware/metrics/metrics_test.go b/middleware/metrics/metrics_test.go index 72b3137d9..dfeb22090 100644 --- a/middleware/metrics/metrics_test.go +++ b/middleware/metrics/metrics_test.go @@ -5,9 +5,9 @@ import ( "errors" "testing" - "github.com/go-kratos/kratos/v2/metrics" - "github.com/go-kratos/kratos/v2/transport" - "github.com/go-kratos/kratos/v2/transport/http" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/metrics" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/http" ) type ( diff --git a/middleware/ratelimit/ratelimit.go b/middleware/ratelimit/ratelimit.go index 23f217530..6fce3923c 100644 --- a/middleware/ratelimit/ratelimit.go +++ b/middleware/ratelimit/ratelimit.go @@ -6,8 +6,8 @@ import ( "github.com/go-kratos/aegis/ratelimit" "github.com/go-kratos/aegis/ratelimit/bbr" - "github.com/go-kratos/kratos/v2/errors" - "github.com/go-kratos/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" ) // ErrLimitExceed is service unavailable due to rate limit exceeded. diff --git a/middleware/recovery/recovery.go b/middleware/recovery/recovery.go index 53e67f81b..6a1b71fa0 100644 --- a/middleware/recovery/recovery.go +++ b/middleware/recovery/recovery.go @@ -5,9 +5,9 @@ import ( "runtime" "time" - "github.com/go-kratos/kratos/v2/errors" - "github.com/go-kratos/kratos/v2/log" - "github.com/go-kratos/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" ) // Latency is recovery latency context key diff --git a/middleware/recovery/recovery_test.go b/middleware/recovery/recovery_test.go index b20b5652c..9e1db16f0 100644 --- a/middleware/recovery/recovery_test.go +++ b/middleware/recovery/recovery_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/go-kratos/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" ) func TestOnce(t *testing.T) { diff --git a/middleware/selector/selector.go b/middleware/selector/selector.go index 9cbf520bb..221ad7d16 100644 --- a/middleware/selector/selector.go +++ b/middleware/selector/selector.go @@ -5,8 +5,8 @@ import ( "regexp" "strings" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) type ( diff --git a/middleware/selector/selector_test.go b/middleware/selector/selector_test.go index 0835ef844..5f6372f82 100644 --- a/middleware/selector/selector_test.go +++ b/middleware/selector/selector_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) var _ transport.Transporter = (*Transport)(nil) diff --git a/middleware/tracing/metadata.go b/middleware/tracing/metadata.go index 7ad82806a..6f1973b57 100644 --- a/middleware/tracing/metadata.go +++ b/middleware/tracing/metadata.go @@ -2,11 +2,11 @@ package tracing import ( "context" + "gitea.drugeyes.vip/pharnexbase/kratos/v2" "go.opentelemetry.io/otel/propagation" - "github.com/go-kratos/kratos/v2" - "github.com/go-kratos/kratos/v2/metadata" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/metadata" ) const serviceHeader = "x-md-service-name" diff --git a/middleware/tracing/metadata_test.go b/middleware/tracing/metadata_test.go index 09446c2a8..c39bc26e8 100644 --- a/middleware/tracing/metadata_test.go +++ b/middleware/tracing/metadata_test.go @@ -2,11 +2,11 @@ package tracing import ( "context" + "gitea.drugeyes.vip/pharnexbase/kratos/v2" "reflect" "testing" - "github.com/go-kratos/kratos/v2" - "github.com/go-kratos/kratos/v2/metadata" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/metadata" "go.opentelemetry.io/otel/propagation" ) diff --git a/middleware/tracing/span.go b/middleware/tracing/span.go index a0a9d462d..a289901a2 100644 --- a/middleware/tracing/span.go +++ b/middleware/tracing/span.go @@ -6,9 +6,9 @@ import ( "net/url" "strings" - "github.com/go-kratos/kratos/v2/metadata" - "github.com/go-kratos/kratos/v2/transport" - "github.com/go-kratos/kratos/v2/transport/http" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/metadata" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/http" "go.opentelemetry.io/otel/attribute" semconv "go.opentelemetry.io/otel/semconv/v1.4.0" diff --git a/middleware/tracing/span_test.go b/middleware/tracing/span_test.go index 6929ece18..8c350ce1c 100644 --- a/middleware/tracing/span_test.go +++ b/middleware/tracing/span_test.go @@ -12,9 +12,9 @@ import ( "go.opentelemetry.io/otel/trace" "google.golang.org/grpc/peer" - "github.com/go-kratos/kratos/v2/internal/testdata/binding" - "github.com/go-kratos/kratos/v2/metadata" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/testdata/binding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/metadata" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) func Test_parseFullMethod(t *testing.T) { diff --git a/middleware/tracing/tracer.go b/middleware/tracing/tracer.go index 67f1a2d95..b92bb4e13 100644 --- a/middleware/tracing/tracer.go +++ b/middleware/tracing/tracer.go @@ -11,7 +11,7 @@ import ( "go.opentelemetry.io/otel/trace" "google.golang.org/protobuf/proto" - "github.com/go-kratos/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" ) // Tracer is otel span tracer diff --git a/middleware/tracing/tracer_test.go b/middleware/tracing/tracer_test.go index 8983a0732..b2b8b1017 100644 --- a/middleware/tracing/tracer_test.go +++ b/middleware/tracing/tracer_test.go @@ -7,7 +7,7 @@ import ( "go.opentelemetry.io/otel/trace" - "github.com/go-kratos/kratos/v2/internal/testdata/binding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/testdata/binding" ) func TestNewTracer(t *testing.T) { diff --git a/middleware/tracing/tracing.go b/middleware/tracing/tracing.go index 7d9b53a1b..c01a904d7 100644 --- a/middleware/tracing/tracing.go +++ b/middleware/tracing/tracing.go @@ -3,13 +3,13 @@ package tracing import ( "context" - "github.com/go-kratos/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" "go.opentelemetry.io/otel/propagation" "go.opentelemetry.io/otel/trace" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) // Option is tracing option. diff --git a/middleware/tracing/tracing_test.go b/middleware/tracing/tracing_test.go index 72740bafa..55f4e3957 100644 --- a/middleware/tracing/tracing_test.go +++ b/middleware/tracing/tracing_test.go @@ -11,8 +11,8 @@ import ( tracesdk "go.opentelemetry.io/otel/sdk/trace" "go.opentelemetry.io/otel/trace" - "github.com/go-kratos/kratos/v2/log" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) var _ transport.Transporter = (*mockTransport)(nil) diff --git a/middleware/validate/validate.go b/middleware/validate/validate.go index f33d76e44..befcf4fd1 100644 --- a/middleware/validate/validate.go +++ b/middleware/validate/validate.go @@ -3,8 +3,8 @@ package validate import ( "context" - "github.com/go-kratos/kratos/v2/errors" - "github.com/go-kratos/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" ) type validator interface { diff --git a/middleware/validate/validate_test.go b/middleware/validate/validate_test.go index 34fc33497..cf15a7e11 100644 --- a/middleware/validate/validate_test.go +++ b/middleware/validate/validate_test.go @@ -5,8 +5,8 @@ import ( "errors" "testing" - kratoserrors "github.com/go-kratos/kratos/v2/errors" - "github.com/go-kratos/kratos/v2/middleware" + kratoserrors "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" ) // protoVali implement validate.validator diff --git a/options.go b/options.go index 5e337a38e..4bbcb2a50 100644 --- a/options.go +++ b/options.go @@ -6,9 +6,9 @@ import ( "os" "time" - "github.com/go-kratos/kratos/v2/log" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) // Option is an application option. diff --git a/options_test.go b/options_test.go index e1b7288bd..70dcf24a2 100644 --- a/options_test.go +++ b/options_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - xlog "github.com/go-kratos/kratos/v2/log" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/transport" + xlog "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) func TestID(t *testing.T) { diff --git a/selector/default_node.go b/selector/default_node.go index 3554a3a13..c71e9794e 100644 --- a/selector/default_node.go +++ b/selector/default_node.go @@ -3,7 +3,7 @@ package selector import ( "strconv" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) var _ Node = (*DefaultNode)(nil) diff --git a/selector/filter/version.go b/selector/filter/version.go index 21f8518ae..29801f406 100644 --- a/selector/filter/version.go +++ b/selector/filter/version.go @@ -3,7 +3,7 @@ package filter import ( "context" - "github.com/go-kratos/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" ) // Version is version filter. diff --git a/selector/filter/version_test.go b/selector/filter/version_test.go index 8c0895e3f..90be0597d 100644 --- a/selector/filter/version_test.go +++ b/selector/filter/version_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" ) func TestVersion(t *testing.T) { diff --git a/selector/node/direct/direct.go b/selector/node/direct/direct.go index d32fc3148..39d338c1d 100644 --- a/selector/node/direct/direct.go +++ b/selector/node/direct/direct.go @@ -5,7 +5,7 @@ import ( "sync/atomic" "time" - "github.com/go-kratos/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" ) const ( diff --git a/selector/node/direct/direct_test.go b/selector/node/direct/direct_test.go index 5da0007a6..20115e250 100644 --- a/selector/node/direct/direct_test.go +++ b/selector/node/direct/direct_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" ) func TestDirect(t *testing.T) { diff --git a/selector/node/ewma/node.go b/selector/node/ewma/node.go index c718f2525..1269eccd4 100644 --- a/selector/node/ewma/node.go +++ b/selector/node/ewma/node.go @@ -9,8 +9,8 @@ import ( "sync/atomic" "time" - "github.com/go-kratos/kratos/v2/errors" - "github.com/go-kratos/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" ) const ( diff --git a/selector/node/ewma/node_test.go b/selector/node/ewma/node_test.go index d930495c3..9658f950d 100644 --- a/selector/node/ewma/node_test.go +++ b/selector/node/ewma/node_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" ) func TestDirect(t *testing.T) { diff --git a/selector/p2c/p2c.go b/selector/p2c/p2c.go index afca98079..6eba6d233 100644 --- a/selector/p2c/p2c.go +++ b/selector/p2c/p2c.go @@ -7,8 +7,8 @@ import ( "sync/atomic" "time" - "github.com/go-kratos/kratos/v2/selector" - "github.com/go-kratos/kratos/v2/selector/node/ewma" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector/node/ewma" ) const ( diff --git a/selector/p2c/p2c_test.go b/selector/p2c/p2c_test.go index c82063617..b32712e4c 100644 --- a/selector/p2c/p2c_test.go +++ b/selector/p2c/p2c_test.go @@ -10,9 +10,9 @@ import ( "testing" "time" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/selector" - "github.com/go-kratos/kratos/v2/selector/filter" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector/filter" ) func TestWrr3(t *testing.T) { diff --git a/selector/random/random.go b/selector/random/random.go index 1ab7c979c..39fc3d5c5 100644 --- a/selector/random/random.go +++ b/selector/random/random.go @@ -4,8 +4,8 @@ import ( "context" "math/rand" - "github.com/go-kratos/kratos/v2/selector" - "github.com/go-kratos/kratos/v2/selector/node/direct" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector/node/direct" ) const ( diff --git a/selector/random/random_test.go b/selector/random/random_test.go index 33e689941..b32734d2d 100644 --- a/selector/random/random_test.go +++ b/selector/random/random_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/selector" - "github.com/go-kratos/kratos/v2/selector/filter" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector/filter" ) func TestWrr(t *testing.T) { diff --git a/selector/selector.go b/selector/selector.go index e346f6c35..5d409bcfe 100644 --- a/selector/selector.go +++ b/selector/selector.go @@ -3,7 +3,7 @@ package selector import ( "context" - "github.com/go-kratos/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" ) // ErrNoAvailable is no available node. diff --git a/selector/selector_test.go b/selector/selector_test.go index b7b963f0c..30761f22b 100644 --- a/selector/selector_test.go +++ b/selector/selector_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) var errNodeNotMatch = errors.New("node is not match") diff --git a/selector/wrr/wrr.go b/selector/wrr/wrr.go index f81d71714..8e07dbc91 100644 --- a/selector/wrr/wrr.go +++ b/selector/wrr/wrr.go @@ -4,8 +4,8 @@ import ( "context" "sync" - "github.com/go-kratos/kratos/v2/selector" - "github.com/go-kratos/kratos/v2/selector/node/direct" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector/node/direct" ) const ( diff --git a/selector/wrr/wrr_test.go b/selector/wrr/wrr_test.go index f1d4b45f5..1afb9c6b0 100644 --- a/selector/wrr/wrr_test.go +++ b/selector/wrr/wrr_test.go @@ -5,9 +5,9 @@ import ( "reflect" "testing" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/selector" - "github.com/go-kratos/kratos/v2/selector/filter" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector/filter" ) func TestWrr(t *testing.T) { diff --git a/third_party/errors/errors.proto b/third_party/errors/errors.proto index 331f0fbaa..eefb09abc 100644 --- a/third_party/errors/errors.proto +++ b/third_party/errors/errors.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package errors; -option go_package = "github.com/go-kratos/kratos/v2/errors;errors"; +option go_package = "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors;errors"; option java_multiple_files = true; option java_package = "com.github.kratos.errors"; option objc_class_prefix = "KratosErrors"; diff --git a/transport/grpc/balancer.go b/transport/grpc/balancer.go index f42dc23bd..e9c841533 100644 --- a/transport/grpc/balancer.go +++ b/transport/grpc/balancer.go @@ -5,9 +5,9 @@ import ( "google.golang.org/grpc/balancer/base" "google.golang.org/grpc/metadata" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/selector" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) const ( diff --git a/transport/grpc/balancer_test.go b/transport/grpc/balancer_test.go index 2dbb53bb9..3fa45f02d 100644 --- a/transport/grpc/balancer_test.go +++ b/transport/grpc/balancer_test.go @@ -7,7 +7,7 @@ import ( "google.golang.org/grpc/metadata" - "github.com/go-kratos/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" ) func TestTrailer(t *testing.T) { diff --git a/transport/grpc/client.go b/transport/grpc/client.go index 3c8a17d75..03c0b836a 100644 --- a/transport/grpc/client.go +++ b/transport/grpc/client.go @@ -11,16 +11,16 @@ import ( grpcinsecure "google.golang.org/grpc/credentials/insecure" grpcmd "google.golang.org/grpc/metadata" - "github.com/go-kratos/kratos/v2/log" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/selector" - "github.com/go-kratos/kratos/v2/selector/wrr" - "github.com/go-kratos/kratos/v2/transport" - "github.com/go-kratos/kratos/v2/transport/grpc/resolver/discovery" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector/wrr" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/grpc/resolver/discovery" // init resolver - _ "github.com/go-kratos/kratos/v2/transport/grpc/resolver/direct" + _ "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/grpc/resolver/direct" ) func init() { diff --git a/transport/grpc/client_test.go b/transport/grpc/client_test.go index b2e5e3776..9901113c2 100644 --- a/transport/grpc/client_test.go +++ b/transport/grpc/client_test.go @@ -9,8 +9,8 @@ import ( "google.golang.org/grpc" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) func TestWithEndpoint(t *testing.T) { diff --git a/transport/grpc/codec.go b/transport/grpc/codec.go index 231f114f8..ae66264bc 100644 --- a/transport/grpc/codec.go +++ b/transport/grpc/codec.go @@ -6,8 +6,8 @@ import ( "google.golang.org/grpc/encoding" "google.golang.org/protobuf/proto" - enc "github.com/go-kratos/kratos/v2/encoding" - "github.com/go-kratos/kratos/v2/encoding/json" + enc "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding/json" ) func init() { diff --git a/transport/grpc/interceptor.go b/transport/grpc/interceptor.go index 6cc331547..9e1272aec 100644 --- a/transport/grpc/interceptor.go +++ b/transport/grpc/interceptor.go @@ -6,9 +6,9 @@ import ( "google.golang.org/grpc" grpcmd "google.golang.org/grpc/metadata" - ic "github.com/go-kratos/kratos/v2/internal/context" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/transport" + ic "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/context" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) // unaryServerInterceptor is a gRPC unary server interceptor diff --git a/transport/grpc/resolver/discovery/builder.go b/transport/grpc/resolver/discovery/builder.go index 3d147cd83..0a345664e 100644 --- a/transport/grpc/resolver/discovery/builder.go +++ b/transport/grpc/resolver/discovery/builder.go @@ -9,7 +9,7 @@ import ( "github.com/google/uuid" "google.golang.org/grpc/resolver" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) const name = "discovery" diff --git a/transport/grpc/resolver/discovery/builder_test.go b/transport/grpc/resolver/discovery/builder_test.go index e216a5445..0cebc43a6 100644 --- a/transport/grpc/resolver/discovery/builder_test.go +++ b/transport/grpc/resolver/discovery/builder_test.go @@ -10,7 +10,7 @@ import ( "google.golang.org/grpc/resolver" "google.golang.org/grpc/serviceconfig" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) func TestWithInsecure(t *testing.T) { diff --git a/transport/grpc/resolver/discovery/resolver.go b/transport/grpc/resolver/discovery/resolver.go index 10775d749..d18beea69 100644 --- a/transport/grpc/resolver/discovery/resolver.go +++ b/transport/grpc/resolver/discovery/resolver.go @@ -9,10 +9,10 @@ import ( "google.golang.org/grpc/attributes" "google.golang.org/grpc/resolver" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/endpoint" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" "github.com/go-kratos/aegis/subset" - "github.com/go-kratos/kratos/v2/internal/endpoint" - "github.com/go-kratos/kratos/v2/log" - "github.com/go-kratos/kratos/v2/registry" ) type discoveryResolver struct { diff --git a/transport/grpc/resolver/discovery/resolver_test.go b/transport/grpc/resolver/discovery/resolver_test.go index 39ae400e9..0bc105012 100644 --- a/transport/grpc/resolver/discovery/resolver_test.go +++ b/transport/grpc/resolver/discovery/resolver_test.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc/resolver" - "github.com/go-kratos/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" ) type testClientConn struct { diff --git a/transport/grpc/server.go b/transport/grpc/server.go index 6e281b671..fe4713559 100644 --- a/transport/grpc/server.go +++ b/transport/grpc/server.go @@ -14,13 +14,13 @@ import ( "google.golang.org/grpc/health/grpc_health_v1" "google.golang.org/grpc/reflection" - apimd "github.com/go-kratos/kratos/v2/api/metadata" - "github.com/go-kratos/kratos/v2/internal/endpoint" - "github.com/go-kratos/kratos/v2/internal/host" - "github.com/go-kratos/kratos/v2/internal/matcher" - "github.com/go-kratos/kratos/v2/log" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/transport" + apimd "gitea.drugeyes.vip/pharnexbase/kratos/v2/api/metadata" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/endpoint" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/host" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/matcher" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) var ( diff --git a/transport/grpc/server_test.go b/transport/grpc/server_test.go index d9d2c7af3..f866e78c8 100644 --- a/transport/grpc/server_test.go +++ b/transport/grpc/server_test.go @@ -13,11 +13,11 @@ import ( "google.golang.org/grpc" - "github.com/go-kratos/kratos/v2/errors" - "github.com/go-kratos/kratos/v2/internal/matcher" - pb "github.com/go-kratos/kratos/v2/internal/testdata/helloworld" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/matcher" + pb "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/testdata/helloworld" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) // server is used to implement helloworld.GreeterServer. diff --git a/transport/grpc/transport.go b/transport/grpc/transport.go index 56e21a863..792ecc09d 100644 --- a/transport/grpc/transport.go +++ b/transport/grpc/transport.go @@ -3,8 +3,8 @@ package grpc import ( "google.golang.org/grpc/metadata" - "github.com/go-kratos/kratos/v2/selector" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) var _ transport.Transporter = (*Transport)(nil) diff --git a/transport/grpc/transport_test.go b/transport/grpc/transport_test.go index 270243f05..58deebc28 100644 --- a/transport/grpc/transport_test.go +++ b/transport/grpc/transport_test.go @@ -5,7 +5,7 @@ import ( "sort" "testing" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) func TestTransport_Kind(t *testing.T) { diff --git a/transport/http/binding/bind.go b/transport/http/binding/bind.go index 69534ada6..ab19b214f 100644 --- a/transport/http/binding/bind.go +++ b/transport/http/binding/bind.go @@ -4,9 +4,9 @@ import ( "net/http" "net/url" - "github.com/go-kratos/kratos/v2/encoding" - "github.com/go-kratos/kratos/v2/encoding/form" - "github.com/go-kratos/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding/form" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" ) // BindQuery bind vars parameters to target. diff --git a/transport/http/binding/bind_test.go b/transport/http/binding/bind_test.go index 962292c4a..b074a8ccc 100644 --- a/transport/http/binding/bind_test.go +++ b/transport/http/binding/bind_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - kratoserror "github.com/go-kratos/kratos/v2/errors" + kratoserror "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" ) type ( diff --git a/transport/http/binding/encode.go b/transport/http/binding/encode.go index 5f12cf370..c198a63ba 100644 --- a/transport/http/binding/encode.go +++ b/transport/http/binding/encode.go @@ -6,7 +6,7 @@ import ( "google.golang.org/protobuf/proto" - "github.com/go-kratos/kratos/v2/encoding/form" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding/form" ) var reg = regexp.MustCompile(`{[\\.\w]+}`) diff --git a/transport/http/binding/encode_test.go b/transport/http/binding/encode_test.go index 4236abf3b..14b5f3a69 100644 --- a/transport/http/binding/encode_test.go +++ b/transport/http/binding/encode_test.go @@ -5,7 +5,7 @@ import ( "google.golang.org/protobuf/types/known/fieldmaskpb" - "github.com/go-kratos/kratos/v2/internal/testdata/binding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/testdata/binding" ) func TestEncodeURL(t *testing.T) { diff --git a/transport/http/client.go b/transport/http/client.go index 2d2a352ca..cf4411296 100644 --- a/transport/http/client.go +++ b/transport/http/client.go @@ -9,15 +9,15 @@ import ( "net/http" "time" - "github.com/go-kratos/kratos/v2/encoding" - "github.com/go-kratos/kratos/v2/errors" - "github.com/go-kratos/kratos/v2/internal/host" - "github.com/go-kratos/kratos/v2/internal/httputil" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/selector" - "github.com/go-kratos/kratos/v2/selector/wrr" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/host" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/httputil" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector/wrr" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) func init() { diff --git a/transport/http/client_test.go b/transport/http/client_test.go index 25ae9a8ec..d99c31938 100644 --- a/transport/http/client_test.go +++ b/transport/http/client_test.go @@ -15,10 +15,10 @@ import ( "testing" "time" - kratoserrors "github.com/go-kratos/kratos/v2/errors" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/selector" + kratoserrors "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" ) type mockRoundTripper struct{} diff --git a/transport/http/codec.go b/transport/http/codec.go index 39db4d211..030a49072 100644 --- a/transport/http/codec.go +++ b/transport/http/codec.go @@ -9,10 +9,10 @@ import ( "github.com/gorilla/mux" - "github.com/go-kratos/kratos/v2/encoding" - "github.com/go-kratos/kratos/v2/errors" - "github.com/go-kratos/kratos/v2/internal/httputil" - "github.com/go-kratos/kratos/v2/transport/http/binding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/httputil" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/http/binding" ) // SupportPackageIsVersion1 These constants should not be referenced from any other code. diff --git a/transport/http/codec_test.go b/transport/http/codec_test.go index 8efd23322..dcbe9dd17 100644 --- a/transport/http/codec_test.go +++ b/transport/http/codec_test.go @@ -6,7 +6,7 @@ import ( "net/http" "testing" - "github.com/go-kratos/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" ) func TestDefaultRequestDecoder(t *testing.T) { diff --git a/transport/http/context.go b/transport/http/context.go index ab9a1d391..fb73e6082 100644 --- a/transport/http/context.go +++ b/transport/http/context.go @@ -11,9 +11,9 @@ import ( "github.com/gorilla/mux" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/transport" - "github.com/go-kratos/kratos/v2/transport/http/binding" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/http/binding" ) var _ Context = (*wrapper)(nil) diff --git a/transport/http/resolver.go b/transport/http/resolver.go index bcbf8f3b3..147456ff2 100644 --- a/transport/http/resolver.go +++ b/transport/http/resolver.go @@ -9,11 +9,11 @@ import ( "github.com/google/uuid" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/endpoint" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" "github.com/go-kratos/aegis/subset" - "github.com/go-kratos/kratos/v2/internal/endpoint" - "github.com/go-kratos/kratos/v2/log" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/selector" ) // Target is resolver target diff --git a/transport/http/resolver_test.go b/transport/http/resolver_test.go index e1cfd1033..96cff6bbd 100644 --- a/transport/http/resolver_test.go +++ b/transport/http/resolver_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "github.com/go-kratos/kratos/v2/registry" - "github.com/go-kratos/kratos/v2/selector" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/registry" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/selector" ) func TestParseTarget(t *testing.T) { diff --git a/transport/http/router_test.go b/transport/http/router_test.go index 1849939d1..4995cd8b9 100644 --- a/transport/http/router_test.go +++ b/transport/http/router_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/go-kratos/kratos/v2/internal/host" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/host" ) const appJSONStr = "application/json" diff --git a/transport/http/server.go b/transport/http/server.go index 8bece9afe..15541f9b2 100644 --- a/transport/http/server.go +++ b/transport/http/server.go @@ -11,12 +11,12 @@ import ( "github.com/gorilla/mux" - "github.com/go-kratos/kratos/v2/internal/endpoint" - "github.com/go-kratos/kratos/v2/internal/host" - "github.com/go-kratos/kratos/v2/internal/matcher" - "github.com/go-kratos/kratos/v2/log" - "github.com/go-kratos/kratos/v2/middleware" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/endpoint" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/host" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/matcher" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/log" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/middleware" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) var ( diff --git a/transport/http/server_test.go b/transport/http/server_test.go index 781c06a71..0c65b494c 100644 --- a/transport/http/server_test.go +++ b/transport/http/server_test.go @@ -14,8 +14,8 @@ import ( "testing" "time" - kratoserrors "github.com/go-kratos/kratos/v2/errors" - "github.com/go-kratos/kratos/v2/internal/host" + kratoserrors "gitea.drugeyes.vip/pharnexbase/kratos/v2/errors" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/internal/host" ) var h = func(w http.ResponseWriter, r *http.Request) { diff --git a/transport/http/transport.go b/transport/http/transport.go index 686baed76..933b7d816 100644 --- a/transport/http/transport.go +++ b/transport/http/transport.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) var _ Transporter = (*Transport)(nil) diff --git a/transport/http/transport_test.go b/transport/http/transport_test.go index 01095c7ea..5f4fc405f 100644 --- a/transport/http/transport_test.go +++ b/transport/http/transport_test.go @@ -7,7 +7,7 @@ import ( "sort" "testing" - "github.com/go-kratos/kratos/v2/transport" + "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport" ) func TestTransport_Kind(t *testing.T) { diff --git a/transport/transport.go b/transport/transport.go index c1a5396f1..b7f5aff0e 100644 --- a/transport/transport.go +++ b/transport/transport.go @@ -5,11 +5,11 @@ import ( "net/url" // init encoding - _ "github.com/go-kratos/kratos/v2/encoding/form" - _ "github.com/go-kratos/kratos/v2/encoding/json" - _ "github.com/go-kratos/kratos/v2/encoding/proto" - _ "github.com/go-kratos/kratos/v2/encoding/xml" - _ "github.com/go-kratos/kratos/v2/encoding/yaml" + _ "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding/form" + _ "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding/json" + _ "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding/proto" + _ "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding/xml" + _ "gitea.drugeyes.vip/pharnexbase/kratos/v2/encoding/yaml" ) // Server is transport server.