Documentation
¶
Index ¶
- type AuthenticatedClient
- func (c *AuthenticatedClient) Delete(ctx context.Context, path string) (*http.Response, error)
- func (c *AuthenticatedClient) Do(req *http.Request) (*http.Response, error)
- func (c *AuthenticatedClient) Get(ctx context.Context, path string) (*http.Response, error)
- func (c *AuthenticatedClient) Post(ctx context.Context, path string, body io.Reader) (*http.Response, error)
- func (c *AuthenticatedClient) Put(ctx context.Context, path string, body io.Reader) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticatedClient ¶
type AuthenticatedClient struct {
// contains filtered or unexported fields
}
AuthenticatedClient wraps http.Client with automatic OAuth authentication
func NewAuthenticatedClient ¶
func NewAuthenticatedClient(cfg *config.Config) (*AuthenticatedClient, error)
NewAuthenticatedClient creates a new authenticated HTTP client
Click to show internal directories.
Click to hide internal directories.