Documentation ¶
Index ¶
- func CheckUserInfo(claims *public.CustomClaims) error
- func Cors() gin.HandlerFunc
- func IPAuthMiddleware() gin.HandlerFunc
- func JwtAuthMiddleware() gin.HandlerFunc
- func RecoveryMiddleware() gin.HandlerFunc
- func RequestInLog(c *gin.Context)
- func RequestLog() gin.HandlerFunc
- func RequestOutLog(c *gin.Context)
- func SessionAuthMiddleware() gin.HandlerFunc
- func TranslationMiddleware() gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cors ¶
func Cors() gin.HandlerFunc
func JwtAuthMiddleware ¶
func JwtAuthMiddleware() gin.HandlerFunc
func RecoveryMiddleware ¶
func RecoveryMiddleware() gin.HandlerFunc
RecoveryMiddleware 捕获所有panic,并且返回错误信息
func RequestLog ¶
func RequestLog() gin.HandlerFunc
func SessionAuthMiddleware ¶
func SessionAuthMiddleware() gin.HandlerFunc
SessionAuthMiddleware Session验证
func TranslationMiddleware ¶
func TranslationMiddleware() gin.HandlerFunc
TranslationMiddleware 设置Translation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.