Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Interceptor ¶
type Interceptor struct { // Enabled true: 使用 Interceptor 规则; false: 不使用 Interceptor 规则, 全部路由进行 token 校验 Enabled bool `yaml:"enabled"` // Includes 进行 token 校验。优先级:高 Includes []string `yaml:"includes"` // Excludes 不进行 token 校验。优先级:低 Excludes []string `yaml:"excludes"` // contains filtered or unexported fields }
Interceptor uri 拦截器
type JwtHandler ¶
type JwtHandler struct { // 拦截器 Interceptor *Interceptor // 解析器 Handler func(ctx *gin.Context) bool }
JwtHandler .
Click to show internal directories.
Click to hide internal directories.