Skip to content

Commit

Permalink
fix: rename modules to zerodha/simplesessions
Browse files Browse the repository at this point in the history
  • Loading branch information
vividvilla committed Jun 1, 2024
1 parent a3b0aa7 commit 65e1767
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
name: Go ${{ matrix.go }} Tests
steps:
- uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}

- name: Run all tests
run: go test -v github.com/vividvilla/simplesessions...
run: go test -v github.com/zerodha/simplesessions...

- name: Run Coverage
run: go test -v -cover ./...
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ Most session libraries are highly opinionated and hard-wired to work with `net/h
Install `simplesessions` and all [available stores](/stores).

```shell
go get -u github.com/vividvilla/simplesessions/v3
go get -u github.com/zerodha/simplesessions/v3

# Install the requrired store: memory|redis|postgres|securecookie
go get -u github.com/vividvilla/simplesessions/v3/stores/redis
go get -u github.com/vividvilla/simplesessions/v3/stores/postgres
go get -u github.com/zerodha/simplesessions/v3/stores/redis
go get -u github.com/zerodha/simplesessions/v3/stores/postgres
```

# Stores
Expand Down
4 changes: 2 additions & 2 deletions examples/fastglue-redis/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/redis/go-redis/v9"
"github.com/valyala/fasthttp"
redisstore "github.com/vividvilla/simplesessions/stores/redis/v3"
"github.com/vividvilla/simplesessions/v3"
"github.com/zerodha/fastglue"
redisstore "github.com/zerodha/simplesessions/stores/redis/v3"
"github.com/zerodha/simplesessions/v3"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions examples/fasthttp-inmemory/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net/http"

"github.com/valyala/fasthttp"
"github.com/vividvilla/simplesessions/stores/memory/v3"
"github.com/vividvilla/simplesessions/v3"
"github.com/zerodha/simplesessions/stores/memory/v3"
"github.com/zerodha/simplesessions/v3"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions examples/fasthttp-redis/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"github.com/redis/go-redis/v9"
"github.com/valyala/fasthttp"
redisstore "github.com/vividvilla/simplesessions/stores/redis/v3"
"github.com/vividvilla/simplesessions/v3"
redisstore "github.com/zerodha/simplesessions/stores/redis/v3"
"github.com/zerodha/simplesessions/v3"
)

var (
Expand Down
18 changes: 9 additions & 9 deletions examples/go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module github.com/vividvilla/simplesessions/examples
module github.com/zerodha/simplesessions/examples

go 1.18

require (
github.com/redis/go-redis/v9 v9.5.1
github.com/valyala/fasthttp v1.44.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/simplesessions/stores/memory/v3 v3.0.0
github.com/zerodha/simplesessions/stores/redis/v3 v3.0.0
github.com/zerodha/simplesessions/stores/securecookie/v3 v3.0.0
github.com/zerodha/simplesessions/v3 v3.0.0
github.com/zerodha/fastglue v1.8.0
)

Expand All @@ -28,8 +28,8 @@ require (
)

replace (
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 => ../
github.com/zerodha/simplesessions/stores/memory/v3 => ../stores/memory
github.com/zerodha/simplesessions/stores/redis/v3 => ../stores/redis
github.com/zerodha/simplesessions/stores/securecookie/v3 => ../stores/securecookie
github.com/zerodha/simplesessions/v3 => ../
)
4 changes: 2 additions & 2 deletions examples/nethttp-inmemory/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"net/http"

"github.com/vividvilla/simplesessions/stores/memory/v3"
"github.com/vividvilla/simplesessions/v3"
"github.com/zerodha/simplesessions/stores/memory/v3"
"github.com/zerodha/simplesessions/v3"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions examples/nethttp-redis/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"time"

"github.com/redis/go-redis/v9"
redisstore "github.com/vividvilla/simplesessions/stores/redis/v3"
"github.com/vividvilla/simplesessions/v3"
redisstore "github.com/zerodha/simplesessions/stores/redis/v3"
"github.com/zerodha/simplesessions/v3"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions examples/nethttp-secure-cookie/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"net/http"

"github.com/vividvilla/simplesessions/stores/securecookie/v3"
"github.com/vividvilla/simplesessions/v3"
"github.com/zerodha/simplesessions/stores/securecookie/v3"
"github.com/zerodha/simplesessions/v3"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/vividvilla/simplesessions/v3
module github.com/zerodha/simplesessions/v3

require github.com/stretchr/testify v1.9.0

Expand Down
2 changes: 1 addition & 1 deletion stores/memory/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/vividvilla/simplesessions/stores/memory/v3
module github.com/zerodha/simplesessions/stores/memory/v3

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion stores/postgres/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/vividvilla/simplesessions/stores/postgres/v3
module github.com/zerodha/simplesessions/stores/postgres/v3

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion stores/redis/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/vividvilla/simplesessions/stores/redis/v3
module github.com/zerodha/simplesessions/stores/redis/v3

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion stores/securecookie/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/vividvilla/simplesessions/stores/securecookie/v3
module github.com/zerodha/simplesessions/stores/securecookie/v3

go 1.18

Expand Down

0 comments on commit 65e1767

Please sign in to comment.