Documentation ¶
Index ¶
- Variables
- func CasbinHandler() gin.HandlerFunc
- func Cores() gin.HandlerFunc
- func InstallMiddlewares(ginEngine *gin.RouterGroup)
- func JWTAuth() gin.HandlerFunc
- func Limiter() gin.HandlerFunc
- func Logger() gin.HandlerFunc
- func OperationRecord() gin.HandlerFunc
- func Recovery(stack bool) gin.HandlerFunc
- func ResponseError(c *gin.Context, err error)
- func ResponseSuccess(c *gin.Context, data interface{})
- func TranslationMiddleware() gin.HandlerFunc
- type Response
- type ResponseCode
Constants ¶
This section is empty.
Variables ¶
View Source
var AlwaysAllowPath sets.String
Functions ¶
func InstallMiddlewares ¶
func InstallMiddlewares(ginEngine *gin.RouterGroup)
func Limiter ¶
func Limiter() gin.HandlerFunc
func OperationRecord ¶
func OperationRecord() gin.HandlerFunc
func ResponseError ¶
func ResponseSuccess ¶
Types ¶
type Response ¶
type Response struct { Code ResponseCode `json:"code"` Msg string `json:"msg"` RealErr string `json:"real_err"` Data interface{} `json:"data"` }
type ResponseCode ¶
type ResponseCode int
Click to show internal directories.
Click to hide internal directories.