Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) Create(c domain.Category) (domain.Category, error)
- func (_m *Repository) Delete(id int) error
- func (_m *Repository) Exists(id int) bool
- func (_m *Repository) ExistsByName(name string) bool
- func (_m *Repository) ExistsBySlug(slug string) bool
- func (_m *Repository) Find(id int) (domain.Category, error)
- func (_m *Repository) FindByName(name string) (domain.Category, error)
- func (_m *Repository) FindByPost(id int) (domain.Category, error)
- func (_m *Repository) FindBySlug(slug string) (domain.Category, error)
- func (_m *Repository) FindParent(id int) (domain.Category, error)
- func (_m *Repository) List(meta params.Params, cfg categories.ListConfig) (domain.Categories, int, error)
- func (_m *Repository) Update(c domain.Category) (domain.Category, 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) ExistsByName ¶
func (_m *Repository) ExistsByName(name string) bool
ExistsByName provides a mock function with given fields: name
func (*Repository) ExistsBySlug ¶
func (_m *Repository) ExistsBySlug(slug string) bool
ExistsBySlug provides a mock function with given fields: slug
func (*Repository) Find ¶
func (_m *Repository) Find(id int) (domain.Category, error)
Find provides a mock function with given fields: id
func (*Repository) FindByName ¶
func (_m *Repository) FindByName(name string) (domain.Category, error)
FindByName provides a mock function with given fields: name
func (*Repository) FindByPost ¶
func (_m *Repository) FindByPost(id int) (domain.Category, error)
FindByPost provides a mock function with given fields: id
func (*Repository) FindBySlug ¶
func (_m *Repository) FindBySlug(slug string) (domain.Category, error)
FindBySlug provides a mock function with given fields: slug
func (*Repository) FindParent ¶
func (_m *Repository) FindParent(id int) (domain.Category, error)
FindParent provides a mock function with given fields: id
func (*Repository) List ¶
func (_m *Repository) List(meta params.Params, cfg categories.ListConfig) (domain.Categories, int, error)
List provides a mock function with given fields: meta, cfg