Documentation ¶
Overview ¶
Package api provides the useful functions, structures and variables for the api package
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidStatusCode is returned when the status code is different from 200 ErrInvalidStatusCode = errors.New("status code not ok") // ErrInvalidResponse is returned when the response is not valid ErrInvalidResponse = errors.New("invalid response") )
Functions ¶
Types ¶
type NumberResponse ¶
type NumberResponse struct {
Numbers []int `json:"numbers"`
}
NumberResponse is the response from the /numbers endpoint
type TestServerResponse ¶
TestServerResponse is the response from the test server
Click to show internal directories.
Click to hide internal directories.