Versions in this module Expand all Collapse all v0 v0.0.2 Aug 29, 2021 Changes in this version type PGStore + func (db *PGStore) DeleteExpired() (err error) + func (db *PGStore) RunCleanup(ctx context.Context, interval time.Duration) <-chan error v0.0.1 Aug 16, 2021 Changes in this version + type PGSession struct + CreatedOn time.Time + Data string + ExpiresOn time.Time + Key string + ModifiedOn time.Time + type PGStore struct + Codecs []securecookie.Codec + DbPool *sql.DB + Options *sessions.Options + Path string + func NewPGStore(dbURL string, keyPairs ...[]byte) (*PGStore, error) + func NewPGStoreFromPool(db *sql.DB, keyPairs ...[]byte) (*PGStore, error) + func (db *PGStore) Cleanup(interval time.Duration) (chan<- struct{}, <-chan struct{}) + func (db *PGStore) Close() + func (db *PGStore) Get(r *http.Request, name string) (*sessions.Session, error) + func (db *PGStore) MaxAge(age int) + func (db *PGStore) MaxLength(l int) + func (db *PGStore) New(r *http.Request, name string) (*sessions.Session, error) + func (db *PGStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error + func (db *PGStore) StopCleanup(quit chan<- struct{}, done <-chan struct{})