Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) All(v interface{}) error
- func (_m *Repository) Bind(v interface{}, id string) error
- func (_m *Repository) Create(v interface{}) error
- func (_m *Repository) Delete(v interface{}, id string) error
- func (_m *Repository) FindBy(v interface{}, filters ...repositories.Filter) error
- func (_m *Repository) Model(model string)
- func (_m *Repository) Transaction(_a0 repositories.Transaction) error
- func (_m *Repository) Update(v interface{}) error
- type Transaction
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 NewRepository ¶
func NewRepository(t mockConstructorTestingTNewRepository) *Repository
NewRepository creates a new instance of Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Repository) All ¶
func (_m *Repository) All(v interface{}) error
All provides a mock function with given fields: v
func (*Repository) Bind ¶
func (_m *Repository) Bind(v interface{}, id string) error
Bind provides a mock function with given fields: v, id
func (*Repository) Create ¶
func (_m *Repository) Create(v interface{}) error
Create provides a mock function with given fields: v
func (*Repository) Delete ¶
func (_m *Repository) Delete(v interface{}, id string) error
Delete provides a mock function with given fields: v, id
func (*Repository) FindBy ¶
func (_m *Repository) FindBy(v interface{}, filters ...repositories.Filter) error
FindBy provides a mock function with given fields: v, filters
func (*Repository) Model ¶
func (_m *Repository) Model(model string)
Model provides a mock function with given fields: model
func (*Repository) Transaction ¶
func (_m *Repository) Transaction(_a0 repositories.Transaction) error
Transaction provides a mock function with given fields: _a0
func (*Repository) Update ¶
func (_m *Repository) Update(v interface{}) error
Update provides a mock function with given fields: v
type Transaction ¶
Transaction is an autogenerated mock type for the Transaction type
func NewTransaction ¶
func NewTransaction(t mockConstructorTestingTNewTransaction) *Transaction
NewTransaction creates a new instance of Transaction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Transaction) Execute ¶
func (_m *Transaction) Execute(_a0 repositories.Repository) error
Execute provides a mock function with given fields: _a0