Versions in this module Expand all Collapse all v0 v0.2.0 Mar 19, 2019 Changes in this version + func Connect(user, password, dbname string) + func Init() error + func Initialized() bool + type MagicLink struct + ID int64 + Magic string + UserID int64 + func (ml *MagicLink) CreateMagicLink() res.ServerError + func (ml *MagicLink) DeleteMagicLinkFromMagicString() res.ServerError + func (ml *MagicLink) GetMagicLinkFromMagicString() res.ServerError + func (ml *MagicLink) ScanAll(row *sql.Row) error + type Scope struct + Description *string + ID int64 + Name *string + func CreateScope(name, description string) (res.ServerError, *Scope) + type User struct + Admin *bool + Banned *bool + Country *string + DateCreated *time.Time + DateDeleted *time.Time + Deleted *bool + Email *string + ID int64 + LastIP *string + LastLogin *time.Time + LastToken *string + Locale *string + Name *string + Password *string + UUID *string + Verified *bool + func (u *User) CleanDataRead(auth authentication.Level) + func (u *User) CreateToken() (string, error) + func (u *User) CreateUser() res.ServerError + func (u *User) DeleteUser() res.ServerError + func (u *User) GetUser(auth authentication.Level) res.ServerError + func (u *User) GetUserByEmail(auth authentication.Level) res.ServerError + func (u *User) GetUserByName(auth authentication.Level) res.ServerError + func (u *User) ScanAll(row *sql.Row) error + func (u *User) ScanAlls(rows *sql.Rows) error + func (u *User) ToString() string + func (u *User) UnflagDeletion() res.ServerError + func (u *User) UpdateUser(auth authentication.Level) res.ServerError + type UserList struct + StartIndex int + TotalItems int + Users []User + func GetUsers(start, count int, auth authentication.Level) (*UserList, res.ServerError)