Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gote ¶
type Gote struct { ID int `json:"id"` UserId int `json:"user_id"` Name string `json:"name"` Text string `json:"text"` CreatedAt int `json:"created_at"` UpdatedAt int `json:"updated_at"` }
Gote data model
type User ¶
type User struct { ID int `json:"id"` Email string `json:"email"` Password string `json:"password,omitempty"` PasswordHash string `json:"-"` CreatedAt int `json:"created_at"` UpdatedAt int `json:"updated_at"` }
User model
func (*User) ComparePassword ¶
Compare password with user hased one
Click to show internal directories.
Click to hide internal directories.