Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
HttpClient is an interface that makes it easier to mock http.Client in unit tests.
type PoetriesResponse ¶
type PoetriesResponse struct {
List []PoetryResponse `json:"list"`
}
PoetriesResponse contains a list of poetries.
type PoetryDb ¶
type PoetryDb interface { // Random returns a given number of random poetries. Random(number int) (PoetriesResponse, error) }
PoetryDb interface defines the available endpoints for PoetryDb API.
func NewPoetryDb ¶
NewPoetryDb creates a new PoetryDb client.
Click to show internal directories.
Click to hide internal directories.