Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID uuid.UUID Login string Email string Password []byte AvatarURL url.URL Name string Bio string Location string Company string Birthday sql.NullTime CreatedAt time.Time UpdatedAt time.Time DeletedAt sql.NullTime }
User describes account attributes for a registered user.
func (*User) BeforeSave ¶
func (*User) ComparePassword ¶
ComparePassword checks if the given password compares to the current value.
func (*User) SetPassword ¶
SetPassword overwrites the current password with hash value generated by the given value.
Click to show internal directories.
Click to hide internal directories.