Skip to content

Commit 28fbf41

Browse files
committed
update import path
1 parent 898db00 commit 28fbf41

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ go_import_path: github.com/go-session/echo-session
44
go:
55
- 1.9
66
before_install:
7-
- go get github.com/mattn/goveralls
7+
- go get -t -v ./...
8+
89
script:
9-
- $HOME/gopath/bin/goveralls -service=travis-ci
10+
- go test -race -coverprofile=coverage.txt -covermode=atomic
11+
12+
after_success:
13+
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Session middleware for [Echo](https://github.com/labstack/echo)
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

@@ -21,16 +21,13 @@ import (
2121

2222
"github.com/go-session/echo-session"
2323
"github.com/labstack/echo"
24-
"gopkg.in/session.v2"
24+
"github.com/go-session/session"
2525
)
2626

2727
func main() {
2828
e := echo.New()
2929

30-
e.Use(echosession.New(
31-
session.SetCookieName("session_id"),
32-
session.SetSign([]byte("sign")),
33-
))
30+
e.Use(echosession.New())
3431

3532
e.GET("/", func(ctx echo.Context) error {
3633
store := echosession.FromContext(ctx)
@@ -75,8 +72,8 @@ $ ./server
7572

7673
[Build-Status-Url]: https://travis-ci.org/go-session/echo-session
7774
[Build-Status-Image]: https://travis-ci.org/go-session/echo-session.svg?branch=master
78-
[Coverage-Url]: https://coveralls.io/github/go-session/echo-session?branch=master
79-
[Coverage-Image]: https://coveralls.io/repos/github/go-session/echo-session/badge.svg?branch=master
75+
[codecov-url]: https://codecov.io/gh/go-session/echo-session
76+
[codecov-image]: https://codecov.io/gh/go-session/echo-session/branch/master/graph/badge.svg
8077
[reportcard-url]: https://goreportcard.com/report/github.com/go-session/echo-session
8178
[reportcard-image]: https://goreportcard.com/badge/github.com/go-session/echo-session
8279
[godoc-url]: https://godoc.org/github.com/go-session/echo-session

session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"context"
55
"sync"
66

7+
"github.com/go-session/session"
78
"github.com/labstack/echo"
8-
"gopkg.in/session.v2"
99
)
1010

1111
type (

session_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"net/http/httptest"
88
"testing"
99

10+
"github.com/go-session/session"
1011
"github.com/labstack/echo"
11-
"gopkg.in/session.v2"
1212
)
1313

1414
func TestSession(t *testing.T) {

0 commit comments

Comments
 (0)