Documentation
¶
Overview ¶
Package sessionstore implements the scs.Store interface on top of the cms_sessions table. It exists (rather than using scs's own pgxstore) so the table name carries the cms_ prefix and can live in a database shared with the host application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store persists sessions in the cms_sessions table.
func NewWithCleanupInterval ¶
NewWithCleanupInterval returns a Store whose background cleanup runs at the given interval. A zero or negative interval disables cleanup.
func (*Store) StopCleanup ¶
func (s *Store) StopCleanup()
StopCleanup halts the background cleanup goroutine, for tests or graceful shutdown. It is safe to call once.
Click to show internal directories.
Click to hide internal directories.