Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMissingToken = errors.New("missing token")
)
View Source
var ProviderSet = wire.NewSet(NewJWTMiddleware)
Functions ¶
This section is empty.
Types ¶
type JWTMiddleware ¶
func NewJWTMiddleware ¶
func NewJWTMiddleware(hdl data.Handler) *JWTMiddleware
func (*JWTMiddleware) CheckLogin ¶
func (m *JWTMiddleware) CheckLogin() middleware.Middleware
CheckLogin 校验JWT
Click to show internal directories.
Click to hide internal directories.