Documentation ¶
Index ¶
- func NewSessionInfo(sessionId string) *session
- type ISessionStore
- type Memory
- func (mem *Memory) Clear()
- func (mem *Memory) GC()
- func (mem *Memory) GetAllSessionId() []string
- func (mem *Memory) GetValue(sessionID string, key string) (interface{}, bool)
- func (mem *Memory) NewID(sessionId string) string
- func (mem *Memory) Remove(sessionId string)
- func (mem *Memory) SetMaxLifeTime(lifetime int64)
- func (mem *Memory) SetValue(sessionID string, key string, value interface{})
- func (mem *Memory) UpdateLastTimeAccessed(sessionId string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSessionInfo ¶
func NewSessionInfo(sessionId string) *session
Types ¶
type ISessionStore ¶
type ISessionStore interface { NewID(id string) string GC() SetValue(sessionID string, key string, value interface{}) GetValue(sessionID string, key string) (interface{}, bool) GetAllSessionId() []string Clear() Remove(sessionId string) UpdateLastTimeAccessed(sessionId string) SetMaxLifeTime(lifetime int64) }
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory In-memory session store
func (*Memory) GetAllSessionId ¶
GetAllSessionId get all session id list
func (*Memory) SetMaxLifeTime ¶
func (*Memory) UpdateLastTimeAccessed ¶
Click to show internal directories.
Click to hide internal directories.