Documentation ¶
Index ¶
- type Account
- type User
- func (u *User) Delete(c context.Context, usr *model.User) error
- func (u *User) FindByToken(c context.Context, token string) (*model.User, error)
- func (u *User) FindByUsername(c context.Context, username string) (*model.User, error)
- func (u *User) List(c context.Context, lq *model.ListQuery, p *model.Pagination) ([]model.User, error)
- func (u *User) Update(c context.Context, usr *model.User) (*model.User, error)
- func (u *User) UpdateLogin(c context.Context, usr *model.User) error
- func (u *User) View(c context.Context, id int) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { CreateFn func(context.Context, *model.User) error ChangePasswordFn func(context.Context, *model.User) error }
Account database mock
func (*Account) ChangePassword ¶
ChangePassword mock
type User ¶
type User struct { ViewFn func(context.Context, int) (*model.User, error) FindByUsernameFn func(context.Context, string) (*model.User, error) FindByTokenFn func(context.Context, string) (*model.User, error) UpdateLoginFn func(context.Context, *model.User) error ListFn func(context.Context, *model.ListQuery, *model.Pagination) ([]model.User, error) DeleteFn func(context.Context, *model.User) error UpdateFn func(context.Context, *model.User) (*model.User, error) }
User database mock
func (*User) FindByToken ¶
FindByToken mock
func (*User) FindByUsername ¶
FindByUsername mock
func (*User) List ¶
func (u *User) List(c context.Context, lq *model.ListQuery, p *model.Pagination) ([]model.User, error)
List mock
func (*User) UpdateLogin ¶
UpdateLogin mock
Click to show internal directories.
Click to hide internal directories.