package
Version:
v0.0.0-...-a82cf68
Opens a new window with list of versions in this module.
Published: Sep 10, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
JWT加密生成并返回令牌
param username
param password
return string,error
type Claims struct {
UserName string
Password string
jwt.StandardClaims
}
JWT解析令牌并验证
param tokenStr
retrun *Claims, error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.