Versions in this module Expand all Collapse all v0 v0.0.1 Jul 24, 2024 Changes in this version + var ConfigDefault = Config + var ErrEmptySessionID = errors.New("session id cannot be empty") + type Config struct + CookieDomain string + CookieHTTPOnly bool + CookiePath string + CookieSameSite string + CookieSecure bool + CookieSessionOnly bool + Expiration time.Duration + KeyGenerator func() string + KeyLookup string + Storage fiber.Storage + type Session struct + func (s *Session) Delete(key string) + func (s *Session) Destroy() error + func (s *Session) Fresh() bool + func (s *Session) Get(key string) any + func (s *Session) ID() string + func (s *Session) Keys() []string + func (s *Session) Regenerate() error + func (s *Session) Reset() error + func (s *Session) Save() error + func (s *Session) Set(key string, val any) + func (s *Session) SetExpiry(exp time.Duration) + type Source string + const SourceCookie + const SourceHeader + const SourceURLQuery + type Store struct + func New(config ...Config) *Store + func (*Store) RegisterType(i any) + func (s *Store) Delete(id string) error + func (s *Store) Get(c fiber.Ctx) (*Session, error) + func (s *Store) Reset() error