Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSessionRepository ¶
func NewSessionRepository(pool *redigo.Pool, opts ...SessionsOption) sessions.Repository
NewSessionRepository returns a new instance of a Redis backed session repository.
Types ¶
type SessionsOption ¶
type SessionsOption func(*sessionRepository)
SessionsOption sets an optional parameter for the sessionRepository.
func DefaultSessionValidity ¶
func DefaultSessionValidity(sessionValidity time.Duration) SessionsOption
DefaultSessionValidity sets the default duration of new sessions validity.
func DefaultTokenLength ¶
func DefaultTokenLength(tokenLength int) SessionsOption
DefaultTokenLength sets the default length of generated session tokens.
Click to show internal directories.
Click to hide internal directories.