Versions in this module Expand all Collapse all v0 v0.1.5 Nov 26, 2025 Changes in this version + const SessionKeyPrefix + var ErrInvalidSessionData = fmt.Errorf("invalid session data") + var ErrSessionNotFound = fmt.Errorf("session not found") + type Session struct + CreateTime int64 + Data map[string]any + ID string + func Load(id string, storage adapter.Storage, prefix string) (*Session, error) + func NewSession(id string, storage adapter.Storage, prefix string) *Session + func (s *Session) Clear() error + func (s *Session) Delete(key string) error + func (s *Session) Destroy() error + func (s *Session) Get(key string) (any, bool) + func (s *Session) GetBool(key string) bool + func (s *Session) GetInt(key string) int + func (s *Session) GetInt64(key string) int64 + func (s *Session) GetString(key string) string + func (s *Session) Has(key string) bool + func (s *Session) IsEmpty() bool + func (s *Session) Keys() []string + func (s *Session) Set(key string, value any) error + func (s *Session) Size() int