Documentation ¶ Index ¶ type JwtClient func NewJwtX(context context.Context, key string) *JwtClient func (j *JwtClient) GetToken(secretKey string, iat, seconds, userId int64) (string, error) func (j *JwtClient) GetUid() int64 func (j *JwtClient) GetUidByToken(secretKey string, tokenString string) int64 Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type JwtClient ¶ added in v0.3.13 type JwtClient struct { // contains filtered or unexported fields } func NewJwtX ¶ added in v0.3.13 func NewJwtX(context context.Context, key string) *JwtClient func (*JwtClient) GetToken ¶ added in v0.3.13 func (j *JwtClient) GetToken(secretKey string, iat, seconds, userId int64) (string, error) func (*JwtClient) GetUid ¶ added in v0.3.13 func (j *JwtClient) GetUid() int64 func (*JwtClient) GetUidByToken ¶ added in v0.3.13 func (j *JwtClient) GetUidByToken(secretKey string, tokenString string) int64 Source Files ¶ View all Source files jwt.go Click to show internal directories. Click to hide internal directories.