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