Documentation
¶
Index ¶
- func CheckPasswordHash(password, hash string) (bool, error)
- func HashPassword(password string) (string, error)
- func RespondWithError(w http.ResponseWriter, code int, message string)
- func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
- func SetClaimsAndReturnToken(username, email, role string) (string, error)
- type R
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func HashPassword ¶
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, code int, message string)
RespondWithError - response with error message
func RespondWithJSON ¶
func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
RespondWithJSON - json format response
func SetClaimsAndReturnToken ¶
SetClaimsAndReturnToken generate claims and token
Types ¶
Click to show internal directories.
Click to hide internal directories.