Skip to content

Commit

Permalink
update import path
Browse files Browse the repository at this point in the history
  • Loading branch information
LyricTian committed Jun 13, 2018
1 parent bcbfa73 commit 0317072
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
language: go
sudo: false
go_import_path: gopkg.in/go-session/redis.v1
go_import_path: github.com/go-session/redis
go:
- 1.7
services:
- redis-server
before_install:
- go get github.com/mattn/goveralls
- go get -t -v ./...

script:
- $HOME/gopath/bin/goveralls -service=travis-ci
- go test -race -coverprofile=coverage.txt -covermode=atomic

after_success:
- bash <(curl -s https://codecov.io/bash)
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Redis store for [Session](https://github.com/go-session/session)

[![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]
[![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]

## Quick Start

### Download and install

```bash
$ go get -u -v gopkg.in/go-session/redis.v1
$ go get -u -v github.com/go-session/redis
```

### Create file `server.go`
Expand All @@ -20,14 +20,12 @@ import (
"fmt"
"net/http"

"gopkg.in/go-session/redis.v1"
"gopkg.in/session.v2"
"github.com/go-session/redis"
"github.com/go-session/session"
)

func main() {
session.InitManager(
session.SetCookieName("session_id"),
session.SetSign([]byte("sign")),
session.SetStore(redis.NewRedisStore(&redis.Options{
Addr: "127.0.0.1:6379",
DB: 15,
Expand Down Expand Up @@ -89,11 +87,11 @@ $ ./server

[Build-Status-Url]: https://travis-ci.org/go-session/redis
[Build-Status-Image]: https://travis-ci.org/go-session/redis.svg?branch=master
[Coverage-Url]: https://coveralls.io/github/go-session/redis?branch=master
[Coverage-Image]: https://coveralls.io/repos/github/go-session/redis/badge.svg?branch=master
[reportcard-url]: https://goreportcard.com/report/gopkg.in/go-session/redis.v1
[reportcard-image]: https://goreportcard.com/badge/gopkg.in/go-session/redis.v1
[godoc-url]: https://godoc.org/gopkg.in/go-session/redis.v1
[godoc-image]: https://godoc.org/gopkg.in/go-session/redis.v1?status.svg
[codecov-url]: https://codecov.io/gh/go-session/redis
[codecov-image]: https://codecov.io/gh/go-session/redis/branch/master/graph/badge.svg
[reportcard-url]: https://goreportcard.com/report/github.com/go-session/redis
[reportcard-image]: https://goreportcard.com/badge/github.com/go-session/redis
[godoc-url]: https://godoc.org/github.com/go-session/redis
[godoc-image]: https://godoc.org/github.com/go-session/redis?status.svg
[license-url]: http://opensource.org/licenses/MIT
[license-image]: https://img.shields.io/npm/l/express.svg
2 changes: 1 addition & 1 deletion redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"time"

"github.com/go-redis/redis"
"github.com/go-session/session"
"github.com/json-iterator/go"
"gopkg.in/session.v2"
)

var (
Expand Down

0 comments on commit 0317072

Please sign in to comment.