Documentation ¶
Overview ¶
Package pgstore implements a Postgres-backed session store for alexedwards/scs.
Index ¶
- type Store
- func (p *Store) Commit(token string, b []byte, expiry time.Time) error
- func (p *Store) CommitCtx(ctx context.Context, token string, b []byte, expiry time.Time) error
- func (p *Store) Delete(token string) error
- func (p *Store) DeleteCtx(ctx context.Context, token string) error
- func (p *Store) Find(token string) ([]byte, bool, error)
- func (p *Store) FindCtx(ctx context.Context, token string) ([]byte, bool, error)
- func (p *Store) Start(ctx context.Context)
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 the CtxStore interface provided by scs.
func NewWithCleanupInterval ¶
NewWithCleanupInterval creates a new Store with the given cleanup interval.
Click to show internal directories.
Click to hide internal directories.