Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(authenticator Authenticator) *http.Client
func NewClientWithToken ¶
func NewClientWithTransport ¶
func NewClientWithTransport(authenticator Authenticator, transport http.RoundTripper) *http.Client
Types ¶
type ApplicationTokenAuthenticator ¶
type ApplicationTokenAuthenticator struct {
Token string
}
func (ApplicationTokenAuthenticator) GetToken ¶
func (a ApplicationTokenAuthenticator) GetToken() string
type Authenticator ¶
type Authenticator interface {
GetToken() string
}
Click to show internal directories.
Click to hide internal directories.