From 8e4cb9b4f5c1202430cff72b0a1f2ff245b04492 Mon Sep 17 00:00:00 2001 From: pwnedgod Date: Sun, 14 Jul 2024 20:18:31 +0900 Subject: [PATCH] Update dependencies and module path --- README.md | 10 +++++----- go.mod | 8 ++++---- go.sum | 19 +++++++++---------- middleware.go | 10 +++++----- option.go | 4 ++-- responder.go | 2 +- 6 files changed, 26 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 0217761..af0d039 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,14 @@ Middleware for providing idempotency for APIs. -Uses [WraCha](https://github.com/pwnedgod/wracha) as its base. Safe for multi-threaded/multi-instance use. +Uses [WraCha](https://github.com/ezraisw/wracha) as its base. Safe for multi-threaded/multi-instance use. ## Installation Simply run the following command to install: ``` -go get github.com/pwnedgod/idemgotent +go get github.com/ezraisw/idemgotent ``` ## Usage @@ -23,9 +23,9 @@ import ( "github.com/go-chi/chi" "github.com/go-redis/redis/v8" - "github.com/pwnedgod/idemgotent" - "github.com/pwnedgod/wracha/adapter/goredis" - "github.com/pwnedgod/wracha/logger/std" + "github.com/ezraisw/idemgotent" + "github.com/ezraisw/wracha/adapter/goredis" + "github.com/ezraisw/wracha/logger/std" ) func main() { diff --git a/go.mod b/go.mod index ca7674d..c209ada 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,10 @@ -module github.com/pwnedgod/idemgotent +module github.com/ezraisw/idemgotent -go 1.18 +go 1.22 -require github.com/pwnedgod/wracha v1.0.0 +require github.com/ezraisw/wracha v1.3.0 require ( - github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect + github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect ) diff --git a/go.sum b/go.sum index c30eaf7..3fa9ef5 100644 --- a/go.sum +++ b/go.sum @@ -1,17 +1,16 @@ -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/ezraisw/wracha v1.3.0 h1:KDYfy6oNMOn/XPuLOlbPAssEslgwBs9HqDqZHt6Gytk= +github.com/ezraisw/wracha v1.3.0/go.mod h1:MKU77KUmrUAFCTs4Kv9zezs3owY63hfKx+2Q/5838XI= github.com/karlseguin/ccache/v2 v2.0.8 h1:lT38cE//uyf6KcFok0rlgXtGFBWxkI6h/qg4tbFyDnA= +github.com/karlseguin/ccache/v2 v2.0.8/go.mod h1:2BDThcfQMf/c0jnZowt16eW405XIqZPavt+HoYEtcxQ= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pwnedgod/wracha v1.0.0 h1:oJwWupVjbpyxYtyc7rr4uG6GGTFbCpyq8xlvFiXyae8= -github.com/pwnedgod/wracha v1.0.0/go.mod h1:Ijcfrt0RZGDGLJb+o6sstN62nJLKE1KOOWLTE3T9f3o= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= -github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9znI5mJU= -github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IUPn0Bjt8= +github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok= github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/middleware.go b/middleware.go index 2ec15f8..8628629 100644 --- a/middleware.go +++ b/middleware.go @@ -5,11 +5,11 @@ import ( "net/http" "time" - "github.com/pwnedgod/idemgotent/internal/response" - "github.com/pwnedgod/wracha" - "github.com/pwnedgod/wracha/adapter" - "github.com/pwnedgod/wracha/codec/msgpack" - "github.com/pwnedgod/wracha/logger" + "github.com/ezraisw/idemgotent/internal/response" + "github.com/ezraisw/wracha" + "github.com/ezraisw/wracha/adapter" + "github.com/ezraisw/wracha/codec/msgpack" + "github.com/ezraisw/wracha/logger" ) type ( diff --git a/option.go b/option.go index fa86745..711d673 100644 --- a/option.go +++ b/option.go @@ -3,8 +3,8 @@ package idemgotent import ( "time" - "github.com/pwnedgod/wracha/adapter" - "github.com/pwnedgod/wracha/logger" + "github.com/ezraisw/wracha/adapter" + "github.com/ezraisw/wracha/logger" ) type MiddlewareOption func(*idempotencyMiddleware) diff --git a/responder.go b/responder.go index d717ec8..4531406 100644 --- a/responder.go +++ b/responder.go @@ -3,7 +3,7 @@ package idemgotent import ( "net/http" - "github.com/pwnedgod/idemgotent/internal/util" + "github.com/ezraisw/idemgotent/internal/util" ) type (