Versions in this module Expand all Collapse all v0 v0.0.1 Mar 9, 2021 Changes in this version + var Stores = make(map[string]StoreInterface) + func Register(name string, store StoreInterface) + type IdFunc = func() string + type Manager struct + CookieName string + func NewDefaultIDManager(storeName string, cookieName string, maxlifetime int) (*Manager, error) + func NewManager(storeName string, cookieName string, maxlifetime int, f IdFunc) (*Manager, error) + func (manager *Manager) GetSession(w http.ResponseWriter, r *http.Request) (s *Session) + func (manager *Manager) NewSesssion(sid string) *Session + type Session struct + ID string + func (s *Session) Delete(key string) error + func (s *Session) DestroySession(w http.ResponseWriter, r *http.Request) + func (s *Session) Get(key string) (interface{}, error) + func (s *Session) Set(key string, value interface{}) error + type StoreInterface interface + Get func(Sid string, key string) (interface{}, error) + Remove func(Sid string, key string) error + Set func(Sid string, key string, value interface{}, ttl int) error