Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthedAPIClient ¶
type AuthedAPIClient struct {
// contains filtered or unexported fields
}
AuthedAPIClient represents an API client for authorized requests.
func NewAuthedAPIClient ¶
func NewAuthedAPIClient(host, token string) *AuthedAPIClient
NewAuthedAPIClient returns a new API client.
func (*AuthedAPIClient) Get ¶
func (a *AuthedAPIClient) Get(path string) ([]byte, error)
Get performs a GET request to provided endpoint.
func (*AuthedAPIClient) SetHost ¶
func (a *AuthedAPIClient) SetHost(host string)
SetHost sets the host for base host for the authed API client.
Click to show internal directories.
Click to hide internal directories.