Documentation ¶
Index ¶
- func AuthHandler() gin.HandlerFunc
- func CheckPasswordHash(password, hash string) bool
- func GenerateToken(username string, uniqueKey string) (string, interface{}, error)
- func GetUsername() string
- func HashPassword(password string) (string, error)
- func RandomStr(n int) string
- func ValidateToken(t string, k string) (*jwt.Token, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthHandler ¶
func AuthHandler() gin.HandlerFunc
func CheckPasswordHash ¶
func GenerateToken ¶
func GetUsername ¶
func GetUsername() string
func HashPassword ¶
func ValidateToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.