Documentation ¶
Index ¶
- type DBStore
- func (s *DBStore) Delete(ctx context.Context, sess *entity.Session) error
- func (s *DBStore) ExtendExpiry(ctx context.Context, sess *entity.Session) error
- func (s *DBStore) Get(ctx context.Context, sessionID string) (*entity.Session, error)
- func (s *DBStore) New(ctx context.Context, user *entity.User) (*entity.Session, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBStore ¶
type DBStore struct {
// contains filtered or unexported fields
}
DBStore is a postgres-backed store for user sessions.
func (*DBStore) Delete ¶
Delete deletes the session with the given ID, essentially logging the user out.
func (*DBStore) ExtendExpiry ¶ added in v0.1.3
ExtendExpiry extends the expiry of the given cookie.
Click to show internal directories.
Click to hide internal directories.