Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
ErrorResponse represents the error response of a request.
type HTTP ¶
type HTTP interface { // Get makes a GET request to the given url, then reads a // JSON response to the given destination. dest can not be nil. Get(url string, dest interface{}) error // Post makes a POST request to the given url, with the given body, // which will be in JSON format. If dest is not nil, the response // body will be JSON decoded to the given destination. Post(url string, body, dest interface{}) error }
HTTP is a high level interface used to wrap the core http package, resulting in making HTTP requests simplier among services, using a standardised response pattern.
Directories ¶
Path | Synopsis |
---|---|
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
auth
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
media
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
users
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.