Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPasswordRequired = errors.New("password is required and can't be blank") ErrPasswordLen = errors.New("password must have at least 6 characters") ErrNameRequired = errors.New("name is required and can't be blank") ErrLoginRequired = errors.New("login is required and can't be blank") )
Functions ¶
Types ¶
type User ¶
type User struct {
ID int64 `json:"id"`
Name string `json:"name"`
Login string `json:"login"`
Password string `json:"password"`
CreatedAt time.Time `json:"createdAt"`
ModifiedAt time.Time `json:"modifiedAt"`
Deleted bool `json:"-"`
LastLogin time.Time `json:"lastLogin"`
}
func (*User) SetPassword ¶
Click to show internal directories.
Click to hide internal directories.