Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { gorm.Model `json:"model"` Username string `json:"username"` // Password field is not exported Password string `json:"password"` Name string `json:"name"` Email string `json:"email"` }
func (*User) BeforeUpdate ¶
BeforeUpdate : hook before a user is updated
func (*User) GeneratePassword ¶
func (u *User) GeneratePassword()
Click to show internal directories.
Click to hide internal directories.