Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenCache ¶
type TokenCache struct { Entries map[string]*user.User `json:"entries,omitempty" xml:"entries,omitempty" yaml:"entries,omitempty"` // contains filtered or unexported fields }
TokenCache contains cached tokens
func NewTokenCache ¶
func NewTokenCache(i int) *TokenCache
NewTokenCache returns TokenCache instance.
func (*TokenCache) Add ¶
func (c *TokenCache) Add(usr *user.User) error
Add adds a token and the associated claim to cache.
func (*TokenCache) Delete ¶
func (c *TokenCache) Delete(token string) error
Delete removes cached token from
Click to show internal directories.
Click to hide internal directories.