Documentation ¶
Index ¶
- func NewSessionWithStore(store store.ISessionStore) context.ISessionManager
- func UseSession(sc *dependencyinjection.ServiceCollection, opFunc func(options *Options))
- type Manager
- func (mgr *Manager) Clear(provider interface{})
- func (mgr *Manager) GC()
- func (mgr *Manager) GetIDList() []string
- func (mgr *Manager) GetValue(sessionID string, key string) (interface{}, bool)
- func (mgr *Manager) Load(provider interface{}) string
- func (mgr *Manager) NewSession(sessionId string) string
- func (mgr *Manager) Remove(sessionId string)
- func (mgr *Manager) SetValue(sessionID string, key string, value interface{})
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSessionWithStore ¶
func NewSessionWithStore(store store.ISessionStore) context.ISessionManager
NewSessionWithStore ctor for session manager , must be used to session.UseSession ,that add dependents to IOC.
func UseSession ¶
func UseSession(sc *dependencyinjection.ServiceCollection, opFunc func(options *Options))
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
ISessionManager session manager
func (*Manager) NewSession ¶
type Options ¶
type Options struct { MaxLifeTime int64 // contains filtered or unexported fields }
func (*Options) AddSessionIdentity ¶
func (*Options) AddSessionIdentityFactory ¶
func (op *Options) AddSessionIdentityFactory(identityFactoryCtor interface{})
func (*Options) AddSessionMemoryStore ¶
func (op *Options) AddSessionMemoryStore(storer store.ISessionStore)
func (*Options) AddSessionStoreFactory ¶
func (op *Options) AddSessionStoreFactory(storeFactoryCtor interface{})
Click to show internal directories.
Click to hide internal directories.