Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
CheckPasswordHash checks if the given password matches
func HashPassword ¶
HashPassword encrypts a given password using bcrypt algorithm
func ValidatorMessage ¶
ValidatorMessage validate error messages
Types ¶
type APIMessage ¶
type APIMessage struct { Message string `json:"message,omitempty"` Status int `json:"status,omitempty"` }
APIMessage type is a struct for generic JSON response
type APIValidator ¶
type APIValidator struct {
Errors []APIMessage `json:"errors"`
}
APIValidator type is a struct for multiple error messages
Click to show internal directories.
Click to hide internal directories.