Documentation
¶
Index ¶
- func DecodeRequestIntoStruct(w http.ResponseWriter, r *http.Request, dest interface{}) error
- func ReturnError(w http.ResponseWriter, err error, httpStatus int)
- func ReturnInternalServerError(w http.ResponseWriter, code, message string)
- func ReturnRawError(w http.ResponseWriter, code, message string, status int)
- func ReturnResponseToClient(w http.ResponseWriter, value interface{})
- func ReturnResponseToClientWithStatus(w http.ResponseWriter, value interface{}, httpStatus int)
- type ErrorDTO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeRequestIntoStruct ¶
func DecodeRequestIntoStruct(w http.ResponseWriter, r *http.Request, dest interface{}) error
func ReturnError ¶
func ReturnError(w http.ResponseWriter, err error, httpStatus int)
func ReturnInternalServerError ¶
func ReturnInternalServerError(w http.ResponseWriter, code, message string)
func ReturnRawError ¶
func ReturnRawError(w http.ResponseWriter, code, message string, status int)
Returns a Raw error writting the code and the message received
func ReturnResponseToClient ¶
func ReturnResponseToClient(w http.ResponseWriter, value interface{})
func ReturnResponseToClientWithStatus ¶
func ReturnResponseToClientWithStatus(w http.ResponseWriter, value interface{}, httpStatus int)
Types ¶
Click to show internal directories.
Click to hide internal directories.