Documentation
¶
Index ¶
- func ComparePasswordHash(hashedPassword string, password string) error
- func GeneratePasswordHash(password string) (string, error)
- func WriteValidationError(w http.ResponseWriter, status int, err error) error
- func WriterError(w http.ResponseWriter, status int, erre error) error
- func WriterJSON(w http.ResponseWriter, status int, v any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePasswordHash ¶
ComparePasswordHash compares the provided password with the hashed password.
func GeneratePasswordHash ¶
GeneratePasswordHash hashes the provided password using bcrypt.
func WriteValidationError ¶
func WriteValidationError(w http.ResponseWriter, status int, err error) error
func WriterError ¶
func WriterError(w http.ResponseWriter, status int, erre error) error
func WriterJSON ¶
func WriterJSON(w http.ResponseWriter, status int, v any) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.