Documentation ¶
Index ¶
- Variables
- func CreateToken(ctx context.Context, b []byte, expiresAt int64) (string, error)
- func Init(c *Config) error
- func Parse(ctx context.Context, tokenString string) ([]byte, error)
- func ParseTokenWithoutTime(ctx context.Context, tokenString string) ([]byte, error)
- type Config
- type CustomClaims
- type Jwt
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreateToken ¶
CreateToken 生成一个token
Types ¶
type Config ¶
type CustomClaims ¶
type CustomClaims struct { jwt.StandardClaims Sign string `json:"sign"` }
payload
Click to show internal directories.
Click to hide internal directories.