Versions in this module Expand all Collapse all v1 v1.0.0 Mar 7, 2026 Changes in this version + type CookieStore struct + Key []byte + func NewCookieStore(key []byte) (*CookieStore, error) + func (s *CookieStore) Destroy(id string) error + func (s *CookieStore) GC(maxLifetime time.Duration) error + func (s *CookieStore) Read(id string) (map[string]interface{}, error) + func (s *CookieStore) Write(id string, data map[string]interface{}, lifetime time.Duration) error + type DBStore struct + DB *gorm.DB + func (s *DBStore) Destroy(id string) error + func (s *DBStore) GC(maxLifetime time.Duration) error + func (s *DBStore) Read(id string) (map[string]interface{}, error) + func (s *DBStore) Write(id string, data map[string]interface{}, lifetime time.Duration) error + type FileStore struct + Path string + func (s *FileStore) Destroy(id string) error + func (s *FileStore) GC(maxLifetime time.Duration) error + func (s *FileStore) Read(id string) (map[string]interface{}, error) + func (s *FileStore) Write(id string, data map[string]interface{}, lifetime time.Duration) error + type Manager struct + CookieName string + Domain string + HTTPOnly bool + Lifetime time.Duration + Path string + SameSite http.SameSite + Secure bool + Store Store + func NewManager(store Store) *Manager + func (m *Manager) Destroy(w http.ResponseWriter, id string) error + func (m *Manager) Flash(data map[string]interface{}, key string, value interface{}) + func (m *Manager) FlashErrors(data map[string]interface{}, errors map[string][]string) + func (m *Manager) FlashOldInput(data map[string]interface{}, input map[string]string) + func (m *Manager) GetFlash(data map[string]interface{}, key string) (interface{}, bool) + func (m *Manager) Save(w http.ResponseWriter, id string, data map[string]interface{}) error + func (m *Manager) Start(r *http.Request) (string, map[string]interface{}, error) + type MemoryStore struct + func NewMemoryStore() *MemoryStore + func (s *MemoryStore) Destroy(id string) error + func (s *MemoryStore) GC(maxLifetime time.Duration) error + func (s *MemoryStore) Read(id string) (map[string]interface{}, error) + func (s *MemoryStore) Write(id string, data map[string]interface{}, lifetime time.Duration) error + type RedisStore struct + Client *redis.Client + Prefix string + func NewRedisStore(client *redis.Client, prefix string) *RedisStore + func (s *RedisStore) Destroy(id string) error + func (s *RedisStore) GC(maxLifetime time.Duration) error + func (s *RedisStore) Read(id string) (map[string]interface{}, error) + func (s *RedisStore) Write(id string, data map[string]interface{}, lifetime time.Duration) error + type SessionRecord struct + CreatedAt time.Time + Data string + ID string + IPAddress *string + LastActive time.Time + UserAgent *string + UserID *uint + func (SessionRecord) TableName() string + type Store interface + Destroy func(id string) error + GC func(maxLifetime time.Duration) error + Read func(id string) (map[string]interface{}, error) + Write func(id string, data map[string]interface{}, lifetime time.Duration) error + func NewStore(db *gorm.DB) (Store, error) Other modules containing this package github.com/RAiWorks/RapidGo/v2