Documentation ¶
Index ¶
- func ErrorHandler(rw web.ResponseWriter, err error)
- func ErrorResponse(err string, code int) *response
- func Request(field interface{}, errorHandlerCustom func(web.ResponseWriter, error)) func(interface{}, web.ResponseWriter, *web.Request, web.NextMiddlewareFunc)
- func Response(errorHandlerCustom func(web.ResponseWriter, error)) func(interface{}, web.ResponseWriter, *web.Request, web.NextMiddlewareFunc)
- func SuccessResponse(data interface{}) *response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorHandler ¶
func ErrorHandler(rw web.ResponseWriter, err error)
func ErrorResponse ¶
func Request ¶
func Request(field interface{}, errorHandlerCustom func(web.ResponseWriter, error)) func( interface{}, web.ResponseWriter, *web.Request, web.NextMiddlewareFunc)
func Response ¶
func Response(errorHandlerCustom func(web.ResponseWriter, error)) func( interface{}, web.ResponseWriter, *web.Request, web.NextMiddlewareFunc)
func SuccessResponse ¶
func SuccessResponse(data interface{}) *response
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.