Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type User struct { Id int64 `db:"id"` Created int64 Updated int64 Email string `schema:"email",json:"email",db:"email"` Hash string }
func (*User) ComparePassword ¶
Returns nil error on sucess
func (*User) PreInsert ¶
func (i *User) PreInsert(s gorp.SqlExecutor) error
implement the PreInsert and PreUpdate hooks
func (*User) SetPassword ¶
Click to show internal directories.
Click to hide internal directories.