Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IInterceptor ¶
type IInterceptor interface { Data(c echo.Context, code int, data interface{}) error Error(c echo.Context, code int, msg error, err error) error }
func NewInterceptor ¶
func NewInterceptor() IInterceptor
type InterceptorErrorProps ¶
type InterceptorSuccessProps ¶
type InterceptorSuccessProps struct { Status int `json:"status"` Data interface{} `json:"data"` }
Click to show internal directories.
Click to hide internal directories.