Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID uint `json:"id"` Email string `json:"email"` Username string `json:"username"` Password string `json:"password"` CreatedAt time.Time `json:"created_at"` }
User represents user data model
func (*User) ComparePassword ¶
ComparePassword compares provided plain-text password with model's hashed password
func (*User) HashPassword ¶
HashPassword creates hash out of provided plain-text password
Click to show internal directories.
Click to hide internal directories.