Documentation
¶
Index ¶
- type Repository
- func (_m *Repository) CheckSession(token string) error
- func (_m *Repository) Create(u domain.UserCreate) (domain.User, error)
- func (_m *Repository) Delete(id int) error
- func (_m *Repository) Exists(id int) bool
- func (_m *Repository) ExistsByEmail(email string) bool
- func (_m *Repository) Find(id int) (domain.User, error)
- func (_m *Repository) FindByEmail(email string) (domain.User, error)
- func (_m *Repository) FindByToken(token string) (domain.User, error)
- func (_m *Repository) List(meta params.Params, role string) (domain.Users, int, error)
- func (_m *Repository) Owner() domain.User
- func (_m *Repository) ResetPassword(id int, reset domain.UserPasswordReset) error
- func (_m *Repository) Update(u domain.User) (domain.User, error)
- func (_m *Repository) UpdateToken(token string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func (*Repository) CheckSession ¶
func (_m *Repository) CheckSession(token string) error
CheckSession provides a mock function with given fields: token
func (*Repository) Create ¶
func (_m *Repository) Create(u domain.UserCreate) (domain.User, error)
Create provides a mock function with given fields: u
func (*Repository) Delete ¶
func (_m *Repository) Delete(id int) error
Delete provides a mock function with given fields: id
func (*Repository) Exists ¶
func (_m *Repository) Exists(id int) bool
Exists provides a mock function with given fields: id
func (*Repository) ExistsByEmail ¶
func (_m *Repository) ExistsByEmail(email string) bool
ExistsByEmail provides a mock function with given fields: email
func (*Repository) Find ¶
func (_m *Repository) Find(id int) (domain.User, error)
Find provides a mock function with given fields: id
func (*Repository) FindByEmail ¶
func (_m *Repository) FindByEmail(email string) (domain.User, error)
FindByEmail provides a mock function with given fields: email
func (*Repository) FindByToken ¶
func (_m *Repository) FindByToken(token string) (domain.User, error)
FindByToken provides a mock function with given fields: token
func (*Repository) Owner ¶
func (_m *Repository) Owner() domain.User
Owner provides a mock function with given fields:
func (*Repository) ResetPassword ¶
func (_m *Repository) ResetPassword(id int, reset domain.UserPasswordReset) error
ResetPassword provides a mock function with given fields: id, reset
func (*Repository) UpdateToken ¶
func (_m *Repository) UpdateToken(token string) error
UpdateToken provides a mock function with given fields: token