Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) BulkCreate(_a0 context.Context, _a1 []subscriptionreceiver.Relation) error
- func (_m *Repository) BulkDelete(ctx context.Context, flt subscriptionreceiver.DeleteFilter) error
- func (_m *Repository) BulkSoftDelete(ctx context.Context, flt subscriptionreceiver.DeleteFilter) error
- func (_m *Repository) BulkUpsert(_a0 context.Context, _a1 []subscriptionreceiver.Relation) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) List(_a0 context.Context, _a1 subscriptionreceiver.Filter) ([]subscriptionreceiver.Relation, error)
- func (_m *Repository) Update(_a0 context.Context, _a1 *subscriptionreceiver.Relation) error
- type Repository_BulkCreate_Call
- func (_c *Repository_BulkCreate_Call) Return(_a0 error) *Repository_BulkCreate_Call
- func (_c *Repository_BulkCreate_Call) Run(run func(_a0 context.Context, _a1 []subscriptionreceiver.Relation)) *Repository_BulkCreate_Call
- func (_c *Repository_BulkCreate_Call) RunAndReturn(run func(context.Context, []subscriptionreceiver.Relation) error) *Repository_BulkCreate_Call
- type Repository_BulkDelete_Call
- func (_c *Repository_BulkDelete_Call) Return(_a0 error) *Repository_BulkDelete_Call
- func (_c *Repository_BulkDelete_Call) Run(run func(ctx context.Context, flt subscriptionreceiver.DeleteFilter)) *Repository_BulkDelete_Call
- func (_c *Repository_BulkDelete_Call) RunAndReturn(run func(context.Context, subscriptionreceiver.DeleteFilter) error) *Repository_BulkDelete_Call
- type Repository_BulkSoftDelete_Call
- func (_c *Repository_BulkSoftDelete_Call) Return(_a0 error) *Repository_BulkSoftDelete_Call
- func (_c *Repository_BulkSoftDelete_Call) Run(run func(ctx context.Context, flt subscriptionreceiver.DeleteFilter)) *Repository_BulkSoftDelete_Call
- func (_c *Repository_BulkSoftDelete_Call) RunAndReturn(run func(context.Context, subscriptionreceiver.DeleteFilter) error) *Repository_BulkSoftDelete_Call
- type Repository_BulkUpsert_Call
- func (_c *Repository_BulkUpsert_Call) Return(_a0 error) *Repository_BulkUpsert_Call
- func (_c *Repository_BulkUpsert_Call) Run(run func(_a0 context.Context, _a1 []subscriptionreceiver.Relation)) *Repository_BulkUpsert_Call
- func (_c *Repository_BulkUpsert_Call) RunAndReturn(run func(context.Context, []subscriptionreceiver.Relation) error) *Repository_BulkUpsert_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) BulkCreate(_a0 interface{}, _a1 interface{}) *Repository_BulkCreate_Call
- func (_e *Repository_Expecter) BulkDelete(ctx interface{}, flt interface{}) *Repository_BulkDelete_Call
- func (_e *Repository_Expecter) BulkSoftDelete(ctx interface{}, flt interface{}) *Repository_BulkSoftDelete_Call
- func (_e *Repository_Expecter) BulkUpsert(_a0 interface{}, _a1 interface{}) *Repository_BulkUpsert_Call
- func (_e *Repository_Expecter) List(_a0 interface{}, _a1 interface{}) *Repository_List_Call
- func (_e *Repository_Expecter) Update(_a0 interface{}, _a1 interface{}) *Repository_Update_Call
- type Repository_List_Call
- func (_c *Repository_List_Call) Return(_a0 []subscriptionreceiver.Relation, _a1 error) *Repository_List_Call
- func (_c *Repository_List_Call) Run(run func(_a0 context.Context, _a1 subscriptionreceiver.Filter)) *Repository_List_Call
- func (_c *Repository_List_Call) RunAndReturn(...) *Repository_List_Call
- type Repository_Update_Call
- func (_c *Repository_Update_Call) Return(_a0 error) *Repository_Update_Call
- func (_c *Repository_Update_Call) Run(run func(_a0 context.Context, _a1 *subscriptionreceiver.Relation)) *Repository_Update_Call
- func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, *subscriptionreceiver.Relation) error) *Repository_Update_Call
- type Transactor
- type Transactor_Commit_Call
- type Transactor_Expecter
- type Transactor_Rollback_Call
- func (_c *Transactor_Rollback_Call) Return(_a0 error) *Transactor_Rollback_Call
- func (_c *Transactor_Rollback_Call) Run(run func(ctx context.Context, err error)) *Transactor_Rollback_Call
- func (_c *Transactor_Rollback_Call) RunAndReturn(run func(context.Context, error) error) *Transactor_Rollback_Call
- type Transactor_WithTransaction_Call
- func (_c *Transactor_WithTransaction_Call) Return(_a0 context.Context) *Transactor_WithTransaction_Call
- func (_c *Transactor_WithTransaction_Call) Run(run func(ctx context.Context)) *Transactor_WithTransaction_Call
- func (_c *Transactor_WithTransaction_Call) RunAndReturn(run func(context.Context) context.Context) *Transactor_WithTransaction_Call
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*Repository) BulkCreate ¶
func (_m *Repository) BulkCreate(_a0 context.Context, _a1 []subscriptionreceiver.Relation) error
BulkCreate provides a mock function with given fields: _a0, _a1
func (*Repository) BulkDelete ¶
func (_m *Repository) BulkDelete(ctx context.Context, flt subscriptionreceiver.DeleteFilter) error
BulkDelete provides a mock function with given fields: ctx, flt
func (*Repository) BulkSoftDelete ¶
func (_m *Repository) BulkSoftDelete(ctx context.Context, flt subscriptionreceiver.DeleteFilter) error
BulkSoftDelete provides a mock function with given fields: ctx, flt
func (*Repository) BulkUpsert ¶
func (_m *Repository) BulkUpsert(_a0 context.Context, _a1 []subscriptionreceiver.Relation) error
BulkUpsert provides a mock function with given fields: _a0, _a1
func (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) List ¶
func (_m *Repository) List(_a0 context.Context, _a1 subscriptionreceiver.Filter) ([]subscriptionreceiver.Relation, error)
List provides a mock function with given fields: _a0, _a1
func (*Repository) Update ¶ added in v0.7.6
func (_m *Repository) Update(_a0 context.Context, _a1 *subscriptionreceiver.Relation) error
Update provides a mock function with given fields: _a0, _a1
type Repository_BulkCreate_Call ¶
Repository_BulkCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkCreate'
func (*Repository_BulkCreate_Call) Return ¶
func (_c *Repository_BulkCreate_Call) Return(_a0 error) *Repository_BulkCreate_Call
func (*Repository_BulkCreate_Call) Run ¶
func (_c *Repository_BulkCreate_Call) Run(run func(_a0 context.Context, _a1 []subscriptionreceiver.Relation)) *Repository_BulkCreate_Call
func (*Repository_BulkCreate_Call) RunAndReturn ¶
func (_c *Repository_BulkCreate_Call) RunAndReturn(run func(context.Context, []subscriptionreceiver.Relation) error) *Repository_BulkCreate_Call
type Repository_BulkDelete_Call ¶
Repository_BulkDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkDelete'
func (*Repository_BulkDelete_Call) Return ¶
func (_c *Repository_BulkDelete_Call) Return(_a0 error) *Repository_BulkDelete_Call
func (*Repository_BulkDelete_Call) Run ¶
func (_c *Repository_BulkDelete_Call) Run(run func(ctx context.Context, flt subscriptionreceiver.DeleteFilter)) *Repository_BulkDelete_Call
func (*Repository_BulkDelete_Call) RunAndReturn ¶
func (_c *Repository_BulkDelete_Call) RunAndReturn(run func(context.Context, subscriptionreceiver.DeleteFilter) error) *Repository_BulkDelete_Call
type Repository_BulkSoftDelete_Call ¶
Repository_BulkSoftDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkSoftDelete'
func (*Repository_BulkSoftDelete_Call) Return ¶
func (_c *Repository_BulkSoftDelete_Call) Return(_a0 error) *Repository_BulkSoftDelete_Call
func (*Repository_BulkSoftDelete_Call) Run ¶
func (_c *Repository_BulkSoftDelete_Call) Run(run func(ctx context.Context, flt subscriptionreceiver.DeleteFilter)) *Repository_BulkSoftDelete_Call
func (*Repository_BulkSoftDelete_Call) RunAndReturn ¶
func (_c *Repository_BulkSoftDelete_Call) RunAndReturn(run func(context.Context, subscriptionreceiver.DeleteFilter) error) *Repository_BulkSoftDelete_Call
type Repository_BulkUpsert_Call ¶
Repository_BulkUpsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkUpsert'
func (*Repository_BulkUpsert_Call) Return ¶
func (_c *Repository_BulkUpsert_Call) Return(_a0 error) *Repository_BulkUpsert_Call
func (*Repository_BulkUpsert_Call) Run ¶
func (_c *Repository_BulkUpsert_Call) Run(run func(_a0 context.Context, _a1 []subscriptionreceiver.Relation)) *Repository_BulkUpsert_Call
func (*Repository_BulkUpsert_Call) RunAndReturn ¶
func (_c *Repository_BulkUpsert_Call) RunAndReturn(run func(context.Context, []subscriptionreceiver.Relation) error) *Repository_BulkUpsert_Call
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) BulkCreate ¶
func (_e *Repository_Expecter) BulkCreate(_a0 interface{}, _a1 interface{}) *Repository_BulkCreate_Call
BulkCreate is a helper method to define mock.On call
- _a0 context.Context
- _a1 []subscriptionreceiver.Relation
func (*Repository_Expecter) BulkDelete ¶
func (_e *Repository_Expecter) BulkDelete(ctx interface{}, flt interface{}) *Repository_BulkDelete_Call
BulkDelete is a helper method to define mock.On call
- ctx context.Context
- flt subscriptionreceiver.DeleteFilter
func (*Repository_Expecter) BulkSoftDelete ¶
func (_e *Repository_Expecter) BulkSoftDelete(ctx interface{}, flt interface{}) *Repository_BulkSoftDelete_Call
BulkSoftDelete is a helper method to define mock.On call
- ctx context.Context
- flt subscriptionreceiver.DeleteFilter
func (*Repository_Expecter) BulkUpsert ¶
func (_e *Repository_Expecter) BulkUpsert(_a0 interface{}, _a1 interface{}) *Repository_BulkUpsert_Call
BulkUpsert is a helper method to define mock.On call
- _a0 context.Context
- _a1 []subscriptionreceiver.Relation
func (*Repository_Expecter) List ¶
func (_e *Repository_Expecter) List(_a0 interface{}, _a1 interface{}) *Repository_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 subscriptionreceiver.Filter
func (*Repository_Expecter) Update ¶ added in v0.7.6
func (_e *Repository_Expecter) Update(_a0 interface{}, _a1 interface{}) *Repository_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *subscriptionreceiver.Relation
type Repository_List_Call ¶
Repository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Repository_List_Call) Return ¶
func (_c *Repository_List_Call) Return(_a0 []subscriptionreceiver.Relation, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶
func (_c *Repository_List_Call) Run(run func(_a0 context.Context, _a1 subscriptionreceiver.Filter)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, subscriptionreceiver.Filter) ([]subscriptionreceiver.Relation, error)) *Repository_List_Call
type Repository_Update_Call ¶ added in v0.7.6
Repository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Repository_Update_Call) Return ¶ added in v0.7.6
func (_c *Repository_Update_Call) Return(_a0 error) *Repository_Update_Call
func (*Repository_Update_Call) Run ¶ added in v0.7.6
func (_c *Repository_Update_Call) Run(run func(_a0 context.Context, _a1 *subscriptionreceiver.Relation)) *Repository_Update_Call
func (*Repository_Update_Call) RunAndReturn ¶ added in v0.7.6
func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, *subscriptionreceiver.Relation) error) *Repository_Update_Call
type Transactor ¶
Transactor is an autogenerated mock type for the Transactor type
func NewTransactor ¶
func NewTransactor(t interface { mock.TestingT Cleanup(func()) }) *Transactor
NewTransactor creates a new instance of Transactor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Transactor) Commit ¶
func (_m *Transactor) Commit(ctx context.Context) error
Commit provides a mock function with given fields: ctx
func (*Transactor) EXPECT ¶
func (_m *Transactor) EXPECT() *Transactor_Expecter
func (*Transactor) Rollback ¶
func (_m *Transactor) Rollback(ctx context.Context, err error) error
Rollback provides a mock function with given fields: ctx, err
func (*Transactor) WithTransaction ¶
func (_m *Transactor) WithTransaction(ctx context.Context) context.Context
WithTransaction provides a mock function with given fields: ctx
type Transactor_Commit_Call ¶
Transactor_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*Transactor_Commit_Call) Return ¶
func (_c *Transactor_Commit_Call) Return(_a0 error) *Transactor_Commit_Call
func (*Transactor_Commit_Call) Run ¶
func (_c *Transactor_Commit_Call) Run(run func(ctx context.Context)) *Transactor_Commit_Call
func (*Transactor_Commit_Call) RunAndReturn ¶
func (_c *Transactor_Commit_Call) RunAndReturn(run func(context.Context) error) *Transactor_Commit_Call
type Transactor_Expecter ¶
type Transactor_Expecter struct {
// contains filtered or unexported fields
}
func (*Transactor_Expecter) Commit ¶
func (_e *Transactor_Expecter) Commit(ctx interface{}) *Transactor_Commit_Call
Commit is a helper method to define mock.On call
- ctx context.Context
func (*Transactor_Expecter) Rollback ¶
func (_e *Transactor_Expecter) Rollback(ctx interface{}, err interface{}) *Transactor_Rollback_Call
Rollback is a helper method to define mock.On call
- ctx context.Context
- err error
func (*Transactor_Expecter) WithTransaction ¶
func (_e *Transactor_Expecter) WithTransaction(ctx interface{}) *Transactor_WithTransaction_Call
WithTransaction is a helper method to define mock.On call
- ctx context.Context
type Transactor_Rollback_Call ¶
Transactor_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'
func (*Transactor_Rollback_Call) Return ¶
func (_c *Transactor_Rollback_Call) Return(_a0 error) *Transactor_Rollback_Call
func (*Transactor_Rollback_Call) Run ¶
func (_c *Transactor_Rollback_Call) Run(run func(ctx context.Context, err error)) *Transactor_Rollback_Call
func (*Transactor_Rollback_Call) RunAndReturn ¶
func (_c *Transactor_Rollback_Call) RunAndReturn(run func(context.Context, error) error) *Transactor_Rollback_Call
type Transactor_WithTransaction_Call ¶
Transactor_WithTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTransaction'
func (*Transactor_WithTransaction_Call) Return ¶
func (_c *Transactor_WithTransaction_Call) Return(_a0 context.Context) *Transactor_WithTransaction_Call
func (*Transactor_WithTransaction_Call) Run ¶
func (_c *Transactor_WithTransaction_Call) Run(run func(ctx context.Context)) *Transactor_WithTransaction_Call
func (*Transactor_WithTransaction_Call) RunAndReturn ¶
func (_c *Transactor_WithTransaction_Call) RunAndReturn(run func(context.Context) context.Context) *Transactor_WithTransaction_Call