Versions in this module Expand all Collapse all v0 v0.2.1 Dec 13, 2023 v0.2.0 Nov 2, 2023 Changes in this version + func CreateNewSessionID(s Store) (string, error) + func TestStoreImplementation(t *testing.T, impl StoreImplementation) + type Data map[string]interface + func (p *Data) Scan(src interface{}) error + func (p *Data) Value() (driver.Value, error) + type Session struct + Data Data + Expires int64 + ID string + type Store interface + CreateSession func(expires int64) (string, error) + GetSession func(sessionID string, ingnoreOlderNs int64) (Session, error) + GetSessionData func(sessionID string) (Data, error) + GetSessions func(time int64) ([]Session, error) + RefreshSession func(sessionID string, expireAddNs int64) error + RemoveSession func(sessionID string) error + RemoveSessionData func(sessionID string) error + SetSessionData func(sessionID string, data Data) error + func NewInMemoryStore() Store + type StoreImplementation struct + Name string + StoreFunc func() Store