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 ¶
Click to show internal directories.
Click to hide internal directories.