jwt_token_cache

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 3 Imported by: 3

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 (*JwtTokenCacheProvider) Set added in v0.0.19

func (c *JwtTokenCacheProvider) Set(name string, token CachedJwtToken)

type TokenCacheItem

type TokenCacheItem struct {
	Name  string
	Token CachedJwtToken
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL