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" gorm:"primary_key"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt *time.Time `json:"deleted_at" sql:"index"` Email string `json:"email" gorm:"unique;not null"` Password string `json:"password,omitempty"` Token string `json:"token,omitempty"` TokenExpires time.Time `json:"token_expires"` }
func (*User) Authenticate ¶
Click to show internal directories.
Click to hide internal directories.