Documentation
¶
Overview ¶
Package session contains implementation of http session.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSession = errors.New("mongo: no session found")
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() (int64, error) ExpireSessions(user string, provider 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. |
stats contains implementation of http session statistics.
|
stats contains implementation of http session statistics. |
Click to show internal directories.
Click to hide internal directories.