Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func GetToken(r *http.Request) (accessToken string)
- func Hash(data string) string
- func HashPassword(password string) string
- func IsAccessTokenExpiredError(err error) bool
- func MakeBearer(lenth int) string
- func PtrFloat64(v *float64) float64
- func PtrInt32(v *int32) int32
- func PtrInt64(v *int64) int64
- func PtrStrV(v *string) string
- func SlicePtrStrv(items []*string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func HashPassword ¶
func IsAccessTokenExpiredError ¶
IsAccessTokenExpiredError 判断是否是NotFoundError
func MakeBearer ¶
MakeBearer https://tools.ietf.org/html/rfc6750#section-2.1 b64token = 1*( ALPHA / DIGIT /"-" / "." / "_" / "~" / "+" / "/" ) *"="
func PtrFloat64 ¶
func SlicePtrStrv ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.