Documentation ¶
Index ¶
Constants ¶
View Source
const DbCacheTime = 3600 * time.Second
Variables ¶
Functions ¶
Types ¶
type SessionInterface ¶
type SessionInterface struct { IP string Port string MaxIdle int Timeout int Pwd string Auth string DbNo int Expire int64 }
func (*SessionInterface) GetRedisPool ¶
func (sip *SessionInterface) GetRedisPool() *redis.Pool
func (*SessionInterface) NewSessionManager ¶
func (sip *SessionInterface) NewSessionManager() TigoWeb.SessionManager
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
func (*SessionManager) DeleteSession ¶
func (sm *SessionManager) DeleteSession(sid string)
func (*SessionManager) GenerateSession ¶
func (sm *SessionManager) GenerateSession(expire int) TigoWeb.Session
func (*SessionManager) GetSessionBySid ¶
func (sm *SessionManager) GetSessionBySid(sid string) TigoWeb.Session
Click to show internal directories.
Click to hide internal directories.