Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenProvider ¶
type TokenProvider interface {
// GetToken returns an authentication token which can be used to authenticate requests to the Capturl API.
GetToken() (*Token, error)
}
TokenProvider is the interface for a token provider.
func NewTokenProvider ¶
func NewTokenProvider(refreshToken string, opts ...TokenProviderOption) TokenProvider
NewTokenProvider creates a new token provider.
type TokenProviderOption ¶
type TokenProviderOption func(*tokenProviderConfig)
func WithClient ¶
func WithClient(client *http.Client) TokenProviderOption
func WithRefreshURL ¶
func WithRefreshURL(refreshURL string) TokenProviderOption
Click to show internal directories.
Click to hide internal directories.