From 3d1b26f0c1a18e736ed56975ff4a99c433c80092 Mon Sep 17 00:00:00 2001 From: swh Date: Thu, 18 Feb 2016 17:08:51 +0800 Subject: [PATCH] fix -- for echo framework --- README.md | 18 +++++++++--------- reaper/options.go | 2 +- reaper/options_test.go | 2 +- reaper/reaper.go | 2 +- reaper/reaper_test.go | 2 +- shared/utils.go | 2 +- shared/utils_test.go | 2 +- store/config.go | 4 ++-- store/config_test.go | 2 +- store/store.go | 4 ++-- store/store_test.go | 4 ++-- 11 files changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 66fba4d..b10e51b 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,22 @@ # BoltStore - Session store using Bolt [![wercker status](https://app.wercker.com/status/752959ce0f923476671e49fb9b76ebe0/m "wercker status")](https://app.wercker.com/project/bykey/752959ce0f923476671e49fb9b76ebe0) -[![Coverage Status](https://coveralls.io/repos/yosssi/boltstore/badge.png?branch=HEAD)](https://coveralls.io/r/yosssi/boltstore) -[![GoDoc](http://godoc.org/github.com/yosssi/boltstore?status.png)](http://godoc.org/github.com/yosssi/boltstore) +[![Coverage Status](https://coveralls.io/repos/admpub/boltstore/badge.png?branch=HEAD)](https://coveralls.io/r/admpub/boltstore) +[![GoDoc](http://godoc.org/github.com/admpub/boltstore?status.png)](http://godoc.org/github.com/admpub/boltstore) ## Overview -BoltStore is a session store using [Bolt](https://github.com/boltdb/bolt) which is a pure Go key/value store. You can store session data in Bolt by using this store. This store implements the [gorilla/sessions](https://github.com/gorilla/sessions) package's [Store](http://godoc.org/github.com/gorilla/sessions#Store) interface. BoltStore's APIs and examples can be seen on its [GoDoc](http://godoc.org/github.com/yosssi/boltstore) page. +BoltStore is a session store using [Bolt](https://github.com/boltdb/bolt) which is a pure Go key/value store. You can store session data in Bolt by using this store. This store implements the [gorilla/sessions](https://github.com/admpub/sessions) package's [Store](http://godoc.org/github.com/admpub/sessions#Store) interface. BoltStore's APIs and examples can be seen on its [GoDoc](http://godoc.org/github.com/admpub/boltstore) page. ## Installation ```go -go get github.com/yosssi/boltstore/... +go get github.com/admpub/boltstore/... ``` ## Example -Here is a simple example using BoltStore. You can see other examples on the BoltStore's [GoDoc](http://godoc.org/github.com/yosssi/boltstore) page. +Here is a simple example using BoltStore. You can see other examples on the BoltStore's [GoDoc](http://godoc.org/github.com/admpub/boltstore) page. ```go package main @@ -26,9 +26,9 @@ import ( "net/http" "github.com/boltdb/bolt" - "github.com/gorilla/sessions" - "github.com/yosssi/boltstore/reaper" - "github.com/yosssi/boltstore/store" + "github.com/admpub/sessions" + "github.com/admpub/boltstore/reaper" + "github.com/admpub/boltstore/store" ) var db *bolt.DB @@ -83,4 +83,4 @@ BenchmarkStore_Save_delete 5000 476563 ns/op 59576 B/op 76 allo ``` ## Documentation -* [GoDoc](http://godoc.org/github.com/yosssi/boltstore) +* [GoDoc](http://godoc.org/github.com/admpub/boltstore) diff --git a/reaper/options.go b/reaper/options.go index 545943d..3b0b677 100644 --- a/reaper/options.go +++ b/reaper/options.go @@ -3,7 +3,7 @@ package reaper import ( "time" - "github.com/yosssi/boltstore/shared" + "github.com/admpub/boltstore/shared" ) // Options represents options for the reaper. diff --git a/reaper/options_test.go b/reaper/options_test.go index f9b73ac..01d4ef2 100644 --- a/reaper/options_test.go +++ b/reaper/options_test.go @@ -3,7 +3,7 @@ package reaper import ( "testing" - "github.com/yosssi/boltstore/shared" + "github.com/admpub/boltstore/shared" ) func TestOptions_setDefault(t *testing.T) { diff --git a/reaper/reaper.go b/reaper/reaper.go index 266e6a9..9e507f6 100644 --- a/reaper/reaper.go +++ b/reaper/reaper.go @@ -4,8 +4,8 @@ import ( "log" "time" + "github.com/admpub/boltstore/shared" "github.com/boltdb/bolt" - "github.com/yosssi/boltstore/shared" ) //##############// diff --git a/reaper/reaper_test.go b/reaper/reaper_test.go index 2be5a67..40bc4f2 100644 --- a/reaper/reaper_test.go +++ b/reaper/reaper_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" + "github.com/admpub/boltstore/shared" "github.com/boltdb/bolt" - "github.com/yosssi/boltstore/shared" ) func TestRun(t *testing.T) { diff --git a/shared/utils.go b/shared/utils.go index 3179de8..8c3fe35 100644 --- a/shared/utils.go +++ b/shared/utils.go @@ -3,8 +3,8 @@ package shared import ( "time" + "github.com/admpub/boltstore/shared/protobuf" "github.com/gogo/protobuf/proto" - "github.com/yosssi/boltstore/shared/protobuf" ) // Session converts the byte slice to the session struct value. diff --git a/shared/utils_test.go b/shared/utils_test.go index dde6546..4fc2741 100644 --- a/shared/utils_test.go +++ b/shared/utils_test.go @@ -1,7 +1,7 @@ package shared import ( - "github.com/yosssi/boltstore/shared/protobuf" + "github.com/admpub/boltstore/shared/protobuf" "testing" "time" diff --git a/store/config.go b/store/config.go index 95a5fba..044f3c6 100644 --- a/store/config.go +++ b/store/config.go @@ -1,8 +1,8 @@ package store import ( - "github.com/gorilla/sessions" - "github.com/yosssi/boltstore/shared" + "github.com/admpub/boltstore/shared" + "github.com/admpub/sessions" ) // Config represents a config for a session store. diff --git a/store/config_test.go b/store/config_test.go index ebeb0e4..53c157f 100644 --- a/store/config_test.go +++ b/store/config_test.go @@ -3,7 +3,7 @@ package store import ( "testing" - "github.com/yosssi/boltstore/shared" + "github.com/admpub/boltstore/shared" ) func TestConfig_setDefault(t *testing.T) { diff --git a/store/store.go b/store/store.go index 6397e80..3a57e06 100644 --- a/store/store.go +++ b/store/store.go @@ -8,10 +8,10 @@ import ( "net/http" "strings" + "github.com/admpub/boltstore/shared" + "github.com/admpub/sessions" "github.com/boltdb/bolt" "github.com/gorilla/securecookie" - "github.com/gorilla/sessions" - "github.com/yosssi/boltstore/shared" ) // Store represents a session store. diff --git a/store/store_test.go b/store/store_test.go index 86544c0..2978af9 100644 --- a/store/store_test.go +++ b/store/store_test.go @@ -11,10 +11,10 @@ import ( "github.com/gogo/protobuf/proto" + "github.com/admpub/boltstore/shared" + "github.com/admpub/sessions" "github.com/boltdb/bolt" "github.com/gorilla/securecookie" - "github.com/gorilla/sessions" - "github.com/yosssi/boltstore/shared" ) var benchmarkDB = fmt.Sprintf("benchmark_store_%d.db", time.Now().Unix())