Documentation ¶
Index ¶
- func ComparePasswords(hashedPassword string, password []byte) bool
- func Failure(w http.ResponseWriter, status int, error models.Error)
- func GenerateToken(user models.User) (string, error)
- func Success(w http.ResponseWriter, data interface{})
- func SuccessWithStatus(w http.ResponseWriter, status int, data interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePasswords ¶
func Success ¶
func Success(w http.ResponseWriter, data interface{})
func SuccessWithStatus ¶
func SuccessWithStatus(w http.ResponseWriter, status int, data interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.