Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware interface { // JWT 中间件 Jwt(ctx core.Context) (userId int64, userName string, err errno.Error) // Resubmit 中间件 Resubmit() core.HandlerFunc // DisableLog 不记录日志 DisableLog() core.HandlerFunc // Signature 签名验证,对用签名算法 pkg/signature Signature() core.HandlerFunc // Token 签名验证,对登录用户的验证 Token(ctx core.Context) (userId int64, userName string, err errno.Error) // RBAC 权限验证 RBAC() core.HandlerFunc // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.