Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedJwtToken ¶
type CachedJwtToken struct {
TokenType string `json:"token_type"`
ExpiresIn int `json:"expires_in"`
AccessToken string `json:"access_token"`
}
func (CachedJwtToken) IsExpired ¶
func (t CachedJwtToken) IsExpired() bool
type JwtTokenCacheProvider ¶ added in v0.0.19
type JwtTokenCacheProvider struct {
Items []TokenCacheItem
}
func New ¶
func New() *JwtTokenCacheProvider
func (*JwtTokenCacheProvider) Get ¶ added in v0.0.19
func (c *JwtTokenCacheProvider) Get(name string) *CachedJwtToken
func (*JwtTokenCacheProvider) Set ¶ added in v0.0.19
func (c *JwtTokenCacheProvider) Set(name string, token CachedJwtToken)
type TokenCacheItem ¶
type TokenCacheItem struct {
Name string
Token CachedJwtToken
}
Click to show internal directories.
Click to hide internal directories.