Documentation ¶
Overview ¶
Package middleware @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License
Package middleware @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License @title 行为相关中间件
Package middleware @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License
Package middleware @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License
Package middleware @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License
Package middleware @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License
Index ¶
- Variables
- func Authenticator(ctx context.Context) (interface{}, error)
- func IdentityHandler(ctx context.Context) interface{}
- func New() *sMiddleware
- func NewAction() *sAction
- func NewBizCtx() *sBizCtx
- func NewJwtAuth() *sJwtAuth
- func NewSession() *sSession
- func PayloadFunc(data interface{}) jwt.MapClaims
- func Unauthorized(ctx context.Context, code int, message string)
Constants ¶
This section is empty.
Variables ¶
var JwtMiddleware *jwt.GfJWTMiddleware
Functions ¶
func Authenticator ¶
Authenticator 用户标识 私有载荷
func NewJwtAuth ¶
func NewJwtAuth() *sJwtAuth
func NewSession ¶
func NewSession() *sSession
func PayloadFunc ¶
PayloadFunc 向webtoken添加额外的有效负载数据。
Types ¶
This section is empty.