1
1
# Redis store for [ Session] ( https://github.com/go-session/session )
2
2
3
- [ ![ Build] [ Build-Status-Image ]] [ Build-Status-Url ] [ ![ Coverage ] [ Coverage-Image ]] [ Coverage-Url ] [ ![ ReportCard] [ reportcard-image ]] [ reportcard-url ] [ ![ GoDoc] [ godoc-image ]] [ godoc-url ] [ ![ License] [ license-image ]] [ license-url ]
3
+ [ ![ Build] [ Build-Status-Image ]] [ Build-Status-Url ] [ ![ Codecov ] [ codecov-image ]] [ codecov-url ] [ ![ ReportCard] [ reportcard-image ]] [ reportcard-url ] [ ![ GoDoc] [ godoc-image ]] [ godoc-url ] [ ![ License] [ license-image ]] [ license-url ]
4
4
5
5
## Quick Start
6
6
7
7
### Download and install
8
8
9
9
``` bash
10
- $ go get -u -v gopkg.in /go-session/redis.v1
10
+ $ go get -u -v github.com /go-session/redis
11
11
```
12
12
13
13
### Create file ` server.go `
@@ -20,14 +20,12 @@ import (
20
20
" fmt"
21
21
" net/http"
22
22
23
- " gopkg.in /go-session/redis.v1 "
24
- " gopkg.in/ session.v2 "
23
+ " github.com /go-session/redis"
24
+ " github.com/go- session/session "
25
25
)
26
26
27
27
func main () {
28
28
session.InitManager (
29
- session.SetCookieName (" session_id" ),
30
- session.SetSign ([]byte (" sign" )),
31
29
session.SetStore (redis.NewRedisStore (&redis.Options {
32
30
Addr: " 127.0.0.1:6379" ,
33
31
DB: 15 ,
@@ -89,11 +87,11 @@ $ ./server
89
87
90
88
[ Build-Status-Url ] : https://travis-ci.org/go-session/redis
91
89
[ Build-Status-Image ] : https://travis-ci.org/go-session/redis.svg?branch=master
92
- [ Coverage-Url ] : https://coveralls .io/github /go-session/redis?branch=master
93
- [ Coverage-Image ] : https://coveralls .io/repos/github/ go-session/redis/badge.svg?branch=master
94
- [ reportcard-url ] : https://goreportcard.com/report/gopkg.in /go-session/redis.v1
95
- [ reportcard-image ] : https://goreportcard.com/badge/gopkg.in /go-session/redis.v1
96
- [ godoc-url ] : https://godoc.org/gopkg.in /go-session/redis.v1
97
- [ godoc-image ] : https://godoc.org/gopkg.in /go-session/redis.v1 ?status.svg
90
+ [ codecov-url ] : https://codecov .io/gh /go-session/redis
91
+ [ codecov-image ] : https://codecov .io/gh/ go-session/redis/branch/master/graph/ badge.svg
92
+ [ reportcard-url ] : https://goreportcard.com/report/github.com /go-session/redis
93
+ [ reportcard-image ] : https://goreportcard.com/badge/github.com /go-session/redis
94
+ [ godoc-url ] : https://godoc.org/github.com /go-session/redis
95
+ [ godoc-image ] : https://godoc.org/github.com /go-session/redis?status.svg
98
96
[ license-url ] : http://opensource.org/licenses/MIT
99
97
[ license-image ] : https://img.shields.io/npm/l/express.svg
0 commit comments