Skip to content

Commit

Permalink
Update dependencies and module path
Browse files Browse the repository at this point in the history
  • Loading branch information
ezraisw committed Jul 14, 2024
1 parent a63e27e commit 8e4cb9b
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 27 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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() {
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -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
)
19 changes: 9 additions & 10 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=
10 changes: 5 additions & 5 deletions middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions option.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion responder.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package idemgotent
import (
"net/http"

"github.com/pwnedgod/idemgotent/internal/util"
"github.com/ezraisw/idemgotent/internal/util"
)

type (
Expand Down

0 comments on commit 8e4cb9b

Please sign in to comment.