Documentation ¶
Index ¶
- func ErrorAlreadyExists(message string, args ...interface{}) (*http.Response, error)
- func ErrorBadRequest(message string, args ...interface{}) (*http.Response, error)
- func ErrorNotFound(message string, args ...interface{}) (*http.Response, error)
- func OKResponse(obj interface{}) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorAlreadyExists ¶
ErrorAlreadyExists builds an ALREADY_EXISTS error response
func ErrorBadRequest ¶
ErrorBadRequest builds a BAD_REQUEST error response
func ErrorNotFound ¶
ErrorNotFound builds a NOT_FOUND error response
func OKResponse ¶
OKResponse builds an response encoding the provided data.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.