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 ¶
type SsdbProvider struct {
// contains filtered or unexported fields
}
func (*SsdbProvider) SessionAll ¶
func (p *SsdbProvider) SessionAll() int
func (*SsdbProvider) SessionDestroy ¶
func (p *SsdbProvider) SessionDestroy(sid string) error
func (*SsdbProvider) SessionExist ¶
func (p *SsdbProvider) SessionExist(sid string) bool
func (*SsdbProvider) SessionGC ¶
func (p *SsdbProvider) SessionGC()
func (*SsdbProvider) SessionInit ¶
func (p *SsdbProvider) SessionInit(maxLifetime int64, savePath string) error
func (*SsdbProvider) SessionRead ¶
func (p *SsdbProvider) SessionRead(sid string) (session.Store, error)
func (*SsdbProvider) SessionRegenerate ¶
func (p *SsdbProvider) SessionRegenerate(oldsid, sid string) (session.Store, error)
Click to show internal directories.
Click to hide internal directories.