diff --git a/go.mod b/go.mod index 00edcd7..fa03f1c 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ -module go.unistack.org/micro-wrapper-requestid/v3 +module go.unistack.org/micro-wrapper-requestid/v4 -go 1.16 +go 1.20 -require go.unistack.org/micro/v3 v3.10.19 +require go.unistack.org/micro/v4 v4.0.1 diff --git a/go.sum b/go.sum index d495cd3..ff93cdc 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,2 @@ -github.com/imdario/mergo v0.3.14/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= -github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= -github.com/silas/dag v0.0.0-20211117232152-9d50aa809f35/go.mod h1:7RTUFBdIRC9nZ7/3RyRNH1bdqIShrDejd1YbLwgPS+I= -go.unistack.org/micro/v3 v3.10.19 h1:JtPacglETxHyb+GiuMdfxqGtnWSTYXPQm6PlDQfNIl8= -go.unistack.org/micro/v3 v3.10.19/go.mod h1:XIArw29f0b3uvF4cq96X/nQt2f0J2OGnjh8J+DBbC0s= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +go.unistack.org/micro/v4 v4.0.1 h1:xo1IxbVfgh8i0eY0VeYa3cbb13u5n/Mxnp3FOgWD4Jo= +go.unistack.org/micro/v4 v4.0.1/go.mod h1:p/J5UcSJjfHsWGT31uKoghQ5rUQZzQJBAFy+Z4+ZVMs= diff --git a/requestid.go b/requestid.go index 3609c03..311cbf5 100644 --- a/requestid.go +++ b/requestid.go @@ -1,16 +1,16 @@ -package requestid // import "go.unistack.org/micro-wrapper-requestid/v3" +package requestid // import "go.unistack.org/micro-wrapper-requestid/v4" import ( "context" "net/textproto" - "go.unistack.org/micro/v3/client" - "go.unistack.org/micro/v3/metadata" - "go.unistack.org/micro/v3/server" - "go.unistack.org/micro/v3/util/id" + "go.unistack.org/micro/v4/client" + "go.unistack.org/micro/v4/metadata" + "go.unistack.org/micro/v4/server" + "go.unistack.org/micro/v4/util/id" ) -// DefaultMetadataKey contains metadata key +// DefaultMetadataKey contains metadata key x-request-id var DefaultMetadataKey = textproto.CanonicalMIMEHeaderKey("x-request-id") // DefaultMetadataFunc wil be used if user not provide own func to fill metadata diff --git a/requestid_test.go b/requestid_test.go index ce7fad7..c62c4b7 100644 --- a/requestid_test.go +++ b/requestid_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - "go.unistack.org/micro/v3/metadata" + "go.unistack.org/micro/v4/metadata" ) func TestDefaultMetadataFunc(t *testing.T) {