Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(config ClientConfig) (c *Client, err error)
func (*Client) GetEndpoint ¶
type ClientConfig ¶
type ClientConfig struct { HTTPClient HTTPRequester TokenUpdaterConfig TokenUpdaterConfig Endpoint constants.Endpoint }
type HTTPRequester ¶ added in v0.6.4
type PeriodicTokenUpdater ¶ added in v0.6.4
type PeriodicTokenUpdater struct {
// contains filtered or unexported fields
}
func (*PeriodicTokenUpdater) GetAccessToken ¶ added in v0.6.4
func (t *PeriodicTokenUpdater) GetAccessToken() string
GetAccessToken returns the current access-token
func (*PeriodicTokenUpdater) RunInBackground ¶ added in v0.6.4
func (t *PeriodicTokenUpdater) RunInBackground() (cancel func(), err error)
RunInBackground starts a goroutine that fetches a new access token periodically and stores it in the client. The goroutine is stopped when the returned cancel function is called.
type TokenUpdaterConfig ¶
Click to show internal directories.
Click to hide internal directories.