Documentation ¶
Overview ¶
Package httpclient contains custom implementation of a http client that let us perform actions against an external service allowed actions: GET, POST, DELETE
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Get(request Request) (*Response, error) Post(request Request) (*Response, error) Delete(request Request) (*Response, error) }
Client interface give us the flexibility to implement http client in different ways, so we can use a third party library or a custom client and switch between them with minimum efforts and impact.
type ClientMock ¶
Click to show internal directories.
Click to hide internal directories.