Documentation ¶
Index ¶
- Variables
- func Base64Decode(origonStr string) string
- func Base64Encode(origonStr string) string
- func GenerateNewAccessToken(info map[string]interface{}, duration int64) (string, error)
- func LoadKeysForAccessToken(privFile string, pubFile string)
- func MD5(source string) string
- func NewSalt() string
- func UnicodeEmojiCode(s string) string
- func UnicodeEmojiDecode(s string) string
- type MyClaims
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // VerifyKey 签名公钥 VerifyKey []byte // SignKey 签名私钥 SignKey []byte )
Functions ¶
func GenerateNewAccessToken ¶
GenerateNewAccessToken 生成token
func LoadKeysForAccessToken ¶
LoadKeysForAccessToken 读取签名
Types ¶
type MyClaims ¶
type MyClaims struct { Info map[string]interface{} jwt.StandardClaims }
MyClaims 自定义
func ParseAccessToken ¶
ParseAccessToken 解析token
Click to show internal directories.
Click to hide internal directories.