Documentation
¶
Index ¶
- func AbortWithBadRequest(ctx *gin.Context, ginBindingError error)
- func AbortWithCustomError(ctx *gin.Context, err error)
- func AbortWithOk(ctx *gin.Context, err error)
- func AbortWithUnkownError(ctx *gin.Context, err error)
- func GetTraceId(ctx context.Context) string
- func TracingMiddleWare(c *gin.Context)
- type TracingHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbortWithBadRequest ¶
helper for serializing validation errors (and similar) properly everything but validation and json-unmarshall errors are considered unkown
func AbortWithCustomError ¶
aborts all but the current handler and returns statuscode 500 with a specific error message from the custom error
func AbortWithOk ¶
aborts all but the current handler and returns statuscode 200
func AbortWithUnkownError ¶
aborts all but the current handler and returns statuscode 500 with "unkown error"-message
func GetTraceId ¶
func TracingMiddleWare ¶
Sets a uuid for the context of every gin-request
Types ¶
type TracingHook ¶
type TracingHook struct{}
Click to show internal directories.
Click to hide internal directories.