Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *zap.Logger
Functions ¶
func InitializeLogger ¶
func InitializeLogger()
Types ¶
type BearerToken ¶
type BearerToken struct {
// contains filtered or unexported fields
}
func NewBearerToken ¶
func NewBearerToken(token string) *BearerToken
func (*BearerToken) GetToken ¶
func (b *BearerToken) GetToken() string
func (*BearerToken) IsExpired ¶
func (b *BearerToken) IsExpired() bool
type RefreshAuthResponse ¶
type TokenClient ¶
type TokenClient struct { Token *BearerToken // contains filtered or unexported fields }
func NewTokenClient ¶
func NewTokenClient(authFunc func() (*RefreshAuthResponse, error)) *TokenClient
func (*TokenClient) RefreshAuth ¶
func (c *TokenClient) RefreshAuth() error
Click to show internal directories.
Click to hide internal directories.