Documentation ¶
Index ¶
- type LogService
- type LogService_Expecter
- type LogService_ListSubscriptionIDsBySilenceID_Call
- func (_c *LogService_ListSubscriptionIDsBySilenceID_Call) Return(_a0 []int64, _a1 error) *LogService_ListSubscriptionIDsBySilenceID_Call
- func (_c *LogService_ListSubscriptionIDsBySilenceID_Call) Run(run func(ctx context.Context, silenceID string)) *LogService_ListSubscriptionIDsBySilenceID_Call
- func (_c *LogService_ListSubscriptionIDsBySilenceID_Call) RunAndReturn(run func(context.Context, string) ([]int64, error)) *LogService_ListSubscriptionIDsBySilenceID_Call
- type NamespaceService
- func (_m *NamespaceService) Create(_a0 context.Context, _a1 *namespace.Namespace) error
- func (_m *NamespaceService) Delete(_a0 context.Context, _a1 uint64) error
- func (_m *NamespaceService) EXPECT() *NamespaceService_Expecter
- func (_m *NamespaceService) Get(_a0 context.Context, _a1 uint64) (*namespace.Namespace, error)
- func (_m *NamespaceService) List(_a0 context.Context) ([]namespace.Namespace, error)
- func (_m *NamespaceService) Update(_a0 context.Context, _a1 *namespace.Namespace) error
- type NamespaceService_Create_Call
- func (_c *NamespaceService_Create_Call) Return(_a0 error) *NamespaceService_Create_Call
- func (_c *NamespaceService_Create_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceService_Create_Call
- func (_c *NamespaceService_Create_Call) RunAndReturn(run func(context.Context, *namespace.Namespace) error) *NamespaceService_Create_Call
- type NamespaceService_Delete_Call
- func (_c *NamespaceService_Delete_Call) Return(_a0 error) *NamespaceService_Delete_Call
- func (_c *NamespaceService_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *NamespaceService_Delete_Call
- func (_c *NamespaceService_Delete_Call) RunAndReturn(run func(context.Context, uint64) error) *NamespaceService_Delete_Call
- type NamespaceService_Expecter
- func (_e *NamespaceService_Expecter) Create(_a0 interface{}, _a1 interface{}) *NamespaceService_Create_Call
- func (_e *NamespaceService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *NamespaceService_Delete_Call
- func (_e *NamespaceService_Expecter) Get(_a0 interface{}, _a1 interface{}) *NamespaceService_Get_Call
- func (_e *NamespaceService_Expecter) List(_a0 interface{}) *NamespaceService_List_Call
- func (_e *NamespaceService_Expecter) Update(_a0 interface{}, _a1 interface{}) *NamespaceService_Update_Call
- type NamespaceService_Get_Call
- func (_c *NamespaceService_Get_Call) Return(_a0 *namespace.Namespace, _a1 error) *NamespaceService_Get_Call
- func (_c *NamespaceService_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *NamespaceService_Get_Call
- func (_c *NamespaceService_Get_Call) RunAndReturn(run func(context.Context, uint64) (*namespace.Namespace, error)) *NamespaceService_Get_Call
- type NamespaceService_List_Call
- func (_c *NamespaceService_List_Call) Return(_a0 []namespace.Namespace, _a1 error) *NamespaceService_List_Call
- func (_c *NamespaceService_List_Call) Run(run func(_a0 context.Context)) *NamespaceService_List_Call
- func (_c *NamespaceService_List_Call) RunAndReturn(run func(context.Context) ([]namespace.Namespace, error)) *NamespaceService_List_Call
- type NamespaceService_Update_Call
- func (_c *NamespaceService_Update_Call) Return(_a0 error) *NamespaceService_Update_Call
- func (_c *NamespaceService_Update_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceService_Update_Call
- func (_c *NamespaceService_Update_Call) RunAndReturn(run func(context.Context, *namespace.Namespace) error) *NamespaceService_Update_Call
- type ReceiverService
- func (_m *ReceiverService) EXPECT() *ReceiverService_Expecter
- func (_m *ReceiverService) List(ctx context.Context, flt receiver.Filter) ([]receiver.Receiver, error)
- func (_m *ReceiverService) PostHookDBTransformConfigs(ctx context.Context, receiverType string, configs map[string]interface{}) (map[string]interface{}, error)
- type ReceiverService_Expecter
- type ReceiverService_List_Call
- func (_c *ReceiverService_List_Call) Return(_a0 []receiver.Receiver, _a1 error) *ReceiverService_List_Call
- func (_c *ReceiverService_List_Call) Run(run func(ctx context.Context, flt receiver.Filter)) *ReceiverService_List_Call
- func (_c *ReceiverService_List_Call) RunAndReturn(run func(context.Context, receiver.Filter) ([]receiver.Receiver, error)) *ReceiverService_List_Call
- type ReceiverService_PostHookDBTransformConfigs_Call
- func (_c *ReceiverService_PostHookDBTransformConfigs_Call) Return(_a0 map[string]interface{}, _a1 error) *ReceiverService_PostHookDBTransformConfigs_Call
- func (_c *ReceiverService_PostHookDBTransformConfigs_Call) Run(...) *ReceiverService_PostHookDBTransformConfigs_Call
- func (_c *ReceiverService_PostHookDBTransformConfigs_Call) RunAndReturn(...) *ReceiverService_PostHookDBTransformConfigs_Call
- type Repository
- func (_m *Repository) Commit(ctx context.Context) error
- func (_m *Repository) Create(_a0 context.Context, _a1 *subscription.Subscription) error
- func (_m *Repository) Delete(_a0 context.Context, _a1 uint64) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) Get(_a0 context.Context, _a1 uint64) (*subscription.Subscription, error)
- func (_m *Repository) List(_a0 context.Context, _a1 subscription.Filter) ([]subscription.Subscription, error)
- func (_m *Repository) MatchLabelsFetchReceivers(ctx context.Context, flt subscription.Filter) ([]subscription.ReceiverView, error)
- func (_m *Repository) Rollback(ctx context.Context, err error) error
- func (_m *Repository) Update(_a0 context.Context, _a1 *subscription.Subscription) error
- func (_m *Repository) WithTransaction(ctx context.Context) context.Context
- type Repository_Commit_Call
- type Repository_Create_Call
- func (_c *Repository_Create_Call) Return(_a0 error) *Repository_Create_Call
- func (_c *Repository_Create_Call) Run(run func(_a0 context.Context, _a1 *subscription.Subscription)) *Repository_Create_Call
- func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, *subscription.Subscription) error) *Repository_Create_Call
- type Repository_Delete_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) Commit(ctx interface{}) *Repository_Commit_Call
- func (_e *Repository_Expecter) Create(_a0 interface{}, _a1 interface{}) *Repository_Create_Call
- func (_e *Repository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *Repository_Delete_Call
- func (_e *Repository_Expecter) Get(_a0 interface{}, _a1 interface{}) *Repository_Get_Call
- func (_e *Repository_Expecter) List(_a0 interface{}, _a1 interface{}) *Repository_List_Call
- func (_e *Repository_Expecter) MatchLabelsFetchReceivers(ctx interface{}, flt interface{}) *Repository_MatchLabelsFetchReceivers_Call
- func (_e *Repository_Expecter) Rollback(ctx interface{}, err interface{}) *Repository_Rollback_Call
- func (_e *Repository_Expecter) Update(_a0 interface{}, _a1 interface{}) *Repository_Update_Call
- func (_e *Repository_Expecter) WithTransaction(ctx interface{}) *Repository_WithTransaction_Call
- type Repository_Get_Call
- func (_c *Repository_Get_Call) Return(_a0 *subscription.Subscription, _a1 error) *Repository_Get_Call
- func (_c *Repository_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *Repository_Get_Call
- func (_c *Repository_Get_Call) RunAndReturn(run func(context.Context, uint64) (*subscription.Subscription, error)) *Repository_Get_Call
- type Repository_List_Call
- type Repository_MatchLabelsFetchReceivers_Call
- func (_c *Repository_MatchLabelsFetchReceivers_Call) Return(_a0 []subscription.ReceiverView, _a1 error) *Repository_MatchLabelsFetchReceivers_Call
- func (_c *Repository_MatchLabelsFetchReceivers_Call) Run(run func(ctx context.Context, flt subscription.Filter)) *Repository_MatchLabelsFetchReceivers_Call
- func (_c *Repository_MatchLabelsFetchReceivers_Call) RunAndReturn(...) *Repository_MatchLabelsFetchReceivers_Call
- type Repository_Rollback_Call
- func (_c *Repository_Rollback_Call) Return(_a0 error) *Repository_Rollback_Call
- func (_c *Repository_Rollback_Call) Run(run func(ctx context.Context, err error)) *Repository_Rollback_Call
- func (_c *Repository_Rollback_Call) RunAndReturn(run func(context.Context, error) error) *Repository_Rollback_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 *subscription.Subscription)) *Repository_Update_Call
- func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, *subscription.Subscription) error) *Repository_Update_Call
- type Repository_WithTransaction_Call
- func (_c *Repository_WithTransaction_Call) Return(_a0 context.Context) *Repository_WithTransaction_Call
- func (_c *Repository_WithTransaction_Call) Run(run func(ctx context.Context)) *Repository_WithTransaction_Call
- func (_c *Repository_WithTransaction_Call) RunAndReturn(run func(context.Context) context.Context) *Repository_WithTransaction_Call
- type SubscriptionReceiverService
- func (_m *SubscriptionReceiverService) BulkCreate(_a0 context.Context, _a1 []subscriptionreceiver.Relation) error
- func (_m *SubscriptionReceiverService) BulkDelete(_a0 context.Context, _a1 subscriptionreceiver.DeleteFilter) error
- func (_m *SubscriptionReceiverService) BulkSoftDelete(_a0 context.Context, _a1 subscriptionreceiver.DeleteFilter) error
- func (_m *SubscriptionReceiverService) BulkUpsert(_a0 context.Context, _a1 []subscriptionreceiver.Relation) error
- func (_m *SubscriptionReceiverService) EXPECT() *SubscriptionReceiverService_Expecter
- func (_m *SubscriptionReceiverService) List(_a0 context.Context, _a1 subscriptionreceiver.Filter) ([]subscriptionreceiver.Relation, error)
- type SubscriptionReceiverService_BulkCreate_Call
- func (_c *SubscriptionReceiverService_BulkCreate_Call) Return(_a0 error) *SubscriptionReceiverService_BulkCreate_Call
- func (_c *SubscriptionReceiverService_BulkCreate_Call) Run(run func(_a0 context.Context, _a1 []subscriptionreceiver.Relation)) *SubscriptionReceiverService_BulkCreate_Call
- func (_c *SubscriptionReceiverService_BulkCreate_Call) RunAndReturn(run func(context.Context, []subscriptionreceiver.Relation) error) *SubscriptionReceiverService_BulkCreate_Call
- type SubscriptionReceiverService_BulkDelete_Call
- func (_c *SubscriptionReceiverService_BulkDelete_Call) Return(_a0 error) *SubscriptionReceiverService_BulkDelete_Call
- func (_c *SubscriptionReceiverService_BulkDelete_Call) Run(run func(_a0 context.Context, _a1 subscriptionreceiver.DeleteFilter)) *SubscriptionReceiverService_BulkDelete_Call
- func (_c *SubscriptionReceiverService_BulkDelete_Call) RunAndReturn(run func(context.Context, subscriptionreceiver.DeleteFilter) error) *SubscriptionReceiverService_BulkDelete_Call
- type SubscriptionReceiverService_BulkSoftDelete_Call
- func (_c *SubscriptionReceiverService_BulkSoftDelete_Call) Return(_a0 error) *SubscriptionReceiverService_BulkSoftDelete_Call
- func (_c *SubscriptionReceiverService_BulkSoftDelete_Call) Run(run func(_a0 context.Context, _a1 subscriptionreceiver.DeleteFilter)) *SubscriptionReceiverService_BulkSoftDelete_Call
- func (_c *SubscriptionReceiverService_BulkSoftDelete_Call) RunAndReturn(run func(context.Context, subscriptionreceiver.DeleteFilter) error) *SubscriptionReceiverService_BulkSoftDelete_Call
- type SubscriptionReceiverService_BulkUpsert_Call
- func (_c *SubscriptionReceiverService_BulkUpsert_Call) Return(_a0 error) *SubscriptionReceiverService_BulkUpsert_Call
- func (_c *SubscriptionReceiverService_BulkUpsert_Call) Run(run func(_a0 context.Context, _a1 []subscriptionreceiver.Relation)) *SubscriptionReceiverService_BulkUpsert_Call
- func (_c *SubscriptionReceiverService_BulkUpsert_Call) RunAndReturn(run func(context.Context, []subscriptionreceiver.Relation) error) *SubscriptionReceiverService_BulkUpsert_Call
- type SubscriptionReceiverService_Expecter
- func (_e *SubscriptionReceiverService_Expecter) BulkCreate(_a0 interface{}, _a1 interface{}) *SubscriptionReceiverService_BulkCreate_Call
- func (_e *SubscriptionReceiverService_Expecter) BulkDelete(_a0 interface{}, _a1 interface{}) *SubscriptionReceiverService_BulkDelete_Call
- func (_e *SubscriptionReceiverService_Expecter) BulkSoftDelete(_a0 interface{}, _a1 interface{}) *SubscriptionReceiverService_BulkSoftDelete_Call
- func (_e *SubscriptionReceiverService_Expecter) BulkUpsert(_a0 interface{}, _a1 interface{}) *SubscriptionReceiverService_BulkUpsert_Call
- func (_e *SubscriptionReceiverService_Expecter) List(_a0 interface{}, _a1 interface{}) *SubscriptionReceiverService_List_Call
- type SubscriptionReceiverService_List_Call
- func (_c *SubscriptionReceiverService_List_Call) Return(_a0 []subscriptionreceiver.Relation, _a1 error) *SubscriptionReceiverService_List_Call
- func (_c *SubscriptionReceiverService_List_Call) Run(run func(_a0 context.Context, _a1 subscriptionreceiver.Filter)) *SubscriptionReceiverService_List_Call
- func (_c *SubscriptionReceiverService_List_Call) RunAndReturn(...) *SubscriptionReceiverService_List_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 LogService ¶
LogService is an autogenerated mock type for the LogService type
func NewLogService ¶
func NewLogService(t interface { mock.TestingT Cleanup(func()) }) *LogService
NewLogService creates a new instance of LogService. 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 (*LogService) EXPECT ¶
func (_m *LogService) EXPECT() *LogService_Expecter
func (*LogService) ListSubscriptionIDsBySilenceID ¶
func (_m *LogService) ListSubscriptionIDsBySilenceID(ctx context.Context, silenceID string) ([]int64, error)
ListSubscriptionIDsBySilenceID provides a mock function with given fields: ctx, silenceID
type LogService_Expecter ¶
type LogService_Expecter struct {
// contains filtered or unexported fields
}
func (*LogService_Expecter) ListSubscriptionIDsBySilenceID ¶
func (_e *LogService_Expecter) ListSubscriptionIDsBySilenceID(ctx interface{}, silenceID interface{}) *LogService_ListSubscriptionIDsBySilenceID_Call
ListSubscriptionIDsBySilenceID is a helper method to define mock.On call
- ctx context.Context
- silenceID string
type LogService_ListSubscriptionIDsBySilenceID_Call ¶
LogService_ListSubscriptionIDsBySilenceID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSubscriptionIDsBySilenceID'
func (*LogService_ListSubscriptionIDsBySilenceID_Call) Return ¶
func (_c *LogService_ListSubscriptionIDsBySilenceID_Call) Return(_a0 []int64, _a1 error) *LogService_ListSubscriptionIDsBySilenceID_Call
func (*LogService_ListSubscriptionIDsBySilenceID_Call) Run ¶
func (_c *LogService_ListSubscriptionIDsBySilenceID_Call) Run(run func(ctx context.Context, silenceID string)) *LogService_ListSubscriptionIDsBySilenceID_Call
func (*LogService_ListSubscriptionIDsBySilenceID_Call) RunAndReturn ¶ added in v0.6.1
func (_c *LogService_ListSubscriptionIDsBySilenceID_Call) RunAndReturn(run func(context.Context, string) ([]int64, error)) *LogService_ListSubscriptionIDsBySilenceID_Call
type NamespaceService ¶
NamespaceService is an autogenerated mock type for the NamespaceService type
func NewNamespaceService ¶
func NewNamespaceService(t interface { mock.TestingT Cleanup(func()) }) *NamespaceService
NewNamespaceService creates a new instance of NamespaceService. 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 (*NamespaceService) Delete ¶
func (_m *NamespaceService) Delete(_a0 context.Context, _a1 uint64) error
Delete provides a mock function with given fields: _a0, _a1
func (*NamespaceService) EXPECT ¶
func (_m *NamespaceService) EXPECT() *NamespaceService_Expecter
type NamespaceService_Create_Call ¶
NamespaceService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*NamespaceService_Create_Call) Return ¶
func (_c *NamespaceService_Create_Call) Return(_a0 error) *NamespaceService_Create_Call
func (*NamespaceService_Create_Call) Run ¶
func (_c *NamespaceService_Create_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceService_Create_Call
func (*NamespaceService_Create_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceService_Create_Call) RunAndReturn(run func(context.Context, *namespace.Namespace) error) *NamespaceService_Create_Call
type NamespaceService_Delete_Call ¶
NamespaceService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*NamespaceService_Delete_Call) Return ¶
func (_c *NamespaceService_Delete_Call) Return(_a0 error) *NamespaceService_Delete_Call
func (*NamespaceService_Delete_Call) Run ¶
func (_c *NamespaceService_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *NamespaceService_Delete_Call
func (*NamespaceService_Delete_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceService_Delete_Call) RunAndReturn(run func(context.Context, uint64) error) *NamespaceService_Delete_Call
type NamespaceService_Expecter ¶
type NamespaceService_Expecter struct {
// contains filtered or unexported fields
}
func (*NamespaceService_Expecter) Create ¶
func (_e *NamespaceService_Expecter) Create(_a0 interface{}, _a1 interface{}) *NamespaceService_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *namespace.Namespace
func (*NamespaceService_Expecter) Delete ¶
func (_e *NamespaceService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *NamespaceService_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*NamespaceService_Expecter) Get ¶
func (_e *NamespaceService_Expecter) Get(_a0 interface{}, _a1 interface{}) *NamespaceService_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*NamespaceService_Expecter) List ¶
func (_e *NamespaceService_Expecter) List(_a0 interface{}) *NamespaceService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
func (*NamespaceService_Expecter) Update ¶
func (_e *NamespaceService_Expecter) Update(_a0 interface{}, _a1 interface{}) *NamespaceService_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *namespace.Namespace
type NamespaceService_Get_Call ¶
NamespaceService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*NamespaceService_Get_Call) Return ¶
func (_c *NamespaceService_Get_Call) Return(_a0 *namespace.Namespace, _a1 error) *NamespaceService_Get_Call
func (*NamespaceService_Get_Call) Run ¶
func (_c *NamespaceService_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *NamespaceService_Get_Call
func (*NamespaceService_Get_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceService_Get_Call) RunAndReturn(run func(context.Context, uint64) (*namespace.Namespace, error)) *NamespaceService_Get_Call
type NamespaceService_List_Call ¶
NamespaceService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*NamespaceService_List_Call) Return ¶
func (_c *NamespaceService_List_Call) Return(_a0 []namespace.Namespace, _a1 error) *NamespaceService_List_Call
func (*NamespaceService_List_Call) Run ¶
func (_c *NamespaceService_List_Call) Run(run func(_a0 context.Context)) *NamespaceService_List_Call
func (*NamespaceService_List_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceService_List_Call) RunAndReturn(run func(context.Context) ([]namespace.Namespace, error)) *NamespaceService_List_Call
type NamespaceService_Update_Call ¶
NamespaceService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*NamespaceService_Update_Call) Return ¶
func (_c *NamespaceService_Update_Call) Return(_a0 error) *NamespaceService_Update_Call
func (*NamespaceService_Update_Call) Run ¶
func (_c *NamespaceService_Update_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceService_Update_Call
func (*NamespaceService_Update_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NamespaceService_Update_Call) RunAndReturn(run func(context.Context, *namespace.Namespace) error) *NamespaceService_Update_Call
type ReceiverService ¶
ReceiverService is an autogenerated mock type for the ReceiverService type
func NewReceiverService ¶
func NewReceiverService(t interface { mock.TestingT Cleanup(func()) }) *ReceiverService
NewReceiverService creates a new instance of ReceiverService. 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 (*ReceiverService) EXPECT ¶
func (_m *ReceiverService) EXPECT() *ReceiverService_Expecter
func (*ReceiverService) List ¶
func (_m *ReceiverService) List(ctx context.Context, flt receiver.Filter) ([]receiver.Receiver, error)
List provides a mock function with given fields: ctx, flt
func (*ReceiverService) PostHookDBTransformConfigs ¶ added in v0.7.5
func (_m *ReceiverService) PostHookDBTransformConfigs(ctx context.Context, receiverType string, configs map[string]interface{}) (map[string]interface{}, error)
PostHookDBTransformConfigs provides a mock function with given fields: ctx, receiverType, configs
type ReceiverService_Expecter ¶
type ReceiverService_Expecter struct {
// contains filtered or unexported fields
}
func (*ReceiverService_Expecter) List ¶
func (_e *ReceiverService_Expecter) List(ctx interface{}, flt interface{}) *ReceiverService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt receiver.Filter
func (*ReceiverService_Expecter) PostHookDBTransformConfigs ¶ added in v0.7.5
func (_e *ReceiverService_Expecter) PostHookDBTransformConfigs(ctx interface{}, receiverType interface{}, configs interface{}) *ReceiverService_PostHookDBTransformConfigs_Call
PostHookDBTransformConfigs is a helper method to define mock.On call
- ctx context.Context
- receiverType string
- configs map[string]interface{}
type ReceiverService_List_Call ¶
ReceiverService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ReceiverService_List_Call) Return ¶
func (_c *ReceiverService_List_Call) Return(_a0 []receiver.Receiver, _a1 error) *ReceiverService_List_Call
func (*ReceiverService_List_Call) Run ¶
func (_c *ReceiverService_List_Call) Run(run func(ctx context.Context, flt receiver.Filter)) *ReceiverService_List_Call
func (*ReceiverService_List_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ReceiverService_List_Call) RunAndReturn(run func(context.Context, receiver.Filter) ([]receiver.Receiver, error)) *ReceiverService_List_Call
type ReceiverService_PostHookDBTransformConfigs_Call ¶ added in v0.7.5
ReceiverService_PostHookDBTransformConfigs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostHookDBTransformConfigs'
func (*ReceiverService_PostHookDBTransformConfigs_Call) Return ¶ added in v0.7.5
func (_c *ReceiverService_PostHookDBTransformConfigs_Call) Return(_a0 map[string]interface{}, _a1 error) *ReceiverService_PostHookDBTransformConfigs_Call
func (*ReceiverService_PostHookDBTransformConfigs_Call) Run ¶ added in v0.7.5
func (_c *ReceiverService_PostHookDBTransformConfigs_Call) Run(run func(ctx context.Context, receiverType string, configs map[string]interface{})) *ReceiverService_PostHookDBTransformConfigs_Call
func (*ReceiverService_PostHookDBTransformConfigs_Call) RunAndReturn ¶ added in v0.7.5
func (_c *ReceiverService_PostHookDBTransformConfigs_Call) RunAndReturn(run func(context.Context, string, map[string]interface{}) (map[string]interface{}, error)) *ReceiverService_PostHookDBTransformConfigs_Call
type Repository ¶ added in v0.6.12
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶ added in v0.6.12
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) Commit ¶ added in v0.7.5
func (_m *Repository) Commit(ctx context.Context) error
Commit provides a mock function with given fields: ctx
func (*Repository) Create ¶ added in v0.6.12
func (_m *Repository) Create(_a0 context.Context, _a1 *subscription.Subscription) error
Create provides a mock function with given fields: _a0, _a1
func (*Repository) Delete ¶ added in v0.6.12
func (_m *Repository) Delete(_a0 context.Context, _a1 uint64) error
Delete provides a mock function with given fields: _a0, _a1
func (*Repository) EXPECT ¶ added in v0.6.12
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) Get ¶ added in v0.6.12
func (_m *Repository) Get(_a0 context.Context, _a1 uint64) (*subscription.Subscription, error)
Get provides a mock function with given fields: _a0, _a1
func (*Repository) List ¶ added in v0.6.12
func (_m *Repository) List(_a0 context.Context, _a1 subscription.Filter) ([]subscription.Subscription, error)
List provides a mock function with given fields: _a0, _a1
func (*Repository) MatchLabelsFetchReceivers ¶ added in v0.7.5
func (_m *Repository) MatchLabelsFetchReceivers(ctx context.Context, flt subscription.Filter) ([]subscription.ReceiverView, error)
MatchLabelsFetchReceivers provides a mock function with given fields: ctx, flt
func (*Repository) Rollback ¶ added in v0.7.5
func (_m *Repository) Rollback(ctx context.Context, err error) error
Rollback provides a mock function with given fields: ctx, err
func (*Repository) Update ¶ added in v0.6.12
func (_m *Repository) Update(_a0 context.Context, _a1 *subscription.Subscription) error
Update provides a mock function with given fields: _a0, _a1
func (*Repository) WithTransaction ¶ added in v0.7.5
func (_m *Repository) WithTransaction(ctx context.Context) context.Context
WithTransaction provides a mock function with given fields: ctx
type Repository_Commit_Call ¶ added in v0.7.5
Repository_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*Repository_Commit_Call) Return ¶ added in v0.7.5
func (_c *Repository_Commit_Call) Return(_a0 error) *Repository_Commit_Call
func (*Repository_Commit_Call) Run ¶ added in v0.7.5
func (_c *Repository_Commit_Call) Run(run func(ctx context.Context)) *Repository_Commit_Call
func (*Repository_Commit_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_Commit_Call) RunAndReturn(run func(context.Context) error) *Repository_Commit_Call
type Repository_Create_Call ¶ added in v0.6.12
Repository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*Repository_Create_Call) Return ¶ added in v0.6.12
func (_c *Repository_Create_Call) Return(_a0 error) *Repository_Create_Call
func (*Repository_Create_Call) Run ¶ added in v0.6.12
func (_c *Repository_Create_Call) Run(run func(_a0 context.Context, _a1 *subscription.Subscription)) *Repository_Create_Call
func (*Repository_Create_Call) RunAndReturn ¶ added in v0.6.12
func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, *subscription.Subscription) error) *Repository_Create_Call
type Repository_Delete_Call ¶ added in v0.6.12
Repository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Repository_Delete_Call) Return ¶ added in v0.6.12
func (_c *Repository_Delete_Call) Return(_a0 error) *Repository_Delete_Call
func (*Repository_Delete_Call) Run ¶ added in v0.6.12
func (_c *Repository_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *Repository_Delete_Call
func (*Repository_Delete_Call) RunAndReturn ¶ added in v0.6.12
func (_c *Repository_Delete_Call) RunAndReturn(run func(context.Context, uint64) error) *Repository_Delete_Call
type Repository_Expecter ¶ added in v0.6.12
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) Commit ¶ added in v0.7.5
func (_e *Repository_Expecter) Commit(ctx interface{}) *Repository_Commit_Call
Commit is a helper method to define mock.On call
- ctx context.Context
func (*Repository_Expecter) Create ¶ added in v0.6.12
func (_e *Repository_Expecter) Create(_a0 interface{}, _a1 interface{}) *Repository_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *subscription.Subscription
func (*Repository_Expecter) Delete ¶ added in v0.6.12
func (_e *Repository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *Repository_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*Repository_Expecter) Get ¶ added in v0.6.12
func (_e *Repository_Expecter) Get(_a0 interface{}, _a1 interface{}) *Repository_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*Repository_Expecter) List ¶ added in v0.6.12
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 subscription.Filter
func (*Repository_Expecter) MatchLabelsFetchReceivers ¶ added in v0.7.5
func (_e *Repository_Expecter) MatchLabelsFetchReceivers(ctx interface{}, flt interface{}) *Repository_MatchLabelsFetchReceivers_Call
MatchLabelsFetchReceivers is a helper method to define mock.On call
- ctx context.Context
- flt subscription.Filter
func (*Repository_Expecter) Rollback ¶ added in v0.7.5
func (_e *Repository_Expecter) Rollback(ctx interface{}, err interface{}) *Repository_Rollback_Call
Rollback is a helper method to define mock.On call
- ctx context.Context
- err error
func (*Repository_Expecter) Update ¶ added in v0.6.12
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 *subscription.Subscription
func (*Repository_Expecter) WithTransaction ¶ added in v0.7.5
func (_e *Repository_Expecter) WithTransaction(ctx interface{}) *Repository_WithTransaction_Call
WithTransaction is a helper method to define mock.On call
- ctx context.Context
type Repository_Get_Call ¶ added in v0.6.12
Repository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Repository_Get_Call) Return ¶ added in v0.6.12
func (_c *Repository_Get_Call) Return(_a0 *subscription.Subscription, _a1 error) *Repository_Get_Call
func (*Repository_Get_Call) Run ¶ added in v0.6.12
func (_c *Repository_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *Repository_Get_Call
func (*Repository_Get_Call) RunAndReturn ¶ added in v0.6.12
func (_c *Repository_Get_Call) RunAndReturn(run func(context.Context, uint64) (*subscription.Subscription, error)) *Repository_Get_Call
type Repository_List_Call ¶ added in v0.6.12
Repository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Repository_List_Call) Return ¶ added in v0.6.12
func (_c *Repository_List_Call) Return(_a0 []subscription.Subscription, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶ added in v0.6.12
func (_c *Repository_List_Call) Run(run func(_a0 context.Context, _a1 subscription.Filter)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶ added in v0.6.12
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, subscription.Filter) ([]subscription.Subscription, error)) *Repository_List_Call
type Repository_MatchLabelsFetchReceivers_Call ¶ added in v0.7.5
Repository_MatchLabelsFetchReceivers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MatchLabelsFetchReceivers'
func (*Repository_MatchLabelsFetchReceivers_Call) Return ¶ added in v0.7.5
func (_c *Repository_MatchLabelsFetchReceivers_Call) Return(_a0 []subscription.ReceiverView, _a1 error) *Repository_MatchLabelsFetchReceivers_Call
func (*Repository_MatchLabelsFetchReceivers_Call) Run ¶ added in v0.7.5
func (_c *Repository_MatchLabelsFetchReceivers_Call) Run(run func(ctx context.Context, flt subscription.Filter)) *Repository_MatchLabelsFetchReceivers_Call
func (*Repository_MatchLabelsFetchReceivers_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_MatchLabelsFetchReceivers_Call) RunAndReturn(run func(context.Context, subscription.Filter) ([]subscription.ReceiverView, error)) *Repository_MatchLabelsFetchReceivers_Call
type Repository_Rollback_Call ¶ added in v0.7.5
Repository_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'
func (*Repository_Rollback_Call) Return ¶ added in v0.7.5
func (_c *Repository_Rollback_Call) Return(_a0 error) *Repository_Rollback_Call
func (*Repository_Rollback_Call) Run ¶ added in v0.7.5
func (_c *Repository_Rollback_Call) Run(run func(ctx context.Context, err error)) *Repository_Rollback_Call
func (*Repository_Rollback_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_Rollback_Call) RunAndReturn(run func(context.Context, error) error) *Repository_Rollback_Call
type Repository_Update_Call ¶ added in v0.6.12
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.6.12
func (_c *Repository_Update_Call) Return(_a0 error) *Repository_Update_Call
func (*Repository_Update_Call) Run ¶ added in v0.6.12
func (_c *Repository_Update_Call) Run(run func(_a0 context.Context, _a1 *subscription.Subscription)) *Repository_Update_Call
func (*Repository_Update_Call) RunAndReturn ¶ added in v0.6.12
func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, *subscription.Subscription) error) *Repository_Update_Call
type Repository_WithTransaction_Call ¶ added in v0.7.5
Repository_WithTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTransaction'
func (*Repository_WithTransaction_Call) Return ¶ added in v0.7.5
func (_c *Repository_WithTransaction_Call) Return(_a0 context.Context) *Repository_WithTransaction_Call
func (*Repository_WithTransaction_Call) Run ¶ added in v0.7.5
func (_c *Repository_WithTransaction_Call) Run(run func(ctx context.Context)) *Repository_WithTransaction_Call
func (*Repository_WithTransaction_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Repository_WithTransaction_Call) RunAndReturn(run func(context.Context) context.Context) *Repository_WithTransaction_Call
type SubscriptionReceiverService ¶ added in v0.7.5
SubscriptionReceiverService is an autogenerated mock type for the SubscriptionReceiverService type
func NewSubscriptionReceiverService ¶ added in v0.7.5
func NewSubscriptionReceiverService(t interface { mock.TestingT Cleanup(func()) }) *SubscriptionReceiverService
NewSubscriptionReceiverService creates a new instance of SubscriptionReceiverService. 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 (*SubscriptionReceiverService) BulkCreate ¶ added in v0.7.5
func (_m *SubscriptionReceiverService) BulkCreate(_a0 context.Context, _a1 []subscriptionreceiver.Relation) error
BulkCreate provides a mock function with given fields: _a0, _a1
func (*SubscriptionReceiverService) BulkDelete ¶ added in v0.7.5
func (_m *SubscriptionReceiverService) BulkDelete(_a0 context.Context, _a1 subscriptionreceiver.DeleteFilter) error
BulkDelete provides a mock function with given fields: _a0, _a1
func (*SubscriptionReceiverService) BulkSoftDelete ¶ added in v0.7.5
func (_m *SubscriptionReceiverService) BulkSoftDelete(_a0 context.Context, _a1 subscriptionreceiver.DeleteFilter) error
BulkSoftDelete provides a mock function with given fields: _a0, _a1
func (*SubscriptionReceiverService) BulkUpsert ¶ added in v0.7.5
func (_m *SubscriptionReceiverService) BulkUpsert(_a0 context.Context, _a1 []subscriptionreceiver.Relation) error
BulkUpsert provides a mock function with given fields: _a0, _a1
func (*SubscriptionReceiverService) EXPECT ¶ added in v0.7.5
func (_m *SubscriptionReceiverService) EXPECT() *SubscriptionReceiverService_Expecter
func (*SubscriptionReceiverService) List ¶ added in v0.7.5
func (_m *SubscriptionReceiverService) List(_a0 context.Context, _a1 subscriptionreceiver.Filter) ([]subscriptionreceiver.Relation, error)
List provides a mock function with given fields: _a0, _a1
type SubscriptionReceiverService_BulkCreate_Call ¶ added in v0.7.5
SubscriptionReceiverService_BulkCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkCreate'
func (*SubscriptionReceiverService_BulkCreate_Call) Return ¶ added in v0.7.5
func (_c *SubscriptionReceiverService_BulkCreate_Call) Return(_a0 error) *SubscriptionReceiverService_BulkCreate_Call
func (*SubscriptionReceiverService_BulkCreate_Call) Run ¶ added in v0.7.5
func (_c *SubscriptionReceiverService_BulkCreate_Call) Run(run func(_a0 context.Context, _a1 []subscriptionreceiver.Relation)) *SubscriptionReceiverService_BulkCreate_Call
func (*SubscriptionReceiverService_BulkCreate_Call) RunAndReturn ¶ added in v0.7.5
func (_c *SubscriptionReceiverService_BulkCreate_Call) RunAndReturn(run func(context.Context, []subscriptionreceiver.Relation) error) *SubscriptionReceiverService_BulkCreate_Call
type SubscriptionReceiverService_BulkDelete_Call ¶ added in v0.7.5
SubscriptionReceiverService_BulkDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkDelete'
func (*SubscriptionReceiverService_BulkDelete_Call) Return ¶ added in v0.7.5
func (_c *SubscriptionReceiverService_BulkDelete_Call) Return(_a0 error) *SubscriptionReceiverService_BulkDelete_Call
func (*SubscriptionReceiverService_BulkDelete_Call) Run ¶ added in v0.7.5
func (_c *SubscriptionReceiverService_BulkDelete_Call) Run(run func(_a0 context.Context, _a1 subscriptionreceiver.DeleteFilter)) *SubscriptionReceiverService_BulkDelete_Call
func (*SubscriptionReceiverService_BulkDelete_Call) RunAndReturn ¶ added in v0.7.5
func (_c *SubscriptionReceiverService_BulkDelete_Call) RunAndReturn(run func(context.Context, subscriptionreceiver.DeleteFilter) error) *SubscriptionReceiverService_BulkDelete_Call
type SubscriptionReceiverService_BulkSoftDelete_Call ¶ added in v0.7.5
SubscriptionReceiverService_BulkSoftDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkSoftDelete'
func (*SubscriptionReceiverService_BulkSoftDelete_Call) Return ¶ added in v0.7.5
func (_c *SubscriptionReceiverService_BulkSoftDelete_Call) Return(_a0 error) *SubscriptionReceiverService_BulkSoftDelete_Call
func (*SubscriptionReceiverService_BulkSoftDelete_Call) Run ¶ added in v0.7.5
func (_c *SubscriptionReceiverService_BulkSoftDelete_Call) Run(run func(_a0 context.Context, _a1 subscriptionreceiver.DeleteFilter)) *SubscriptionReceiverService_BulkSoftDelete_Call
func (*SubscriptionReceiverService_BulkSoftDelete_Call) RunAndReturn ¶ added in v0.7.5
func (_c *SubscriptionReceiverService_BulkSoftDelete_Call) RunAndReturn(run func(context.Context, subscriptionreceiver.DeleteFilter) error) *SubscriptionReceiverService_BulkSoftDelete_Call
type SubscriptionReceiverService_BulkUpsert_Call ¶ added in v0.7.5
SubscriptionReceiverService_BulkUpsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkUpsert'
func (*SubscriptionReceiverService_BulkUpsert_Call) Return ¶ added in v0.7.5
func (_c *SubscriptionReceiverService_BulkUpsert_Call) Return(_a0 error) *SubscriptionReceiverService_BulkUpsert_Call
func (*SubscriptionReceiverService_BulkUpsert_Call) Run ¶ added in v0.7.5
func (_c *SubscriptionReceiverService_BulkUpsert_Call) Run(run func(_a0 context.Context, _a1 []subscriptionreceiver.Relation)) *SubscriptionReceiverService_BulkUpsert_Call
func (*SubscriptionReceiverService_BulkUpsert_Call) RunAndReturn ¶ added in v0.7.5
func (_c *SubscriptionReceiverService_BulkUpsert_Call) RunAndReturn(run func(context.Context, []subscriptionreceiver.Relation) error) *SubscriptionReceiverService_BulkUpsert_Call
type SubscriptionReceiverService_Expecter ¶ added in v0.7.5
type SubscriptionReceiverService_Expecter struct {
// contains filtered or unexported fields
}
func (*SubscriptionReceiverService_Expecter) BulkCreate ¶ added in v0.7.5
func (_e *SubscriptionReceiverService_Expecter) BulkCreate(_a0 interface{}, _a1 interface{}) *SubscriptionReceiverService_BulkCreate_Call
BulkCreate is a helper method to define mock.On call
- _a0 context.Context
- _a1 []subscriptionreceiver.Relation
func (*SubscriptionReceiverService_Expecter) BulkDelete ¶ added in v0.7.5
func (_e *SubscriptionReceiverService_Expecter) BulkDelete(_a0 interface{}, _a1 interface{}) *SubscriptionReceiverService_BulkDelete_Call
BulkDelete is a helper method to define mock.On call
- _a0 context.Context
- _a1 subscriptionreceiver.DeleteFilter
func (*SubscriptionReceiverService_Expecter) BulkSoftDelete ¶ added in v0.7.5
func (_e *SubscriptionReceiverService_Expecter) BulkSoftDelete(_a0 interface{}, _a1 interface{}) *SubscriptionReceiverService_BulkSoftDelete_Call
BulkSoftDelete is a helper method to define mock.On call
- _a0 context.Context
- _a1 subscriptionreceiver.DeleteFilter
func (*SubscriptionReceiverService_Expecter) BulkUpsert ¶ added in v0.7.5
func (_e *SubscriptionReceiverService_Expecter) BulkUpsert(_a0 interface{}, _a1 interface{}) *SubscriptionReceiverService_BulkUpsert_Call
BulkUpsert is a helper method to define mock.On call
- _a0 context.Context
- _a1 []subscriptionreceiver.Relation
func (*SubscriptionReceiverService_Expecter) List ¶ added in v0.7.5
func (_e *SubscriptionReceiverService_Expecter) List(_a0 interface{}, _a1 interface{}) *SubscriptionReceiverService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 subscriptionreceiver.Filter
type SubscriptionReceiverService_List_Call ¶ added in v0.7.5
SubscriptionReceiverService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*SubscriptionReceiverService_List_Call) Return ¶ added in v0.7.5
func (_c *SubscriptionReceiverService_List_Call) Return(_a0 []subscriptionreceiver.Relation, _a1 error) *SubscriptionReceiverService_List_Call
func (*SubscriptionReceiverService_List_Call) Run ¶ added in v0.7.5
func (_c *SubscriptionReceiverService_List_Call) Run(run func(_a0 context.Context, _a1 subscriptionreceiver.Filter)) *SubscriptionReceiverService_List_Call
func (*SubscriptionReceiverService_List_Call) RunAndReturn ¶ added in v0.7.5
func (_c *SubscriptionReceiverService_List_Call) RunAndReturn(run func(context.Context, subscriptionreceiver.Filter) ([]subscriptionreceiver.Relation, error)) *SubscriptionReceiverService_List_Call
type Transactor ¶ added in v0.7.5
Transactor is an autogenerated mock type for the Transactor type
func NewTransactor ¶ added in v0.7.5
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 ¶ added in v0.7.5
func (_m *Transactor) Commit(ctx context.Context) error
Commit provides a mock function with given fields: ctx
func (*Transactor) EXPECT ¶ added in v0.7.5
func (_m *Transactor) EXPECT() *Transactor_Expecter
func (*Transactor) Rollback ¶ added in v0.7.5
func (_m *Transactor) Rollback(ctx context.Context, err error) error
Rollback provides a mock function with given fields: ctx, err
func (*Transactor) WithTransaction ¶ added in v0.7.5
func (_m *Transactor) WithTransaction(ctx context.Context) context.Context
WithTransaction provides a mock function with given fields: ctx
type Transactor_Commit_Call ¶ added in v0.7.5
Transactor_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*Transactor_Commit_Call) Return ¶ added in v0.7.5
func (_c *Transactor_Commit_Call) Return(_a0 error) *Transactor_Commit_Call
func (*Transactor_Commit_Call) Run ¶ added in v0.7.5
func (_c *Transactor_Commit_Call) Run(run func(ctx context.Context)) *Transactor_Commit_Call
func (*Transactor_Commit_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Transactor_Commit_Call) RunAndReturn(run func(context.Context) error) *Transactor_Commit_Call
type Transactor_Expecter ¶ added in v0.7.5
type Transactor_Expecter struct {
// contains filtered or unexported fields
}
func (*Transactor_Expecter) Commit ¶ added in v0.7.5
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 ¶ added in v0.7.5
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 ¶ added in v0.7.5
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 ¶ added in v0.7.5
Transactor_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'
func (*Transactor_Rollback_Call) Return ¶ added in v0.7.5
func (_c *Transactor_Rollback_Call) Return(_a0 error) *Transactor_Rollback_Call
func (*Transactor_Rollback_Call) Run ¶ added in v0.7.5
func (_c *Transactor_Rollback_Call) Run(run func(ctx context.Context, err error)) *Transactor_Rollback_Call
func (*Transactor_Rollback_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Transactor_Rollback_Call) RunAndReturn(run func(context.Context, error) error) *Transactor_Rollback_Call
type Transactor_WithTransaction_Call ¶ added in v0.7.5
Transactor_WithTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTransaction'
func (*Transactor_WithTransaction_Call) Return ¶ added in v0.7.5
func (_c *Transactor_WithTransaction_Call) Return(_a0 context.Context) *Transactor_WithTransaction_Call
func (*Transactor_WithTransaction_Call) Run ¶ added in v0.7.5
func (_c *Transactor_WithTransaction_Call) Run(run func(ctx context.Context)) *Transactor_WithTransaction_Call
func (*Transactor_WithTransaction_Call) RunAndReturn ¶ added in v0.7.5
func (_c *Transactor_WithTransaction_Call) RunAndReturn(run func(context.Context) context.Context) *Transactor_WithTransaction_Call