Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorResponse ¶
func ErrorResponse(context string, err error, w http.ResponseWriter)
ErrorResponse answers a request with a JSON error
func ObjectResponse ¶
func ObjectResponse(status int, object interface{}, w http.ResponseWriter) error
ObjectResponse answers a request with a JSON message containing an object
Types ¶
type StandardResponse ¶
StandardResponse is a standard response message
Click to show internal directories.
Click to hide internal directories.