Documentation ¶
Index ¶
- type User
- func (u *User) Create(db orm.DB, usr takrib.User) (*takrib.User, error)
- func (u *User) Delete(db orm.DB, usr *takrib.User) error
- func (u *User) FindByToken(db orm.DB, token string) (*takrib.User, error)
- func (u *User) FindByUsername(db orm.DB, uname string) (*takrib.User, error)
- func (u *User) List(db orm.DB, lq *takrib.ListQuery, p *takrib.Pagination) ([]takrib.User, error)
- func (u *User) Update(db orm.DB, usr *takrib.User) error
- func (u *User) View(db orm.DB, id int) (*takrib.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, takrib.User) (*takrib.User, error) ViewFn func(orm.DB, int) (*takrib.User, error) FindByUsernameFn func(orm.DB, string) (*takrib.User, error) FindByTokenFn func(orm.DB, string) (*takrib.User, error) ListFn func(orm.DB, *takrib.ListQuery, *takrib.Pagination) ([]takrib.User, error) DeleteFn func(orm.DB, *takrib.User) error UpdateFn func(orm.DB, *takrib.User) error }
User database mock
func (*User) FindByToken ¶
FindByToken mock
func (*User) FindByUsername ¶
FindByUsername mock
Click to show internal directories.
Click to hide internal directories.