Skip to content

Commit 0317072

Browse files
committed
update import path
1 parent bcbfa73 commit 0317072

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
language: go
22
sudo: false
3-
go_import_path: gopkg.in/go-session/redis.v1
3+
go_import_path: github.com/go-session/redis
44
go:
55
- 1.7
66
services:
77
- redis-server
88
before_install:
9-
- go get github.com/mattn/goveralls
9+
- go get -t -v ./...
10+
1011
script:
11-
- $HOME/gopath/bin/goveralls -service=travis-ci
12+
- go test -race -coverprofile=coverage.txt -covermode=atomic
13+
14+
after_success:
15+
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Redis store for [Session](https://github.com/go-session/session)
22

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]
44

55
## Quick Start
66

77
### Download and install
88

99
```bash
10-
$ go get -u -v gopkg.in/go-session/redis.v1
10+
$ go get -u -v github.com/go-session/redis
1111
```
1212

1313
### Create file `server.go`
@@ -20,14 +20,12 @@ import (
2020
"fmt"
2121
"net/http"
2222

23-
"gopkg.in/go-session/redis.v1"
24-
"gopkg.in/session.v2"
23+
"github.com/go-session/redis"
24+
"github.com/go-session/session"
2525
)
2626

2727
func main() {
2828
session.InitManager(
29-
session.SetCookieName("session_id"),
30-
session.SetSign([]byte("sign")),
3129
session.SetStore(redis.NewRedisStore(&redis.Options{
3230
Addr: "127.0.0.1:6379",
3331
DB: 15,
@@ -89,11 +87,11 @@ $ ./server
8987

9088
[Build-Status-Url]: https://travis-ci.org/go-session/redis
9189
[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
9896
[license-url]: http://opensource.org/licenses/MIT
9997
[license-image]: https://img.shields.io/npm/l/express.svg

redis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"time"
77

88
"github.com/go-redis/redis"
9+
"github.com/go-session/session"
910
"github.com/json-iterator/go"
10-
"gopkg.in/session.v2"
1111
)
1212

1313
var (

0 commit comments

Comments
 (0)