Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandStringRunes ¶
func Sha256Encode ¶
func TokenGenerator ¶
TokenGenerator will generator a jwt by user id
func TrimChineseComma ¶
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.