Versions in this module Expand all Collapse all v0 v0.0.1 Jan 22, 2025 Changes in this version + var DefaultInterval = time.Minute * 5 + var ErrSessionExpired = errors.New("Session expired") + type Options struct + CheckInterval time.Duration + EmptyDataAge int + KeyPairs [][]byte + KeyPrefix string + MaxAge int + MaxLength int + MaxReconnect int + Table string + func (o *Options) SetDDL(ddl string) *Options + type SQLStore struct + Codecs []securecookie.Codec + func New(db *sql.DB, cfg *Options) (*SQLStore, error) + func (m *SQLStore) Cleanup(interval time.Duration) (chan<- struct{}, <-chan struct{}) + func (m *SQLStore) Close() (err error) + func (m *SQLStore) Delete(ctx echo.Context, session *sessions.Session) error + func (m *SQLStore) Get(ctx echo.Context, name string) (*sessions.Session, error) + func (m *SQLStore) Init() + func (m *SQLStore) MaxAge(ctx echo.Context, session *sessions.Session) int + func (m *SQLStore) MaxLength(l int) + func (m *SQLStore) New(ctx echo.Context, name string) (*sessions.Session, error) + func (m *SQLStore) Reload(ctx echo.Context, session *sessions.Session) error + func (m *SQLStore) Remove(sessionID string) error + func (m *SQLStore) Save(ctx echo.Context, session *sessions.Session) error + func (m *SQLStore) StopCleanup(quit chan<- struct{}, done <-chan struct{})