Documentation ¶
Index ¶
- func WriteInternalErrorJSONResponse(w http.ResponseWriter, err error)
- func WriteInvalidJSONResponse(w http.ResponseWriter, err error)
- func WriteJSONResponse(w http.ResponseWriter, statusCode int, jsonObj interface{})
- func WriteStatusAcceptedResponse(w http.ResponseWriter)
- func WriteStatusCreatedResponse(w http.ResponseWriter)
- type HandlerError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteInternalErrorJSONResponse ¶
func WriteInternalErrorJSONResponse(w http.ResponseWriter, err error)
func WriteInvalidJSONResponse ¶
func WriteInvalidJSONResponse(w http.ResponseWriter, err error)
func WriteJSONResponse ¶
func WriteJSONResponse(w http.ResponseWriter, statusCode int, jsonObj interface{})
func WriteStatusAcceptedResponse ¶
func WriteStatusAcceptedResponse(w http.ResponseWriter)
func WriteStatusCreatedResponse ¶
func WriteStatusCreatedResponse(w http.ResponseWriter)
Types ¶
type HandlerError ¶
type HandlerError struct {
Error string `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.