Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginJWTMiddleware ¶
type LoginJWTMiddleware interface { CheckLoginJWT() gin.HandlerFunc SetIgnorePaths(paths ...string) LoginJWTMiddleware }
type LoginJWTMiddlewareBuilder ¶
type LoginJWTMiddlewareBuilder struct {
// contains filtered or unexported fields
}
func NewLoginJWTMiddlewareBuilder ¶
func NewLoginJWTMiddlewareBuilder() *LoginJWTMiddlewareBuilder
func (*LoginJWTMiddlewareBuilder) CheckLoginJWT ¶
func (ljmb *LoginJWTMiddlewareBuilder) CheckLoginJWT() gin.HandlerFunc
func (*LoginJWTMiddlewareBuilder) SetIgnorePaths ¶
func (ljmb *LoginJWTMiddlewareBuilder) SetIgnorePaths(paths ...string) LoginJWTMiddleware
type LoginMiddleware ¶
type LoginMiddleware interface { CheckLogin() gin.HandlerFunc SetIgnorePaths(paths ...string) LoginMiddleware }
type LoginMiddlewareBuilder ¶
type LoginMiddlewareBuilder struct {
// contains filtered or unexported fields
}
func NewLoginMiddlewareBuilder ¶
func NewLoginMiddlewareBuilder() *LoginMiddlewareBuilder
func (*LoginMiddlewareBuilder) CheckLogin ¶
func (lmb *LoginMiddlewareBuilder) CheckLogin() gin.HandlerFunc
CheckLogin 检查用户是否登录(除了 login 和 signup 之外的路径)
func (*LoginMiddlewareBuilder) SetIgnorePaths ¶
func (lmb *LoginMiddlewareBuilder) SetIgnorePaths(paths ...string) LoginMiddleware
Click to show internal directories.
Click to hide internal directories.