Documentation ¶
Index ¶
- type User
- func (u *User) Create(db orm.DB, usr twisk.User) (*twisk.User, error)
- func (u *User) Delete(db orm.DB, usr *twisk.User) error
- func (u *User) FindByAuth(db orm.DB, auth string) (*twisk.User, error)
- func (u *User) FindByToken(db orm.DB, auth string) (*twisk.User, error)
- func (u *User) List(db orm.DB, q string, limit, page int) ([]twisk.User, error)
- func (u *User) Update(db orm.DB, usr *twisk.User) (*twisk.User, error)
- func (u *User) UpdateLastLogin(db orm.DB, usr *twisk.User) error
- func (u *User) View(db orm.DB, id int64) (*twisk.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { CreateFn func(orm.DB, twisk.User) (*twisk.User, error) ViewFn func(orm.DB, int64) (*twisk.User, error) ListFn func(orm.DB, string, int, int) ([]twisk.User, error) DeleteFn func(orm.DB, *twisk.User) error UpdateFn func(orm.DB, *twisk.User) (*twisk.User, error) FindByAuthFn func(orm.DB, string) (*twisk.User, error) FindByTokenFn func(orm.DB, string) (*twisk.User, error) UpdateLastLoginFn func(orm.DB, *twisk.User) error }
User database mock
func (*User) FindByAuth ¶
FindByAuth mock
func (*User) FindByToken ¶
FindByToken mock
func (*User) UpdateLastLogin ¶
UpdateLastLogin mock
Click to show internal directories.
Click to hide internal directories.