Documentation ¶
Index ¶
Constants ¶
View Source
const ( ADDSESSION sessionCommandType = iota DELSESSION TOUCHSESSION UPDATESESSION GETSESSION )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
func NewSessionManager ¶
func NewSessionManager() *SessionManager
func (*SessionManager) AddSession ¶
func (ptr *SessionManager) AddSession(data map[string]interface{}) uint64
func (*SessionManager) DelSession ¶
func (ptr *SessionManager) DelSession(id uint64) bool
func (*SessionManager) GetSession ¶
func (ptr *SessionManager) GetSession(id uint64) *Session
func (*SessionManager) TouchSession ¶
func (ptr *SessionManager) TouchSession(id uint64) bool
Click to show internal directories.
Click to hide internal directories.