Documentation ¶
Index ¶
- type Handler
- func (_m *Handler) All(v interface{}) error
- func (_m *Handler) Bind(v interface{}, id string) error
- func (_m *Handler) Create(v interface{}) error
- func (_m *Handler) Delete(v interface{}, id string) error
- func (_m *Handler) FindBy(v interface{}, filters ...repositories.Filter) error
- func (_m *Handler) Paginate(paginator *paginations.Pagination, result interface{}) paginations.Metadata
- func (_m *Handler) Repository() repositories.Repository
- func (_m *Handler) Update(v interface{}, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler is an autogenerated mock type for the Handler type
func NewHandler ¶
func NewHandler(t mockConstructorTestingTNewHandler) *Handler
NewHandler creates a new instance of Handler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Handler) FindBy ¶ added in v4.1.4
func (_m *Handler) FindBy(v interface{}, filters ...repositories.Filter) error
FindBy provides a mock function with given fields: v, filters
func (*Handler) Paginate ¶
func (_m *Handler) Paginate(paginator *paginations.Pagination, result interface{}) paginations.Metadata
Paginate provides a mock function with given fields: paginator, result
func (*Handler) Repository ¶
func (_m *Handler) Repository() repositories.Repository
Repository provides a mock function with given fields:
Click to show internal directories.
Click to hide internal directories.