Documentation ¶
Index ¶
- 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
- type SsdbProvider
- func (p *SsdbProvider) SessionAll() int
- func (p *SsdbProvider) SessionDestroy(sid string) error
- func (p *SsdbProvider) SessionExist(sid string) bool
- func (p *SsdbProvider) SessionGC()
- func (p *SsdbProvider) SessionInit(maxLifetime int64, savePath string) error
- func (p *SsdbProvider) SessionRead(sid string) (session.Store, error)
- func (p *SsdbProvider) SessionRegenerate(oldsid, sid string) (session.Store, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionStore ¶
type SessionStore struct {
// contains filtered or unexported fields
}
func (*SessionStore) Delete ¶
func (s *SessionStore) Delete(key interface{}) error
func (*SessionStore) Flush ¶
func (s *SessionStore) Flush() error
func (*SessionStore) Get ¶
func (s *SessionStore) Get(key interface{}) interface{}
func (*SessionStore) SessionID ¶
func (s *SessionStore) SessionID() string
func (*SessionStore) SessionRelease ¶
func (s *SessionStore) SessionRelease(w http.ResponseWriter)
func (*SessionStore) Set ¶
func (s *SessionStore) Set(key, value interface{}) error
type SsdbProvider ¶ added in v1.7.0
type SsdbProvider struct {
// contains filtered or unexported fields
}
func (*SsdbProvider) SessionAll ¶ added in v1.7.0
func (p *SsdbProvider) SessionAll() int
func (*SsdbProvider) SessionDestroy ¶ added in v1.7.0
func (p *SsdbProvider) SessionDestroy(sid string) error
func (*SsdbProvider) SessionExist ¶ added in v1.7.0
func (p *SsdbProvider) SessionExist(sid string) bool
func (*SsdbProvider) SessionGC ¶ added in v1.7.0
func (p *SsdbProvider) SessionGC()
func (*SsdbProvider) SessionInit ¶ added in v1.7.0
func (p *SsdbProvider) SessionInit(maxLifetime int64, savePath string) error
func (*SsdbProvider) SessionRead ¶ added in v1.7.0
func (p *SsdbProvider) SessionRead(sid string) (session.Store, error)
func (*SsdbProvider) SessionRegenerate ¶ added in v1.7.0
func (p *SsdbProvider) SessionRegenerate(oldsid, sid string) (session.Store, error)
Click to show internal directories.
Click to hide internal directories.