Documentation ¶
Index ¶
- func ComparePassword(password string, hashPass []byte) bool
- func GenerateHash(password string) ([]byte, error)
- func GetErrorString(err error) string
- func IsValidRole(role []string) bool
- func Logger(next echo.HandlerFunc) echo.HandlerFunc
- func VerifyTokenRole(tk, role string) (bool, error)
- type UserClaims
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePassword ¶
func GenerateHash ¶
func GetErrorString ¶
func IsValidRole ¶
func VerifyTokenRole ¶
Types ¶
type UserClaims ¶
type UserClaims struct { jwt.RegisteredClaims User_ID string `json:"user_id"` }
Click to show internal directories.
Click to hide internal directories.