Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) Create(p domain.PostCreate) (domain.PostDatum, error)
- func (_m *Repository) Delete(id int) error
- func (_m *Repository) Exists(id int) bool
- func (_m *Repository) ExistsBySlug(slug string) bool
- func (_m *Repository) Find(id int, layout bool) (domain.PostDatum, error)
- func (_m *Repository) FindBySlug(slug string) (domain.PostDatum, error)
- func (_m *Repository) List(meta params.Params, layout bool, cfg posts.ListConfig) (domain.PostData, int, error)
- func (_m *Repository) Update(p domain.PostCreate) (domain.PostDatum, 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) Create ¶
func (_m *Repository) Create(p domain.PostCreate) (domain.PostDatum, error)
Create provides a mock function with given fields: p
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) ExistsBySlug ¶
func (_m *Repository) ExistsBySlug(slug string) bool
ExistsBySlug provides a mock function with given fields: slug
func (*Repository) FindBySlug ¶
func (_m *Repository) FindBySlug(slug string) (domain.PostDatum, error)
FindBySlug provides a mock function with given fields: slug
func (*Repository) List ¶
func (_m *Repository) List(meta params.Params, layout bool, cfg posts.ListConfig) (domain.PostData, int, error)
List provides a mock function with given fields: meta, layout, cfg
func (*Repository) Update ¶
func (_m *Repository) Update(p domain.PostCreate) (domain.PostDatum, error)
Update provides a mock function with given fields: p
Click to show internal directories.
Click to hide internal directories.