Documentation ¶
Index ¶
Constants ¶
View Source
const (
UsernameRegex = `^[a-zA-Z0-9]+$`
)
Variables ¶
This section is empty.
Functions ¶
func Users ¶
func Users() orm.QuerySeter
Types ¶
type User ¶
type User struct { Id int Username string `orm:"size(30);unique"` Password string `orm:"size(128)"` Email string `orm:"size(80);unique"` Avatar string `orm:"size(32)"` Salt string `orm:"size(6)"` Created time.Time `orm:"auto_now_add;type(datetime)"` Updated time.Time `orm:"auto_now;type(datetime)"` }
func (*User) SetPassword ¶
func (*User) ValidUsername ¶
func (*User) VerifyPassword ¶
Click to show internal directories.
Click to hide internal directories.