Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TTLCache ¶
type TTLCache struct {
// contains filtered or unexported fields
}
func NewTTLCache ¶
type TokenCache ¶
type TokenCache struct {
// contains filtered or unexported fields
}
func NewTokenCache ¶
func NewTokenCache(p *papers.Papers) *TokenCache
func (TokenCache) IsTokenValid ¶
func (c TokenCache) IsTokenValid(token, chain string) (bool, bool)
Checks if a token is valid. Chains should only be cached when they're invalidated, which takes precedence over an individual token
func (TokenCache) SetChainValidity ¶
func (c TokenCache) SetChainValidity(chain string, valid bool)
func (TokenCache) SetTokenValidity ¶
func (c TokenCache) SetTokenValidity(token string, valid bool)
Click to show internal directories.
Click to hide internal directories.