Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Unwrap ¶
func Unwrap(h HTTPClient) *http.Client
func WrapNative ¶
Types ¶
type HTTPClient ¶
type HTTPClient interface { Get(ctx context.Context, url string) (*http.Response, error) Post(ctx context.Context, url, contentType string, body io.Reader) (*http.Response, error) }
HTTPClient makes it easier to mock out goldclient's dependencies on http.Client by representing a smaller interface.
Click to show internal directories.
Click to hide internal directories.