Versions in this module Expand all Collapse all v1 v1.0.3 May 2, 2022 Changes in this version + func Init(cfg *Config) error + func RegisterStore(store Store) + type Config struct + CookieName string + Enabled bool + HeaderName string + Store string + TTL time.Duration + UseCookie bool + type Session struct + AccountID *string + CSRFToken string + Created time.Time + Data map[string]interface{} + DeviceID *string + ID Token + IP string + ImpersonateAccountID *int + LastActivity time.Time + Locked bool + Name *string + Permissions *platform.Permissions + Persistent bool + UA string + func New(r *http.Request) *Session + func Restore(token Token) *Session + func (s *Session) Destroy() + func (s *Session) GetData(key string) interface{} + func (s *Session) Set() + func (s *Session) SetData(key string, val interface{}) + type Store interface + Close func() + Del func(Token) error + GC func() + Get func(Token) *Session + List func(*string) []*Session + New func() error + Set func(*Session) error + Type func() string + type Token string + func (t Token) Valid() bool v1.0.2 May 2, 2022 v1.0.1 Apr 24, 2022 v1.0.0 Apr 24, 2022