cache

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthenticator

func NewAuthenticator(a authenticator.Token, ttl time.Duration, maxCount int) (authenticator.Token, error)

NewAuthenticator returns an authenticator that caches the results of the given authenticator

Types

type CacheAuthenticator

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

func (*CacheAuthenticator) AuthenticateToken

func (c *CacheAuthenticator) AuthenticateToken(token string) (user.Info, bool, error)

Jump to

Keyboard shortcuts

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