Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Gonic ¶
Gonic -- aborts gin HTTP request with StatusHTTP and provides json representation of error
func Recovery ¶
func Recovery(defaultErr cherry.ErrConstruct, logger cherry.ErrorLogger) gin.HandlerFunc
Recovery -- gin middleware to catch panics and wrap it to cherry error. If panic caught it aborts HTTP request with defaultErr.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.