Documentation ¶
Index ¶
- func ObjectIdsHexInArray(strArr []string) (arr []bson.ObjectId)
- func PanicOnError(err error)
- func PasswordCompare(pwd string, hash []byte) bool
- func PasswordEncrypt(pwd string) []byte
- func TokenDecrypt(tokenString string, key string) (jwt.MapClaims, bool)
- func TokenEncrypt(m jwt.MapClaims, key string) (string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ObjectIdsHexInArray ¶
ObjectIdsHexInArray []string to []bson.ObjectId
func TokenDecrypt ¶
TokenDecrypt 解析密钥
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.