Documentation ¶
Index ¶
- type Provider
- func (p *Provider) SessionAll() int
- func (p *Provider) SessionDestroy(sid string) error
- func (p *Provider) SessionExist(sid string) bool
- func (p *Provider) SessionGC()
- func (p *Provider) SessionInit(maxLifetime int64, savePath string) error
- func (p *Provider) SessionRead(sid string) (session.Store, error)
- func (p *Provider) SessionRegenerate(oldsid, sid string) (session.Store, error)
- type SessionStore
- func (s *SessionStore) Delete(key interface{}) error
- func (s *SessionStore) Flush() error
- func (s *SessionStore) Get(key interface{}) interface{}
- func (s *SessionStore) SessionID() string
- func (s *SessionStore) SessionRelease(w http.ResponseWriter)
- func (s *SessionStore) Set(key, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
Provider holds ssdb client and configs
func (*Provider) SessionDestroy ¶
SessionDestroy destroy the sid
func (*Provider) SessionExist ¶
SessionExist judged whether sid is exist in session
func (*Provider) SessionInit ¶
SessionInit init the ssdb with the config
func (*Provider) SessionRead ¶
SessionRead return a ssdb client session Store
type SessionStore ¶
type SessionStore beeSsdb.SessionStore
SessionStore holds the session information which stored in ssdb
func (*SessionStore) Delete ¶
func (s *SessionStore) Delete(key interface{}) error
Delete the key in session store
func (*SessionStore) Get ¶
func (s *SessionStore) Get(key interface{}) interface{}
Get return the value by the key
func (*SessionStore) SessionID ¶
func (s *SessionStore) SessionID() string
SessionID return the sessionID
func (*SessionStore) SessionRelease ¶
func (s *SessionStore) SessionRelease(w http.ResponseWriter)
SessionRelease Store the keyvalues into ssdb
func (*SessionStore) Set ¶
func (s *SessionStore) Set(key, value interface{}) error
Set the key and value
Click to show internal directories.
Click to hide internal directories.