Documentation ¶
Index ¶
- func DiscloseError(err error, ctx *fasthttp.RequestCtx, status int)
- func EstablishHandlerWideErrorsProcessing(err *error, ctx *fasthttp.RequestCtx)
- func EstablishUserVisibleErrorsProcessing(err *error, ctx *fasthttp.RequestCtx)
- func HandleErrorAndHideDetails(err error, ctx *fasthttp.RequestCtx)
- func WriteJSONResponse(response interface{}, ctx *fasthttp.RequestCtx) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscloseError ¶
func DiscloseError(err error, ctx *fasthttp.RequestCtx, status int)
DiscloseError is used for the cases when error can be shown to the caller.
func EstablishHandlerWideErrorsProcessing ¶
func EstablishHandlerWideErrorsProcessing(err *error, ctx *fasthttp.RequestCtx)
func EstablishUserVisibleErrorsProcessing ¶
func EstablishUserVisibleErrorsProcessing(err *error, ctx *fasthttp.RequestCtx)
func HandleErrorAndHideDetails ¶
func HandleErrorAndHideDetails(err error, ctx *fasthttp.RequestCtx)
HandleErrorAndHideDetails is used in the cases when error must be logged but no details must be shared with user.
func WriteJSONResponse ¶
func WriteJSONResponse(response interface{}, ctx *fasthttp.RequestCtx) (err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.