Documentation
¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func GenerateJWT(id int, email string, userType database.UserType) (string, error)
- func HashPassword(password string) (string, error)
- func InternalServerError(w http.ResponseWriter, message string)
- func InvalidInput(w http.ResponseWriter, message ...string)
- func UnAuthorized(w http.ResponseWriter, message string)
- func ValidateJWT(tokenString string) (int, string, string, error)
- func WrongMethod(w http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func GenerateJWT ¶
func HashPassword ¶
func InternalServerError ¶
func InternalServerError(w http.ResponseWriter, message string)
func InvalidInput ¶
func InvalidInput(w http.ResponseWriter, message ...string)
func UnAuthorized ¶
func UnAuthorized(w http.ResponseWriter, message string)
func WrongMethod ¶
func WrongMethod(w http.ResponseWriter)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.