Skip to content

Commit

Permalink
replaces pborman uuid lib with google
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-hanna committed Apr 15, 2020
1 parent a66f3b6 commit 6ed19ef
Show file tree
Hide file tree
Showing 36 changed files with 14 additions and 3,770 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.DS_Store

coverage.out
coverage-all.out
coverage-all.out

vendor/
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: go
go:
- 1.7.x
- 1.14.x
# branches:
# only:
# - feature/travisCI
Expand All @@ -13,8 +13,8 @@ install:
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
- go get github.com/garyburd/redigo/redis
- go get github.com/pborman/uuid
- go get github.com/google/uuid
script:
- make test-cover-html
- $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=coverage-all.out
-service=travis-ci -repotoken=$COVERALLS_TOKEN
-service=travis-ci -repotoken=$COVERALLS_TOKEN
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[![Build Status](https://travis-ci.org/adam-hanna/sessions.svg)](https://travis-ci.org/adam-hanna/sessions) [![Coverage Status](https://coveralls.io/repos/github/adam-hanna/sessions/badge.svg)](https://coveralls.io/github/adam-hanna/sessions) [![Go Report Card](https://goreportcard.com/badge/github.com/adam-hanna/sessions)](https://goreportcard.com/report/github.com/adam-hanna/sessions) [![GoDoc](https://godoc.org/github.com/adam-hanna/sessions?status.svg)](https://godoc.org/github.com/adam-hanna/sessions)

If you're interested in jwt's, see my [jwt library](https://github.com/adam-hanna/jwt-auth)!

# Sessions
A dead simple, highly performant, highly customizable sessions service for go http servers.

Expand Down Expand Up @@ -403,4 +405,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
~~~
~~~
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/adam-hanna/sessions

go 1.14

require (
github.com/garyburd/redigo v0.0.0-20170216214944-0d253a66e6e1
github.com/pborman/uuid v0.0.0-20170112150404-1b00554d8222
github.com/google/uuid v1.1.1
)
4 changes: 0 additions & 4 deletions go.sum

This file was deleted.

4 changes: 2 additions & 2 deletions user/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package user
import (
"time"

"github.com/pborman/uuid"
"github.com/google/uuid"
)

// Session is a user's session struct
Expand All @@ -17,7 +17,7 @@ type Session struct {
// New returns a new user Session
func New(userID string, json string, duration time.Duration) *Session {
return &Session{
ID: uuid.New(),
ID: uuid.New().String(),
UserID: userID,
ExpiresAt: time.Now().Add(duration).UTC(),
JSON: json,
Expand Down
175 changes: 0 additions & 175 deletions vendor/github.com/garyburd/redigo/LICENSE

This file was deleted.

54 changes: 0 additions & 54 deletions vendor/github.com/garyburd/redigo/internal/commandinfo.go

This file was deleted.

Loading

0 comments on commit 6ed19ef

Please sign in to comment.