Documentation ¶
Index ¶
- func CheckError(err error)
- func ErrorResponse(message string, code int) render.Renderer
- func RecoverIfError(w http.ResponseWriter, r *http.Request)
- func ServiceError(message string, code int) error
- func ServiceErrorResponse(w http.ResponseWriter, r *http.Request, err error)
- func ValidateStruct(s interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckError(err error)
func RecoverIfError ¶
func RecoverIfError(w http.ResponseWriter, r *http.Request)
func ServiceError ¶
func ServiceErrorResponse ¶
func ServiceErrorResponse(w http.ResponseWriter, r *http.Request, err error)
func ValidateStruct ¶
func ValidateStruct(s interface{}) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.