Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
func CreateToken(c SecurityUser, key string) (string, error)
CreateToken generate token
func NewWhiteListMatcher ¶
Types ¶
type SecurityUser ¶
type SecurityUser struct { auth.ASecurityUser ID uint64 NickName string AuthorityName string RoleIds string jwtV4.RegisteredClaims }
Click to show internal directories.
Click to hide internal directories.