cache

package
v3.6.28-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 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