Documentation ¶
Index ¶
- func Breaker() gin.HandlerFunc
- func Cors() gin.HandlerFunc
- func JWTAuth(secret string) gin.HandlerFunc
- func LogHandler(verbose bool) gin.HandlerFunc
- func Prometheus(monitor *prometheus.Monitor, engine *gin.Engine) gin.HandlerFunc
- func Recovery(stack bool) gin.HandlerFunc
- func RecoveryWithWriter(stack bool) gin.HandlerFunc
- func Unzip() gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JWTAuth ¶
func JWTAuth(secret string) gin.HandlerFunc
func LogHandler ¶
func LogHandler(verbose bool) gin.HandlerFunc
func Prometheus ¶
func Prometheus(monitor *prometheus.Monitor, engine *gin.Engine) gin.HandlerFunc
func Recovery ¶
func Recovery(stack bool) gin.HandlerFunc
func RecoveryWithWriter ¶
func RecoveryWithWriter(stack bool) gin.HandlerFunc
Recovery recover掉项目可能出现的panic
func Unzip ¶
func Unzip() gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.