Documentation ¶
Index ¶
Constants ¶
View Source
const ( Redis storeType = "redis" Memory storeType = "memory" ValueMap valueType = iota ValueString )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Session ¶
type Session interface { Get(keys ...string) interface{} Set(value interface{}, keys ...string) Delete(keys ...string) }
Session single cookie value object
type SessionMgr ¶
type SessionMgr interface { GetSession(cookValue string) Session CreateSession(cookValue string, valueType valueType, expire int) Session }
SessionMgr object manage
func ChooseSessionStore ¶
func ChooseSessionStore(st storeType, clients ...*redis.Client) (mgr SessionMgr)
Click to show internal directories.
Click to hide internal directories.