Versions in this module Expand all Collapse all v1 v1.3.0 Jun 19, 2014 v1.2.0 May 16, 2014 Changes in this version + func DecodeGob(encoded []byte) (map[interface{}]interface{}, error) + func EncodeGob(obj map[interface{}]interface{}) ([]byte, error) + func Register(name string, provide Provider) + type CookieProvider struct + func (pder *CookieProvider) SessionAll() int + func (pder *CookieProvider) SessionDestroy(sid string) error + func (pder *CookieProvider) SessionExist(sid string) bool + func (pder *CookieProvider) SessionGC() + func (pder *CookieProvider) SessionInit(maxlifetime int64, config string) error + func (pder *CookieProvider) SessionRead(sid string) (SessionStore, error) + func (pder *CookieProvider) SessionRegenerate(oldsid, sid string) (SessionStore, error) + func (pder *CookieProvider) SessionUpdate(sid string) error + type CookieSessionStore struct + func (st *CookieSessionStore) Delete(key interface{}) error + func (st *CookieSessionStore) Flush() error + func (st *CookieSessionStore) Get(key interface{}) interface{} + func (st *CookieSessionStore) SessionID() string + func (st *CookieSessionStore) SessionRelease(w http.ResponseWriter) + func (st *CookieSessionStore) Set(key, value interface{}) error + type FileProvider struct + func (fp *FileProvider) SessionAll() int + func (fp *FileProvider) SessionDestroy(sid string) error + func (fp *FileProvider) SessionExist(sid string) bool + func (fp *FileProvider) SessionGC() + func (fp *FileProvider) SessionInit(maxlifetime int64, savePath string) error + func (fp *FileProvider) SessionRead(sid string) (SessionStore, error) + func (fp *FileProvider) SessionRegenerate(oldsid, sid string) (SessionStore, error) + type FileSessionStore struct + func (fs *FileSessionStore) Delete(key interface{}) error + func (fs *FileSessionStore) Flush() error + func (fs *FileSessionStore) Get(key interface{}) interface{} + func (fs *FileSessionStore) SessionID() string + func (fs *FileSessionStore) SessionRelease(w http.ResponseWriter) + func (fs *FileSessionStore) Set(key, value interface{}) error + type Manager struct + func NewManager(provideName, config string) (*Manager, error) + func (manager *Manager) GC() + func (manager *Manager) GetActiveSession() int + func (manager *Manager) GetSessionStore(sid string) (sessions SessionStore, err error) + func (manager *Manager) SessionDestroy(w http.ResponseWriter, r *http.Request) + func (manager *Manager) SessionRegenerateId(w http.ResponseWriter, r *http.Request) (session SessionStore) + func (manager *Manager) SessionStart(w http.ResponseWriter, r *http.Request) (session SessionStore) + func (manager *Manager) SetHashFunc(hasfunc, hashkey string) + func (manager *Manager) SetSecure(secure bool) + type MemProvider struct + func (pder *MemProvider) SessionAll() int + func (pder *MemProvider) SessionDestroy(sid string) error + func (pder *MemProvider) SessionExist(sid string) bool + func (pder *MemProvider) SessionGC() + func (pder *MemProvider) SessionInit(maxlifetime int64, savePath string) error + func (pder *MemProvider) SessionRead(sid string) (SessionStore, error) + func (pder *MemProvider) SessionRegenerate(oldsid, sid string) (SessionStore, error) + func (pder *MemProvider) SessionUpdate(sid string) error + type MemSessionStore struct + func (st *MemSessionStore) Delete(key interface{}) error + func (st *MemSessionStore) Flush() error + func (st *MemSessionStore) Get(key interface{}) interface{} + func (st *MemSessionStore) SessionID() string + func (st *MemSessionStore) SessionRelease(w http.ResponseWriter) + func (st *MemSessionStore) Set(key, value interface{}) error + type Provider interface + SessionAll func() int + SessionDestroy func(sid string) error + SessionExist func(sid string) bool + SessionGC func() + SessionInit func(gclifetime int64, config string) error + SessionRead func(sid string) (SessionStore, error) + SessionRegenerate func(oldsid, sid string) (SessionStore, error) + type SessionStore interface + Delete func(key interface{}) error + Flush func() error + Get func(key interface{}) interface{} + SessionID func() string + SessionRelease func(w http.ResponseWriter) + Set func(key, value interface{}) error