Documentation ¶
Overview ¶
Package session contains implementation of http session.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface { sessions.Store // StartAutoClean starts a go routine that will every specified duration clean expired sessions. StartAutoClean(ctx context.Context, timeout time.Duration) // GetActiveSessionsCount returns count of active sessions. GetActiveSessionsCount(ctx context.Context) (int64, error) ExpireSessions(ctx context.Context, user string, provider string) error ExpireSessionsByUserIDs(ctx context.Context, ids []string) error }
Store is an interface implemented by store that can clean expired sessions and count sessions.
Directories ¶
Path | Synopsis |
---|---|
mongostore contains gorilla session store.
|
mongostore contains gorilla session store. |
Click to show internal directories.
Click to hide internal directories.