Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CasbinMiddleware ¶
type CasbinMiddleware struct {
// contains filtered or unexported fields
}
func NewCasbinMiddleware ¶
func NewCasbinMiddleware(enforcer *casbin.Enforcer) *CasbinMiddleware
func (*CasbinMiddleware) CheckCasbin ¶
func (cm *CasbinMiddleware) CheckCasbin() gin.HandlerFunc
CheckCasbin 创建一个 Casbin 中间件
type JWTMiddleware ¶
func NewJWTMiddleware ¶
func NewJWTMiddleware(hdl ijwt.Handler) *JWTMiddleware
func (*JWTMiddleware) CheckLogin ¶
func (m *JWTMiddleware) CheckLogin() gin.HandlerFunc
CheckLogin 校验JWT
type LogMiddleware ¶
type LogMiddleware struct {
// contains filtered or unexported fields
}
func NewLogMiddleware ¶
func NewLogMiddleware(l *zap.Logger) *LogMiddleware
Click to show internal directories.
Click to hide internal directories.