session

package
v0.0.0-...-c1a87c5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvalidStringError     = errors.New("Must provide a string-like object")
	NoSessionFoundError    = errors.New("No session found")
	RateLimitExceededError = errors.New("rate limit exceeded")
)

Functions

This section is empty.

Types

type SessionStore

type SessionStore struct {
	// contains filtered or unexported fields
}

func NewSessionStore

func NewSessionStore(options SessionStoreOptions) (*SessionStore, error)

func (*SessionStore) DeleteSession

func (r *SessionStore) DeleteSession(sessionID interface{}) error

func (*SessionStore) InvalidateSessions

func (r *SessionStore) InvalidateSessions(groupId interface{}) error

func (*SessionStore) RateLimitCount

func (r *SessionStore) RateLimitCount(client string, bucketRate, bucketCapacity float64) error

func (*SessionStore) Session

func (r *SessionStore) Session(sessionID, session interface{}) error

func (*SessionStore) SetSession

func (r *SessionStore) SetSession(sessionID, groupId, session interface{}) error

type SessionStoreOptions

type SessionStoreOptions struct {
	Addr, Password  string
	SessionDuration time.Duration
	MaxSessions     int
}

Jump to

Keyboard shortcuts

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