Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) Create(redirect domain.Redirect) (domain.Redirect, error)
- func (_m *Repository) Delete(id int) error
- func (_m *Repository) Exists(id int) bool
- func (_m *Repository) ExistsByFrom(from string) bool
- func (_m *Repository) Find(id int) (domain.Redirect, error)
- func (_m *Repository) FindByFrom(from string) (domain.Redirect, error)
- func (_m *Repository) List(meta params.Params) (domain.Redirects, int, error)
- func (_m *Repository) Update(redirect domain.Redirect) (domain.Redirect, 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) 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) ExistsByFrom ¶
func (_m *Repository) ExistsByFrom(from string) bool
ExistsByFrom provides a mock function with given fields: from
func (*Repository) Find ¶
func (_m *Repository) Find(id int) (domain.Redirect, error)
Find provides a mock function with given fields: id
func (*Repository) FindByFrom ¶
func (_m *Repository) FindByFrom(from string) (domain.Redirect, error)
FindByFrom provides a mock function with given fields: from
Click to show internal directories.
Click to hide internal directories.