redis

package
v0.0.0-...-bb13912 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2017 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL