Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Doer ¶
We define a Doer interface, that has the method signature of the `http.Client` structs `Do` method
func NewHTTPClient ¶
func NewHTTPClient() Doer
This gives us a regular HTTP client from the `net/http` package
func NewMockHTTPClient ¶
func NewMockHTTPClient() Doer
This gives us a mock HTTP client, which returns an empty response for any request sent to it
Click to show internal directories.
Click to hide internal directories.