Skip to content

Commit

Permalink
fix: refactor examples module structure
Browse files Browse the repository at this point in the history
  • Loading branch information
vividvilla committed May 31, 2024
1 parent 1b74c80 commit 677e1cf
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 122 deletions.
2 changes: 1 addition & 1 deletion examples/fastglue-redis/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func main() {

// 5s read/write timeout
server := initServer("go-redis", 5)
if err := g.ListenAndServe(":3000", "", server); err != nil {
if err := g.ListenAndServe(":1111", "", server); err != nil {
log.Fatal(err)
}
}
20 changes: 0 additions & 20 deletions examples/fasthttp-inmemory/go.mod

This file was deleted.

23 changes: 0 additions & 23 deletions examples/fasthttp-redis/go.mod

This file was deleted.

23 changes: 0 additions & 23 deletions examples/fasthttp-redis/go.mod.bak

This file was deleted.

17 changes: 11 additions & 6 deletions examples/fastglue-redis/go.mod → examples/go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
module github.com/vividvilla/simplesessions/examples/fastglue-redis
module github.com/vividvilla/simplesessions/examples

go 1.18

require (
github.com/redis/go-redis/v9 v9.5.1
github.com/valyala/fasthttp v1.54.0
github.com/vividvilla/simplesessions/stores/memory/v3 v3.0.0
github.com/vividvilla/simplesessions/stores/redis/v3 v3.0.0
github.com/vividvilla/simplesessions/stores/securecookie/v3 v3.0.0
github.com/vividvilla/simplesessions/v3 v3.0.0
github.com/zerodha/fastglue v1.8.0
)
Expand All @@ -15,16 +17,19 @@ require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/fasthttp/router v1.5.0 // indirect
github.com/klauspost/compress v1.17.8 // indirect
github.com/fasthttp/router v1.4.5 // indirect
github.com/gorilla/securecookie v1.1.2 // indirect
github.com/klauspost/compress v1.17.7 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/savsgio/gotils v0.0.0-20240303185622-093b76447511 // indirect
github.com/savsgio/gotils v0.0.0-20211223103454-d0aaa54c5899 // indirect
github.com/stretchr/testify v1.9.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace (
github.com/vividvilla/simplesessions/stores/redis/v3 => ../../stores/redis
github.com/vividvilla/simplesessions/v3 => ../..
github.com/vividvilla/simplesessions/stores/memory/v3 => ../stores/memory
github.com/vividvilla/simplesessions/stores/redis/v3 => ../stores/redis
github.com/vividvilla/simplesessions/stores/securecookie/v3 => ../stores/securecookie
github.com/vividvilla/simplesessions/v3 => ../
)
13 changes: 0 additions & 13 deletions examples/nethttp-inmemory/go.mod

This file was deleted.

19 changes: 0 additions & 19 deletions examples/nethttp-redis/go.mod

This file was deleted.

15 changes: 0 additions & 15 deletions examples/nethttp-secure-cookie/go.mod

This file was deleted.

8 changes: 7 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@ module github.com/vividvilla/simplesessions/v3

require github.com/stretchr/testify v1.9.0

go 1.14
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

go 1.18
1 change: 1 addition & 0 deletions go.work
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ use (
./stores/postgres
./stores/redis
./stores/securecookie
./examples
)
8 changes: 7 additions & 1 deletion stores/securecookie/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
module github.com/vividvilla/simplesessions/stores/securecookie/v3

go 1.14
go 1.18

require (
github.com/gorilla/securecookie v1.1.2
github.com/stretchr/testify v1.9.0
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

0 comments on commit 677e1cf

Please sign in to comment.