Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CachedTokenManager ¶ added in v1.4.0
type CachedTokenManager struct {
// contains filtered or unexported fields
}
func (*CachedTokenManager) RefreshToken ¶ added in v1.4.0
func (t *CachedTokenManager) RefreshToken(httpSettings *settings.HttpSettings, httpClient *http.Client) (string, error)
type TokenExpiration ¶
sets the default expiration time for each generated token and a cleanupInterval to old delete entries
func NewDefaultTokenExpiration ¶
func NewDefaultTokenExpiration() *TokenExpiration
func NewTokenExpiration ¶
func NewTokenExpiration(defaultExpiration time.Duration, cleanupInterval time.Duration) *TokenExpiration
type TokenManager ¶
type TokenManager interface {
RefreshToken(httpSettings *settings.HttpSettings, httpClient *http.Client) (string, error)
}
func NewTokenManager ¶
func NewTokenManager(credentials settings.AuthenticationSettings, tokenExpiration *TokenExpiration) TokenManager
Click to show internal directories.
Click to hide internal directories.