scsstore

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

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 implements scs.Store backed by PostgreSQL. The sessions table carries a user_id column (NULL for pre-login sessions) extracted from the gob-encoded SCS session data on each Commit, enabling admin session listing and per-user revocation without a separate table.

func New

func New(db *sql.DB) *Store

func (*Store) Commit

func (s *Store) Commit(token string, b []byte, expiry time.Time) error

func (*Store) Delete

func (s *Store) Delete(token string) error

func (*Store) Find

func (s *Store) Find(token string) ([]byte, bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL