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