Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) Create(m domain.Media) (domain.Media, error)
- func (_m *Repository) Delete(id int) error
- func (_m *Repository) Exists(fileName string) bool
- func (_m *Repository) Find(id int) (domain.Media, error)
- func (_m *Repository) FindByName(name string) (domain.Media, error)
- func (_m *Repository) FindByURL(url string) (domain.Media, string, error)
- func (_m *Repository) List(meta params.Params) (domain.MediaItems, int, error)
- func (_m *Repository) Update(m domain.Media) (domain.Media, 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(fileName string) bool
Exists provides a mock function with given fields: fileName
func (*Repository) Find ¶
func (_m *Repository) Find(id int) (domain.Media, error)
Find provides a mock function with given fields: id
func (*Repository) FindByName ¶
func (_m *Repository) FindByName(name string) (domain.Media, error)
FindByName provides a mock function with given fields: name
func (*Repository) List ¶
func (_m *Repository) List(meta params.Params) (domain.MediaItems, int, error)
List provides a mock function with given fields: meta
Click to show internal directories.
Click to hide internal directories.