http

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL