Documentation
¶
Index ¶
- func BodyErrorHandler() gin.HandlerFunc
- func CheckDBSession(h echo.HandlerFunc) echo.HandlerFunc
- func ErrorHandler(h echo.HandlerFunc) echo.HandlerFunc
- func HandleError(c echo.Context, e interface{})
- func HeaderErrorHandler(h echo.HandlerFunc) echo.HandlerFunc
- func InitHandler(h echo.HandlerFunc) echo.HandlerFunc
- type BodyError
- type CustomContext
- type Mean
- type MeanErrorHandleType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BodyErrorHandler ¶
func BodyErrorHandler() gin.HandlerFunc
func CheckDBSession ¶
func CheckDBSession(h echo.HandlerFunc) echo.HandlerFunc
func ErrorHandler ¶
func ErrorHandler(h echo.HandlerFunc) echo.HandlerFunc
func HandleError ¶
func HeaderErrorHandler ¶
func HeaderErrorHandler(h echo.HandlerFunc) echo.HandlerFunc
func InitHandler ¶
func InitHandler(h echo.HandlerFunc) echo.HandlerFunc
Types ¶
type BodyError ¶
type BodyError struct {
Success bool `json:"success"`
Error *model.ErrorMsgDefault `json:"error,omitempty"`
Data interface{} `json:"data,omitempty"`
}
type CustomContext ¶
func (*CustomContext) Bar ¶
func (c *CustomContext) Bar()
func (*CustomContext) Foo ¶
func (c *CustomContext) Foo()
type MeanErrorHandleType ¶
type MeanErrorHandleType int
const ( MeanErrorHandleTypeHeader MeanErrorHandleType = 1 + iota MeanErrorHandelTypeBody )
Click to show internal directories.
Click to hide internal directories.