Documentation
¶
Index ¶
Constants ¶
View Source
const (
UserContext = UserContextKey("UserContext")
)
Variables ¶
This section is empty.
Functions ¶
func GetTokenDataFromCtx ¶
func GetTokenDataFromCtx(ctx context.Context) (*jwtx.JwtTokenData, error)
从ctx获取用户请求内容
func GetTokenFromRequest ¶
读取Request Header Authorization
Types ¶
type UserContextKey ¶
type UserContextKey string
Click to show internal directories.
Click to hide internal directories.