middleware

package
v0.0.0-...-cccf1c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUserInfo

func CheckUserInfo(claims *public.CustomClaims) error

CheckUserInfo 检查用户名信息

func Cors

func Cors() gin.HandlerFunc

func IPAuthMiddleware

func IPAuthMiddleware() gin.HandlerFunc

IPAuthMiddleware 白名单验证

func JwtAuthMiddleware

func JwtAuthMiddleware() gin.HandlerFunc

func RecoveryMiddleware

func RecoveryMiddleware() gin.HandlerFunc

RecoveryMiddleware 捕获所有panic,并且返回错误信息

func RequestInLog

func RequestInLog(c *gin.Context)

RequestInLog 请求进入日志

func RequestLog

func RequestLog() gin.HandlerFunc

func RequestOutLog

func RequestOutLog(c *gin.Context)

RequestOutLog 请求输出日志

func SessionAuthMiddleware

func SessionAuthMiddleware() gin.HandlerFunc

SessionAuthMiddleware Session验证

func TranslationMiddleware

func TranslationMiddleware() gin.HandlerFunc

TranslationMiddleware 设置Translation

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL