Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandStringRunes ¶ added in v1.0.2
func Sha256Encode ¶
func TokenGenerator ¶
TokenGenerator will generator a jwt by user id
func TrimChineseComma ¶ added in v1.0.2
Types ¶
type JWTContent ¶
type JWTContent struct {
ID string
}
func TokenParser ¶
func TokenParser(tokenString string) (JWTContent, error)
Click to show internal directories.
Click to hide internal directories.