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 b72bc00
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 120 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.

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
)

0 comments on commit b72bc00

Please sign in to comment.