using new organization
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
//
|
||||
// Usage:
|
||||
// import(
|
||||
// _ "github.com/astaxie/beego/session/couchbase"
|
||||
// "github.com/astaxie/beego/session"
|
||||
// _ "github.com/beego/beego/session/couchbase"
|
||||
// "github.com/beego/beego/session"
|
||||
// )
|
||||
//
|
||||
// func init() {
|
||||
@@ -36,8 +36,8 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/adapter/session"
|
||||
beecb "github.com/astaxie/beego/server/web/session/couchbase"
|
||||
"github.com/beego/beego/adapter/session"
|
||||
beecb "github.com/beego/beego/server/web/session/couchbase"
|
||||
)
|
||||
|
||||
// SessionStore store each session
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/adapter/session"
|
||||
beeLedis "github.com/astaxie/beego/server/web/session/ledis"
|
||||
"github.com/beego/beego/adapter/session"
|
||||
beeLedis "github.com/beego/beego/server/web/session/ledis"
|
||||
)
|
||||
|
||||
// SessionStore ledis session store
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
//
|
||||
// Usage:
|
||||
// import(
|
||||
// _ "github.com/astaxie/beego/session/memcache"
|
||||
// "github.com/astaxie/beego/session"
|
||||
// _ "github.com/beego/beego/session/memcache"
|
||||
// "github.com/beego/beego/session"
|
||||
// )
|
||||
//
|
||||
// func init() {
|
||||
@@ -36,9 +36,9 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/adapter/session"
|
||||
"github.com/beego/beego/adapter/session"
|
||||
|
||||
beemem "github.com/astaxie/beego/server/web/session/memcache"
|
||||
beemem "github.com/beego/beego/server/web/session/memcache"
|
||||
)
|
||||
|
||||
// SessionStore memcache session store
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
//
|
||||
// Usage:
|
||||
// import(
|
||||
// _ "github.com/astaxie/beego/session/mysql"
|
||||
// "github.com/astaxie/beego/session"
|
||||
// _ "github.com/beego/beego/session/mysql"
|
||||
// "github.com/beego/beego/session"
|
||||
// )
|
||||
//
|
||||
// func init() {
|
||||
@@ -44,8 +44,8 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/adapter/session"
|
||||
"github.com/astaxie/beego/server/web/session/mysql"
|
||||
"github.com/beego/beego/adapter/session"
|
||||
"github.com/beego/beego/server/web/session/mysql"
|
||||
|
||||
// import mysql driver
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
//
|
||||
// Usage:
|
||||
// import(
|
||||
// _ "github.com/astaxie/beego/session/postgresql"
|
||||
// "github.com/astaxie/beego/session"
|
||||
// _ "github.com/beego/beego/session/postgresql"
|
||||
// "github.com/beego/beego/session"
|
||||
// )
|
||||
//
|
||||
// func init() {
|
||||
@@ -54,11 +54,11 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/adapter/session"
|
||||
"github.com/beego/beego/adapter/session"
|
||||
// import postgresql Driver
|
||||
_ "github.com/lib/pq"
|
||||
|
||||
"github.com/astaxie/beego/server/web/session/postgres"
|
||||
"github.com/beego/beego/server/web/session/postgres"
|
||||
)
|
||||
|
||||
// SessionStore postgresql session store
|
||||
|
||||
@@ -17,7 +17,7 @@ package session
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/astaxie/beego/server/web/session"
|
||||
"github.com/beego/beego/server/web/session"
|
||||
)
|
||||
|
||||
type oldToNewProviderAdapter struct {
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
//
|
||||
// Usage:
|
||||
// import(
|
||||
// _ "github.com/astaxie/beego/session/redis"
|
||||
// "github.com/astaxie/beego/session"
|
||||
// _ "github.com/beego/beego/session/redis"
|
||||
// "github.com/beego/beego/session"
|
||||
// )
|
||||
//
|
||||
// func init() {
|
||||
@@ -36,9 +36,9 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/adapter/session"
|
||||
"github.com/beego/beego/adapter/session"
|
||||
|
||||
beeRedis "github.com/astaxie/beego/server/web/session/redis"
|
||||
beeRedis "github.com/beego/beego/server/web/session/redis"
|
||||
)
|
||||
|
||||
// MaxPoolSize redis max pool size
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
//
|
||||
// Usage:
|
||||
// import(
|
||||
// _ "github.com/astaxie/beego/session/redis_cluster"
|
||||
// "github.com/astaxie/beego/session"
|
||||
// _ "github.com/beego/beego/session/redis_cluster"
|
||||
// "github.com/beego/beego/session"
|
||||
// )
|
||||
//
|
||||
// func init() {
|
||||
@@ -36,8 +36,8 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/adapter/session"
|
||||
cluster "github.com/astaxie/beego/server/web/session/redis_cluster"
|
||||
"github.com/beego/beego/adapter/session"
|
||||
cluster "github.com/beego/beego/server/web/session/redis_cluster"
|
||||
)
|
||||
|
||||
// MaxPoolSize redis_cluster max pool size
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
//
|
||||
// Usage:
|
||||
// import(
|
||||
// _ "github.com/astaxie/beego/session/redis_sentinel"
|
||||
// "github.com/astaxie/beego/session"
|
||||
// _ "github.com/beego/beego/session/redis_sentinel"
|
||||
// "github.com/beego/beego/session"
|
||||
// )
|
||||
//
|
||||
// func init() {
|
||||
@@ -36,9 +36,9 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/adapter/session"
|
||||
"github.com/beego/beego/adapter/session"
|
||||
|
||||
sentinel "github.com/astaxie/beego/server/web/session/redis_sentinel"
|
||||
sentinel "github.com/beego/beego/server/web/session/redis_sentinel"
|
||||
)
|
||||
|
||||
// DefaultPoolSize redis_sentinel default pool size
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
|
||||
"github.com/astaxie/beego/adapter/session"
|
||||
"github.com/beego/beego/adapter/session"
|
||||
)
|
||||
|
||||
func TestRedisSentinel(t *testing.T) {
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/server/web/session"
|
||||
"github.com/beego/beego/server/web/session"
|
||||
)
|
||||
|
||||
// CookieSessionStore Cookie SessionStore
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/server/web/session"
|
||||
"github.com/beego/beego/server/web/session"
|
||||
)
|
||||
|
||||
// FileSessionStore File session store
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/server/web/session"
|
||||
"github.com/beego/beego/server/web/session"
|
||||
)
|
||||
|
||||
// MemSessionStore memory session store.
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
package session
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/server/web/session"
|
||||
"github.com/beego/beego/server/web/session"
|
||||
)
|
||||
|
||||
// EncodeGob encode the obj to gob
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
//
|
||||
// Usage:
|
||||
// import(
|
||||
// "github.com/astaxie/beego/session"
|
||||
// "github.com/beego/beego/session"
|
||||
// )
|
||||
//
|
||||
// func init() {
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
"github.com/astaxie/beego/server/web/session"
|
||||
"github.com/beego/beego/server/web/session"
|
||||
)
|
||||
|
||||
// Store contains all data for one session process with specific id.
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/adapter/session"
|
||||
"github.com/beego/beego/adapter/session"
|
||||
|
||||
beeSsdb "github.com/astaxie/beego/server/web/session/ssdb"
|
||||
beeSsdb "github.com/beego/beego/server/web/session/ssdb"
|
||||
)
|
||||
|
||||
// Provider holds ssdb client and configs
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/server/web/session"
|
||||
"github.com/beego/beego/server/web/session"
|
||||
)
|
||||
|
||||
type NewToOldStoreAdapter struct {
|
||||
|
||||
Reference in New Issue
Block a user