Documentation ¶
Index ¶
- type AlertService
- type AlertService_Expecter
- type AlertService_UpdateSilenceStatus_Call
- func (_c *AlertService_UpdateSilenceStatus_Call) Return(_a0 error) *AlertService_UpdateSilenceStatus_Call
- func (_c *AlertService_UpdateSilenceStatus_Call) Run(...) *AlertService_UpdateSilenceStatus_Call
- func (_c *AlertService_UpdateSilenceStatus_Call) RunAndReturn(run func(context.Context, []int64, bool, bool) error) *AlertService_UpdateSilenceStatus_Call
- type Dispatcher
- type Dispatcher_Expecter
- type Dispatcher_PrepareMessage_Call
- func (_c *Dispatcher_PrepareMessage_Call) Return(_a0 []notification.Message, _a1 []log.Notification, _a2 bool, _a3 error) *Dispatcher_PrepareMessage_Call
- func (_c *Dispatcher_PrepareMessage_Call) Run(run func(ctx context.Context, n notification.Notification)) *Dispatcher_PrepareMessage_Call
- func (_c *Dispatcher_PrepareMessage_Call) RunAndReturn(...) *Dispatcher_PrepareMessage_Call
- type IdempotencyRepository
- func (_m *IdempotencyRepository) Check(ctx context.Context, scope string, key string) (*notification.Idempotency, error)
- func (_m *IdempotencyRepository) Create(ctx context.Context, scope string, key string, notificationID string) (*notification.Idempotency, error)
- func (_m *IdempotencyRepository) Delete(_a0 context.Context, _a1 notification.IdempotencyFilter) error
- func (_m *IdempotencyRepository) EXPECT() *IdempotencyRepository_Expecter
- type IdempotencyRepository_Check_Call
- func (_c *IdempotencyRepository_Check_Call) Return(_a0 *notification.Idempotency, _a1 error) *IdempotencyRepository_Check_Call
- func (_c *IdempotencyRepository_Check_Call) Run(run func(ctx context.Context, scope string, key string)) *IdempotencyRepository_Check_Call
- func (_c *IdempotencyRepository_Check_Call) RunAndReturn(run func(context.Context, string, string) (*notification.Idempotency, error)) *IdempotencyRepository_Check_Call
- type IdempotencyRepository_Create_Call
- func (_c *IdempotencyRepository_Create_Call) Return(_a0 *notification.Idempotency, _a1 error) *IdempotencyRepository_Create_Call
- func (_c *IdempotencyRepository_Create_Call) Run(run func(ctx context.Context, scope string, key string, notificationID string)) *IdempotencyRepository_Create_Call
- func (_c *IdempotencyRepository_Create_Call) RunAndReturn(...) *IdempotencyRepository_Create_Call
- type IdempotencyRepository_Delete_Call
- func (_c *IdempotencyRepository_Delete_Call) Return(_a0 error) *IdempotencyRepository_Delete_Call
- func (_c *IdempotencyRepository_Delete_Call) Run(run func(_a0 context.Context, _a1 notification.IdempotencyFilter)) *IdempotencyRepository_Delete_Call
- func (_c *IdempotencyRepository_Delete_Call) RunAndReturn(run func(context.Context, notification.IdempotencyFilter) error) *IdempotencyRepository_Delete_Call
- type IdempotencyRepository_Expecter
- func (_e *IdempotencyRepository_Expecter) Check(ctx interface{}, scope interface{}, key interface{}) *IdempotencyRepository_Check_Call
- func (_e *IdempotencyRepository_Expecter) Create(ctx interface{}, scope interface{}, key interface{}, ...) *IdempotencyRepository_Create_Call
- func (_e *IdempotencyRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *IdempotencyRepository_Delete_Call
- type LogService
- type LogService_Expecter
- type LogService_LogNotifications_Call
- func (_c *LogService_LogNotifications_Call) Return(_a0 error) *LogService_LogNotifications_Call
- func (_c *LogService_LogNotifications_Call) Run(run func(ctx context.Context, nlogs ...log.Notification)) *LogService_LogNotifications_Call
- func (_c *LogService_LogNotifications_Call) RunAndReturn(run func(context.Context, ...log.Notification) error) *LogService_LogNotifications_Call
- type Notifier
- func (_m *Notifier) EXPECT() *Notifier_Expecter
- func (_m *Notifier) GetSystemDefaultTemplate() string
- func (_m *Notifier) PostHookQueueTransformConfigs(ctx context.Context, notificationConfigMap map[string]interface{}) (map[string]interface{}, error)
- func (_m *Notifier) PreHookQueueTransformConfigs(ctx context.Context, notificationConfigMap map[string]interface{}) (map[string]interface{}, error)
- func (_m *Notifier) Send(ctx context.Context, message notification.Message) (bool, error)
- type Notifier_Expecter
- func (_e *Notifier_Expecter) GetSystemDefaultTemplate() *Notifier_GetSystemDefaultTemplate_Call
- func (_e *Notifier_Expecter) PostHookQueueTransformConfigs(ctx interface{}, notificationConfigMap interface{}) *Notifier_PostHookQueueTransformConfigs_Call
- func (_e *Notifier_Expecter) PreHookQueueTransformConfigs(ctx interface{}, notificationConfigMap interface{}) *Notifier_PreHookQueueTransformConfigs_Call
- func (_e *Notifier_Expecter) Send(ctx interface{}, message interface{}) *Notifier_Send_Call
- type Notifier_GetSystemDefaultTemplate_Call
- func (_c *Notifier_GetSystemDefaultTemplate_Call) Return(_a0 string) *Notifier_GetSystemDefaultTemplate_Call
- func (_c *Notifier_GetSystemDefaultTemplate_Call) Run(run func()) *Notifier_GetSystemDefaultTemplate_Call
- func (_c *Notifier_GetSystemDefaultTemplate_Call) RunAndReturn(run func() string) *Notifier_GetSystemDefaultTemplate_Call
- type Notifier_PostHookQueueTransformConfigs_Call
- func (_c *Notifier_PostHookQueueTransformConfigs_Call) Return(_a0 map[string]interface{}, _a1 error) *Notifier_PostHookQueueTransformConfigs_Call
- func (_c *Notifier_PostHookQueueTransformConfigs_Call) Run(run func(ctx context.Context, notificationConfigMap map[string]interface{})) *Notifier_PostHookQueueTransformConfigs_Call
- func (_c *Notifier_PostHookQueueTransformConfigs_Call) RunAndReturn(...) *Notifier_PostHookQueueTransformConfigs_Call
- type Notifier_PreHookQueueTransformConfigs_Call
- func (_c *Notifier_PreHookQueueTransformConfigs_Call) Return(_a0 map[string]interface{}, _a1 error) *Notifier_PreHookQueueTransformConfigs_Call
- func (_c *Notifier_PreHookQueueTransformConfigs_Call) Run(run func(ctx context.Context, notificationConfigMap map[string]interface{})) *Notifier_PreHookQueueTransformConfigs_Call
- func (_c *Notifier_PreHookQueueTransformConfigs_Call) RunAndReturn(...) *Notifier_PreHookQueueTransformConfigs_Call
- type Notifier_Send_Call
- func (_c *Notifier_Send_Call) Return(_a0 bool, _a1 error) *Notifier_Send_Call
- func (_c *Notifier_Send_Call) Run(run func(ctx context.Context, message notification.Message)) *Notifier_Send_Call
- func (_c *Notifier_Send_Call) RunAndReturn(run func(context.Context, notification.Message) (bool, error)) *Notifier_Send_Call
- type Queuer
- func (_m *Queuer) Cleanup(ctx context.Context, filter queues.FilterCleanup) error
- func (_m *Queuer) Dequeue(ctx context.Context, receiverTypes []string, batchSize int, ...) error
- func (_m *Queuer) EXPECT() *Queuer_Expecter
- func (_m *Queuer) Enqueue(ctx context.Context, ms ...notification.Message) error
- func (_m *Queuer) ErrorCallback(ctx context.Context, ms notification.Message) error
- func (_m *Queuer) ListMessages(ctx context.Context, notificationID string) ([]notification.Message, error)
- func (_m *Queuer) Stop(ctx context.Context) error
- func (_m *Queuer) SuccessCallback(ctx context.Context, ms notification.Message) error
- type Queuer_Cleanup_Call
- func (_c *Queuer_Cleanup_Call) Return(_a0 error) *Queuer_Cleanup_Call
- func (_c *Queuer_Cleanup_Call) Run(run func(ctx context.Context, filter queues.FilterCleanup)) *Queuer_Cleanup_Call
- func (_c *Queuer_Cleanup_Call) RunAndReturn(run func(context.Context, queues.FilterCleanup) error) *Queuer_Cleanup_Call
- type Queuer_Dequeue_Call
- func (_c *Queuer_Dequeue_Call) Return(_a0 error) *Queuer_Dequeue_Call
- func (_c *Queuer_Dequeue_Call) Run(run func(ctx context.Context, receiverTypes []string, batchSize int, ...)) *Queuer_Dequeue_Call
- func (_c *Queuer_Dequeue_Call) RunAndReturn(run func(context.Context, []string, int, ...) error) *Queuer_Dequeue_Call
- type Queuer_Enqueue_Call
- func (_c *Queuer_Enqueue_Call) Return(_a0 error) *Queuer_Enqueue_Call
- func (_c *Queuer_Enqueue_Call) Run(run func(ctx context.Context, ms ...notification.Message)) *Queuer_Enqueue_Call
- func (_c *Queuer_Enqueue_Call) RunAndReturn(run func(context.Context, ...notification.Message) error) *Queuer_Enqueue_Call
- type Queuer_ErrorCallback_Call
- func (_c *Queuer_ErrorCallback_Call) Return(_a0 error) *Queuer_ErrorCallback_Call
- func (_c *Queuer_ErrorCallback_Call) Run(run func(ctx context.Context, ms notification.Message)) *Queuer_ErrorCallback_Call
- func (_c *Queuer_ErrorCallback_Call) RunAndReturn(run func(context.Context, notification.Message) error) *Queuer_ErrorCallback_Call
- type Queuer_Expecter
- func (_e *Queuer_Expecter) Cleanup(ctx interface{}, filter interface{}) *Queuer_Cleanup_Call
- func (_e *Queuer_Expecter) Dequeue(ctx interface{}, receiverTypes interface{}, batchSize interface{}, ...) *Queuer_Dequeue_Call
- func (_e *Queuer_Expecter) Enqueue(ctx interface{}, ms ...interface{}) *Queuer_Enqueue_Call
- func (_e *Queuer_Expecter) ErrorCallback(ctx interface{}, ms interface{}) *Queuer_ErrorCallback_Call
- func (_e *Queuer_Expecter) ListMessages(ctx interface{}, notificationID interface{}) *Queuer_ListMessages_Call
- func (_e *Queuer_Expecter) Stop(ctx interface{}) *Queuer_Stop_Call
- func (_e *Queuer_Expecter) SuccessCallback(ctx interface{}, ms interface{}) *Queuer_SuccessCallback_Call
- type Queuer_ListMessages_Call
- func (_c *Queuer_ListMessages_Call) Return(_a0 []notification.Message, _a1 error) *Queuer_ListMessages_Call
- func (_c *Queuer_ListMessages_Call) Run(run func(ctx context.Context, notificationID string)) *Queuer_ListMessages_Call
- func (_c *Queuer_ListMessages_Call) RunAndReturn(run func(context.Context, string) ([]notification.Message, error)) *Queuer_ListMessages_Call
- type Queuer_Stop_Call
- type Queuer_SuccessCallback_Call
- func (_c *Queuer_SuccessCallback_Call) Return(_a0 error) *Queuer_SuccessCallback_Call
- func (_c *Queuer_SuccessCallback_Call) Run(run func(ctx context.Context, ms notification.Message)) *Queuer_SuccessCallback_Call
- func (_c *Queuer_SuccessCallback_Call) RunAndReturn(run func(context.Context, notification.Message) error) *Queuer_SuccessCallback_Call
- type ReceiverService
- 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 Repository
- func (_m *Repository) Commit(ctx context.Context) error
- func (_m *Repository) Create(_a0 context.Context, _a1 notification.Notification) (notification.Notification, error)
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) List(_a0 context.Context, _a1 notification.Filter) ([]notification.Notification, error)
- func (_m *Repository) Rollback(ctx context.Context, err error) 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 notification.Notification, _a1 error) *Repository_Create_Call
- func (_c *Repository_Create_Call) Run(run func(_a0 context.Context, _a1 notification.Notification)) *Repository_Create_Call
- func (_c *Repository_Create_Call) RunAndReturn(...) *Repository_Create_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) List(_a0 interface{}, _a1 interface{}) *Repository_List_Call
- func (_e *Repository_Expecter) Rollback(ctx interface{}, err interface{}) *Repository_Rollback_Call
- func (_e *Repository_Expecter) WithTransaction(ctx interface{}) *Repository_WithTransaction_Call
- type Repository_List_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_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 SilenceService
- type SilenceService_Expecter
- type SilenceService_List_Call
- func (_c *SilenceService_List_Call) Return(_a0 []silence.Silence, _a1 error) *SilenceService_List_Call
- func (_c *SilenceService_List_Call) Run(run func(ctx context.Context, filter silence.Filter)) *SilenceService_List_Call
- func (_c *SilenceService_List_Call) RunAndReturn(run func(context.Context, silence.Filter) ([]silence.Silence, error)) *SilenceService_List_Call
- type SubscriptionService
- type SubscriptionService_Expecter
- type SubscriptionService_MatchByLabels_Call
- func (_c *SubscriptionService_MatchByLabels_Call) Return(_a0 []subscription.Subscription, _a1 error) *SubscriptionService_MatchByLabels_Call
- func (_c *SubscriptionService_MatchByLabels_Call) Run(run func(ctx context.Context, namespaceID uint64, labels map[string]string)) *SubscriptionService_MatchByLabels_Call
- func (_c *SubscriptionService_MatchByLabels_Call) RunAndReturn(...) *SubscriptionService_MatchByLabels_Call
- type TemplateService
- type TemplateService_Expecter
- type TemplateService_GetByName_Call
- func (_c *TemplateService_GetByName_Call) Return(_a0 *template.Template, _a1 error) *TemplateService_GetByName_Call
- func (_c *TemplateService_GetByName_Call) Run(run func(ctx context.Context, name string)) *TemplateService_GetByName_Call
- func (_c *TemplateService_GetByName_Call) RunAndReturn(run func(context.Context, string) (*template.Template, error)) *TemplateService_GetByName_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertService ¶
AlertService is an autogenerated mock type for the AlertService type
func NewAlertService ¶
func NewAlertService(t interface { mock.TestingT Cleanup(func()) }) *AlertService
NewAlertService creates a new instance of AlertService. 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 (*AlertService) EXPECT ¶
func (_m *AlertService) EXPECT() *AlertService_Expecter
func (*AlertService) UpdateSilenceStatus ¶
func (_m *AlertService) UpdateSilenceStatus(ctx context.Context, alertIDs []int64, hasSilenced bool, hasNonSilenced bool) error
UpdateSilenceStatus provides a mock function with given fields: ctx, alertIDs, hasSilenced, hasNonSilenced
type AlertService_Expecter ¶
type AlertService_Expecter struct {
// contains filtered or unexported fields
}
func (*AlertService_Expecter) UpdateSilenceStatus ¶
func (_e *AlertService_Expecter) UpdateSilenceStatus(ctx interface{}, alertIDs interface{}, hasSilenced interface{}, hasNonSilenced interface{}) *AlertService_UpdateSilenceStatus_Call
UpdateSilenceStatus is a helper method to define mock.On call
- ctx context.Context
- alertIDs []int64
- hasSilenced bool
- hasNonSilenced bool
type AlertService_UpdateSilenceStatus_Call ¶
AlertService_UpdateSilenceStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSilenceStatus'
func (*AlertService_UpdateSilenceStatus_Call) Return ¶
func (_c *AlertService_UpdateSilenceStatus_Call) Return(_a0 error) *AlertService_UpdateSilenceStatus_Call
func (*AlertService_UpdateSilenceStatus_Call) Run ¶
func (_c *AlertService_UpdateSilenceStatus_Call) Run(run func(ctx context.Context, alertIDs []int64, hasSilenced bool, hasNonSilenced bool)) *AlertService_UpdateSilenceStatus_Call
func (*AlertService_UpdateSilenceStatus_Call) RunAndReturn ¶ added in v0.6.1
func (_c *AlertService_UpdateSilenceStatus_Call) RunAndReturn(run func(context.Context, []int64, bool, bool) error) *AlertService_UpdateSilenceStatus_Call
type Dispatcher ¶
Dispatcher is an autogenerated mock type for the Dispatcher type
func NewDispatcher ¶
func NewDispatcher(t interface { mock.TestingT Cleanup(func()) }) *Dispatcher
NewDispatcher creates a new instance of Dispatcher. 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 (*Dispatcher) EXPECT ¶
func (_m *Dispatcher) EXPECT() *Dispatcher_Expecter
func (*Dispatcher) PrepareMessage ¶
func (_m *Dispatcher) PrepareMessage(ctx context.Context, n notification.Notification) ([]notification.Message, []log.Notification, bool, error)
PrepareMessage provides a mock function with given fields: ctx, n
type Dispatcher_Expecter ¶
type Dispatcher_Expecter struct {
// contains filtered or unexported fields
}
func (*Dispatcher_Expecter) PrepareMessage ¶
func (_e *Dispatcher_Expecter) PrepareMessage(ctx interface{}, n interface{}) *Dispatcher_PrepareMessage_Call
PrepareMessage is a helper method to define mock.On call
- ctx context.Context
- n notification.Notification
type Dispatcher_PrepareMessage_Call ¶
Dispatcher_PrepareMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrepareMessage'
func (*Dispatcher_PrepareMessage_Call) Return ¶
func (_c *Dispatcher_PrepareMessage_Call) Return(_a0 []notification.Message, _a1 []log.Notification, _a2 bool, _a3 error) *Dispatcher_PrepareMessage_Call
func (*Dispatcher_PrepareMessage_Call) Run ¶
func (_c *Dispatcher_PrepareMessage_Call) Run(run func(ctx context.Context, n notification.Notification)) *Dispatcher_PrepareMessage_Call
func (*Dispatcher_PrepareMessage_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Dispatcher_PrepareMessage_Call) RunAndReturn(run func(context.Context, notification.Notification) ([]notification.Message, []log.Notification, bool, error)) *Dispatcher_PrepareMessage_Call
type IdempotencyRepository ¶
IdempotencyRepository is an autogenerated mock type for the IdempotencyRepository type
func NewIdempotencyRepository ¶
func NewIdempotencyRepository(t interface { mock.TestingT Cleanup(func()) }) *IdempotencyRepository
NewIdempotencyRepository creates a new instance of IdempotencyRepository. 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 (*IdempotencyRepository) Check ¶ added in v0.7.0
func (_m *IdempotencyRepository) Check(ctx context.Context, scope string, key string) (*notification.Idempotency, error)
Check provides a mock function with given fields: ctx, scope, key
func (*IdempotencyRepository) Create ¶ added in v0.7.0
func (_m *IdempotencyRepository) Create(ctx context.Context, scope string, key string, notificationID string) (*notification.Idempotency, error)
Create provides a mock function with given fields: ctx, scope, key, notificationID
func (*IdempotencyRepository) Delete ¶
func (_m *IdempotencyRepository) Delete(_a0 context.Context, _a1 notification.IdempotencyFilter) error
Delete provides a mock function with given fields: _a0, _a1
func (*IdempotencyRepository) EXPECT ¶
func (_m *IdempotencyRepository) EXPECT() *IdempotencyRepository_Expecter
type IdempotencyRepository_Check_Call ¶ added in v0.7.0
IdempotencyRepository_Check_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Check'
func (*IdempotencyRepository_Check_Call) Return ¶ added in v0.7.0
func (_c *IdempotencyRepository_Check_Call) Return(_a0 *notification.Idempotency, _a1 error) *IdempotencyRepository_Check_Call
func (*IdempotencyRepository_Check_Call) Run ¶ added in v0.7.0
func (_c *IdempotencyRepository_Check_Call) Run(run func(ctx context.Context, scope string, key string)) *IdempotencyRepository_Check_Call
func (*IdempotencyRepository_Check_Call) RunAndReturn ¶ added in v0.7.0
func (_c *IdempotencyRepository_Check_Call) RunAndReturn(run func(context.Context, string, string) (*notification.Idempotency, error)) *IdempotencyRepository_Check_Call
type IdempotencyRepository_Create_Call ¶ added in v0.7.0
IdempotencyRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*IdempotencyRepository_Create_Call) Return ¶ added in v0.7.0
func (_c *IdempotencyRepository_Create_Call) Return(_a0 *notification.Idempotency, _a1 error) *IdempotencyRepository_Create_Call
func (*IdempotencyRepository_Create_Call) Run ¶ added in v0.7.0
func (_c *IdempotencyRepository_Create_Call) Run(run func(ctx context.Context, scope string, key string, notificationID string)) *IdempotencyRepository_Create_Call
func (*IdempotencyRepository_Create_Call) RunAndReturn ¶ added in v0.7.0
func (_c *IdempotencyRepository_Create_Call) RunAndReturn(run func(context.Context, string, string, string) (*notification.Idempotency, error)) *IdempotencyRepository_Create_Call
type IdempotencyRepository_Delete_Call ¶
IdempotencyRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*IdempotencyRepository_Delete_Call) Return ¶
func (_c *IdempotencyRepository_Delete_Call) Return(_a0 error) *IdempotencyRepository_Delete_Call
func (*IdempotencyRepository_Delete_Call) Run ¶
func (_c *IdempotencyRepository_Delete_Call) Run(run func(_a0 context.Context, _a1 notification.IdempotencyFilter)) *IdempotencyRepository_Delete_Call
func (*IdempotencyRepository_Delete_Call) RunAndReturn ¶ added in v0.6.1
func (_c *IdempotencyRepository_Delete_Call) RunAndReturn(run func(context.Context, notification.IdempotencyFilter) error) *IdempotencyRepository_Delete_Call
type IdempotencyRepository_Expecter ¶
type IdempotencyRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*IdempotencyRepository_Expecter) Check ¶ added in v0.7.0
func (_e *IdempotencyRepository_Expecter) Check(ctx interface{}, scope interface{}, key interface{}) *IdempotencyRepository_Check_Call
Check is a helper method to define mock.On call
- ctx context.Context
- scope string
- key string
func (*IdempotencyRepository_Expecter) Create ¶ added in v0.7.0
func (_e *IdempotencyRepository_Expecter) Create(ctx interface{}, scope interface{}, key interface{}, notificationID interface{}) *IdempotencyRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- scope string
- key string
- notificationID string
func (*IdempotencyRepository_Expecter) Delete ¶
func (_e *IdempotencyRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *IdempotencyRepository_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 notification.IdempotencyFilter
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) LogNotifications ¶
func (_m *LogService) LogNotifications(ctx context.Context, nlogs ...log.Notification) error
LogNotifications provides a mock function with given fields: ctx, nlogs
type LogService_Expecter ¶
type LogService_Expecter struct {
// contains filtered or unexported fields
}
func (*LogService_Expecter) LogNotifications ¶
func (_e *LogService_Expecter) LogNotifications(ctx interface{}, nlogs ...interface{}) *LogService_LogNotifications_Call
LogNotifications is a helper method to define mock.On call
- ctx context.Context
- nlogs ...log.Notification
type LogService_LogNotifications_Call ¶
LogService_LogNotifications_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LogNotifications'
func (*LogService_LogNotifications_Call) Return ¶
func (_c *LogService_LogNotifications_Call) Return(_a0 error) *LogService_LogNotifications_Call
func (*LogService_LogNotifications_Call) Run ¶
func (_c *LogService_LogNotifications_Call) Run(run func(ctx context.Context, nlogs ...log.Notification)) *LogService_LogNotifications_Call
func (*LogService_LogNotifications_Call) RunAndReturn ¶ added in v0.6.1
func (_c *LogService_LogNotifications_Call) RunAndReturn(run func(context.Context, ...log.Notification) error) *LogService_LogNotifications_Call
type Notifier ¶
Notifier is an autogenerated mock type for the Notifier type
func NewNotifier ¶
NewNotifier creates a new instance of Notifier. 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 (*Notifier) EXPECT ¶
func (_m *Notifier) EXPECT() *Notifier_Expecter
func (*Notifier) GetSystemDefaultTemplate ¶
GetSystemDefaultTemplate provides a mock function with given fields:
func (*Notifier) PostHookQueueTransformConfigs ¶
func (_m *Notifier) PostHookQueueTransformConfigs(ctx context.Context, notificationConfigMap map[string]interface{}) (map[string]interface{}, error)
PostHookQueueTransformConfigs provides a mock function with given fields: ctx, notificationConfigMap
type Notifier_Expecter ¶
type Notifier_Expecter struct {
// contains filtered or unexported fields
}
func (*Notifier_Expecter) GetSystemDefaultTemplate ¶
func (_e *Notifier_Expecter) GetSystemDefaultTemplate() *Notifier_GetSystemDefaultTemplate_Call
GetSystemDefaultTemplate is a helper method to define mock.On call
func (*Notifier_Expecter) PostHookQueueTransformConfigs ¶
func (_e *Notifier_Expecter) PostHookQueueTransformConfigs(ctx interface{}, notificationConfigMap interface{}) *Notifier_PostHookQueueTransformConfigs_Call
PostHookQueueTransformConfigs is a helper method to define mock.On call
- ctx context.Context
- notificationConfigMap map[string]interface{}
func (*Notifier_Expecter) PreHookQueueTransformConfigs ¶
func (_e *Notifier_Expecter) PreHookQueueTransformConfigs(ctx interface{}, notificationConfigMap interface{}) *Notifier_PreHookQueueTransformConfigs_Call
PreHookQueueTransformConfigs is a helper method to define mock.On call
- ctx context.Context
- notificationConfigMap map[string]interface{}
func (*Notifier_Expecter) Send ¶
func (_e *Notifier_Expecter) Send(ctx interface{}, message interface{}) *Notifier_Send_Call
Send is a helper method to define mock.On call
- ctx context.Context
- message notification.Message
type Notifier_GetSystemDefaultTemplate_Call ¶
Notifier_GetSystemDefaultTemplate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSystemDefaultTemplate'
func (*Notifier_GetSystemDefaultTemplate_Call) Return ¶
func (_c *Notifier_GetSystemDefaultTemplate_Call) Return(_a0 string) *Notifier_GetSystemDefaultTemplate_Call
func (*Notifier_GetSystemDefaultTemplate_Call) Run ¶
func (_c *Notifier_GetSystemDefaultTemplate_Call) Run(run func()) *Notifier_GetSystemDefaultTemplate_Call
func (*Notifier_GetSystemDefaultTemplate_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Notifier_GetSystemDefaultTemplate_Call) RunAndReturn(run func() string) *Notifier_GetSystemDefaultTemplate_Call
type Notifier_PostHookQueueTransformConfigs_Call ¶
Notifier_PostHookQueueTransformConfigs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostHookQueueTransformConfigs'
func (*Notifier_PostHookQueueTransformConfigs_Call) Return ¶
func (_c *Notifier_PostHookQueueTransformConfigs_Call) Return(_a0 map[string]interface{}, _a1 error) *Notifier_PostHookQueueTransformConfigs_Call
func (*Notifier_PostHookQueueTransformConfigs_Call) Run ¶
func (_c *Notifier_PostHookQueueTransformConfigs_Call) Run(run func(ctx context.Context, notificationConfigMap map[string]interface{})) *Notifier_PostHookQueueTransformConfigs_Call
func (*Notifier_PostHookQueueTransformConfigs_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Notifier_PostHookQueueTransformConfigs_Call) RunAndReturn(run func(context.Context, map[string]interface{}) (map[string]interface{}, error)) *Notifier_PostHookQueueTransformConfigs_Call
type Notifier_PreHookQueueTransformConfigs_Call ¶
Notifier_PreHookQueueTransformConfigs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PreHookQueueTransformConfigs'
func (*Notifier_PreHookQueueTransformConfigs_Call) Return ¶
func (_c *Notifier_PreHookQueueTransformConfigs_Call) Return(_a0 map[string]interface{}, _a1 error) *Notifier_PreHookQueueTransformConfigs_Call
func (*Notifier_PreHookQueueTransformConfigs_Call) Run ¶
func (_c *Notifier_PreHookQueueTransformConfigs_Call) Run(run func(ctx context.Context, notificationConfigMap map[string]interface{})) *Notifier_PreHookQueueTransformConfigs_Call
func (*Notifier_PreHookQueueTransformConfigs_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Notifier_PreHookQueueTransformConfigs_Call) RunAndReturn(run func(context.Context, map[string]interface{}) (map[string]interface{}, error)) *Notifier_PreHookQueueTransformConfigs_Call
type Notifier_Send_Call ¶
Notifier_Send_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Send'
func (*Notifier_Send_Call) Return ¶
func (_c *Notifier_Send_Call) Return(_a0 bool, _a1 error) *Notifier_Send_Call
func (*Notifier_Send_Call) Run ¶
func (_c *Notifier_Send_Call) Run(run func(ctx context.Context, message notification.Message)) *Notifier_Send_Call
func (*Notifier_Send_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Notifier_Send_Call) RunAndReturn(run func(context.Context, notification.Message) (bool, error)) *Notifier_Send_Call
type Queuer ¶
Queuer is an autogenerated mock type for the Queuer type
func NewQueuer ¶
NewQueuer creates a new instance of Queuer. 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 (*Queuer) Dequeue ¶
func (_m *Queuer) Dequeue(ctx context.Context, receiverTypes []string, batchSize int, handlerFn func(context.Context, []notification.Message) error) error
Dequeue provides a mock function with given fields: ctx, receiverTypes, batchSize, handlerFn
func (*Queuer) EXPECT ¶
func (_m *Queuer) EXPECT() *Queuer_Expecter
func (*Queuer) ErrorCallback ¶
ErrorCallback provides a mock function with given fields: ctx, ms
func (*Queuer) ListMessages ¶ added in v0.7.3
func (_m *Queuer) ListMessages(ctx context.Context, notificationID string) ([]notification.Message, error)
ListMessages provides a mock function with given fields: ctx, notificationID
func (*Queuer) SuccessCallback ¶
SuccessCallback provides a mock function with given fields: ctx, ms
type Queuer_Cleanup_Call ¶
Queuer_Cleanup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cleanup'
func (*Queuer_Cleanup_Call) Return ¶
func (_c *Queuer_Cleanup_Call) Return(_a0 error) *Queuer_Cleanup_Call
func (*Queuer_Cleanup_Call) Run ¶
func (_c *Queuer_Cleanup_Call) Run(run func(ctx context.Context, filter queues.FilterCleanup)) *Queuer_Cleanup_Call
func (*Queuer_Cleanup_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Queuer_Cleanup_Call) RunAndReturn(run func(context.Context, queues.FilterCleanup) error) *Queuer_Cleanup_Call
type Queuer_Dequeue_Call ¶
Queuer_Dequeue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dequeue'
func (*Queuer_Dequeue_Call) Return ¶
func (_c *Queuer_Dequeue_Call) Return(_a0 error) *Queuer_Dequeue_Call
func (*Queuer_Dequeue_Call) Run ¶
func (_c *Queuer_Dequeue_Call) Run(run func(ctx context.Context, receiverTypes []string, batchSize int, handlerFn func(context.Context, []notification.Message) error)) *Queuer_Dequeue_Call
func (*Queuer_Dequeue_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Queuer_Dequeue_Call) RunAndReturn(run func(context.Context, []string, int, func(context.Context, []notification.Message) error) error) *Queuer_Dequeue_Call
type Queuer_Enqueue_Call ¶
Queuer_Enqueue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enqueue'
func (*Queuer_Enqueue_Call) Return ¶
func (_c *Queuer_Enqueue_Call) Return(_a0 error) *Queuer_Enqueue_Call
func (*Queuer_Enqueue_Call) Run ¶
func (_c *Queuer_Enqueue_Call) Run(run func(ctx context.Context, ms ...notification.Message)) *Queuer_Enqueue_Call
func (*Queuer_Enqueue_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Queuer_Enqueue_Call) RunAndReturn(run func(context.Context, ...notification.Message) error) *Queuer_Enqueue_Call
type Queuer_ErrorCallback_Call ¶
Queuer_ErrorCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ErrorCallback'
func (*Queuer_ErrorCallback_Call) Return ¶
func (_c *Queuer_ErrorCallback_Call) Return(_a0 error) *Queuer_ErrorCallback_Call
func (*Queuer_ErrorCallback_Call) Run ¶
func (_c *Queuer_ErrorCallback_Call) Run(run func(ctx context.Context, ms notification.Message)) *Queuer_ErrorCallback_Call
func (*Queuer_ErrorCallback_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Queuer_ErrorCallback_Call) RunAndReturn(run func(context.Context, notification.Message) error) *Queuer_ErrorCallback_Call
type Queuer_Expecter ¶
type Queuer_Expecter struct {
// contains filtered or unexported fields
}
func (*Queuer_Expecter) Cleanup ¶
func (_e *Queuer_Expecter) Cleanup(ctx interface{}, filter interface{}) *Queuer_Cleanup_Call
Cleanup is a helper method to define mock.On call
- ctx context.Context
- filter queues.FilterCleanup
func (*Queuer_Expecter) Dequeue ¶
func (_e *Queuer_Expecter) Dequeue(ctx interface{}, receiverTypes interface{}, batchSize interface{}, handlerFn interface{}) *Queuer_Dequeue_Call
Dequeue is a helper method to define mock.On call
- ctx context.Context
- receiverTypes []string
- batchSize int
- handlerFn func(context.Context , []notification.Message) error
func (*Queuer_Expecter) Enqueue ¶
func (_e *Queuer_Expecter) Enqueue(ctx interface{}, ms ...interface{}) *Queuer_Enqueue_Call
Enqueue is a helper method to define mock.On call
- ctx context.Context
- ms ...notification.Message
func (*Queuer_Expecter) ErrorCallback ¶
func (_e *Queuer_Expecter) ErrorCallback(ctx interface{}, ms interface{}) *Queuer_ErrorCallback_Call
ErrorCallback is a helper method to define mock.On call
- ctx context.Context
- ms notification.Message
func (*Queuer_Expecter) ListMessages ¶ added in v0.7.3
func (_e *Queuer_Expecter) ListMessages(ctx interface{}, notificationID interface{}) *Queuer_ListMessages_Call
ListMessages is a helper method to define mock.On call
- ctx context.Context
- notificationID string
func (*Queuer_Expecter) Stop ¶
func (_e *Queuer_Expecter) Stop(ctx interface{}) *Queuer_Stop_Call
Stop is a helper method to define mock.On call
- ctx context.Context
func (*Queuer_Expecter) SuccessCallback ¶
func (_e *Queuer_Expecter) SuccessCallback(ctx interface{}, ms interface{}) *Queuer_SuccessCallback_Call
SuccessCallback is a helper method to define mock.On call
- ctx context.Context
- ms notification.Message
type Queuer_ListMessages_Call ¶ added in v0.7.3
Queuer_ListMessages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListMessages'
func (*Queuer_ListMessages_Call) Return ¶ added in v0.7.3
func (_c *Queuer_ListMessages_Call) Return(_a0 []notification.Message, _a1 error) *Queuer_ListMessages_Call
func (*Queuer_ListMessages_Call) Run ¶ added in v0.7.3
func (_c *Queuer_ListMessages_Call) Run(run func(ctx context.Context, notificationID string)) *Queuer_ListMessages_Call
func (*Queuer_ListMessages_Call) RunAndReturn ¶ added in v0.7.3
func (_c *Queuer_ListMessages_Call) RunAndReturn(run func(context.Context, string) ([]notification.Message, error)) *Queuer_ListMessages_Call
type Queuer_Stop_Call ¶
Queuer_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*Queuer_Stop_Call) Return ¶
func (_c *Queuer_Stop_Call) Return(_a0 error) *Queuer_Stop_Call
func (*Queuer_Stop_Call) Run ¶
func (_c *Queuer_Stop_Call) Run(run func(ctx context.Context)) *Queuer_Stop_Call
func (*Queuer_Stop_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Queuer_Stop_Call) RunAndReturn(run func(context.Context) error) *Queuer_Stop_Call
type Queuer_SuccessCallback_Call ¶
Queuer_SuccessCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuccessCallback'
func (*Queuer_SuccessCallback_Call) Return ¶
func (_c *Queuer_SuccessCallback_Call) Return(_a0 error) *Queuer_SuccessCallback_Call
func (*Queuer_SuccessCallback_Call) Run ¶
func (_c *Queuer_SuccessCallback_Call) Run(run func(ctx context.Context, ms notification.Message)) *Queuer_SuccessCallback_Call
func (*Queuer_SuccessCallback_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Queuer_SuccessCallback_Call) RunAndReturn(run func(context.Context, notification.Message) error) *Queuer_SuccessCallback_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
type ReceiverService_Expecter ¶
type ReceiverService_Expecter struct {
// contains filtered or unexported fields
}
func (*ReceiverService_Expecter) List ¶ added in v0.7.0
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
type ReceiverService_List_Call ¶ added in v0.7.0
ReceiverService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ReceiverService_List_Call) Return ¶ added in v0.7.0
func (_c *ReceiverService_List_Call) Return(_a0 []receiver.Receiver, _a1 error) *ReceiverService_List_Call
func (*ReceiverService_List_Call) Run ¶ added in v0.7.0
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.7.0
func (_c *ReceiverService_List_Call) RunAndReturn(run func(context.Context, receiver.Filter) ([]receiver.Receiver, error)) *ReceiverService_List_Call
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) Commit ¶ added in v0.7.0
func (_m *Repository) Commit(ctx context.Context) error
Commit provides a mock function with given fields: ctx
func (*Repository) Create ¶
func (_m *Repository) Create(_a0 context.Context, _a1 notification.Notification) (notification.Notification, error)
Create provides a mock function with given fields: _a0, _a1
func (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) List ¶ added in v0.7.4
func (_m *Repository) List(_a0 context.Context, _a1 notification.Filter) ([]notification.Notification, error)
List provides a mock function with given fields: _a0, _a1
func (*Repository) Rollback ¶ added in v0.7.0
func (_m *Repository) Rollback(ctx context.Context, err error) error
Rollback provides a mock function with given fields: ctx, err
func (*Repository) WithTransaction ¶ added in v0.7.0
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.0
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.0
func (_c *Repository_Commit_Call) Return(_a0 error) *Repository_Commit_Call
func (*Repository_Commit_Call) Run ¶ added in v0.7.0
func (_c *Repository_Commit_Call) Run(run func(ctx context.Context)) *Repository_Commit_Call
func (*Repository_Commit_Call) RunAndReturn ¶ added in v0.7.0
func (_c *Repository_Commit_Call) RunAndReturn(run func(context.Context) error) *Repository_Commit_Call
type Repository_Create_Call ¶
Repository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*Repository_Create_Call) Return ¶
func (_c *Repository_Create_Call) Return(_a0 notification.Notification, _a1 error) *Repository_Create_Call
func (*Repository_Create_Call) Run ¶
func (_c *Repository_Create_Call) Run(run func(_a0 context.Context, _a1 notification.Notification)) *Repository_Create_Call
func (*Repository_Create_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, notification.Notification) (notification.Notification, error)) *Repository_Create_Call
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) Commit ¶ added in v0.7.0
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 ¶
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 notification.Notification
func (*Repository_Expecter) List ¶ added in v0.7.4
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 notification.Filter
func (*Repository_Expecter) Rollback ¶ added in v0.7.0
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) WithTransaction ¶ added in v0.7.0
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_List_Call ¶ added in v0.7.4
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.7.4
func (_c *Repository_List_Call) Return(_a0 []notification.Notification, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶ added in v0.7.4
func (_c *Repository_List_Call) Run(run func(_a0 context.Context, _a1 notification.Filter)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶ added in v0.7.4
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, notification.Filter) ([]notification.Notification, error)) *Repository_List_Call
type Repository_Rollback_Call ¶ added in v0.7.0
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.0
func (_c *Repository_Rollback_Call) Return(_a0 error) *Repository_Rollback_Call
func (*Repository_Rollback_Call) Run ¶ added in v0.7.0
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.0
func (_c *Repository_Rollback_Call) RunAndReturn(run func(context.Context, error) error) *Repository_Rollback_Call
type Repository_WithTransaction_Call ¶ added in v0.7.0
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.0
func (_c *Repository_WithTransaction_Call) Return(_a0 context.Context) *Repository_WithTransaction_Call
func (*Repository_WithTransaction_Call) Run ¶ added in v0.7.0
func (_c *Repository_WithTransaction_Call) Run(run func(ctx context.Context)) *Repository_WithTransaction_Call
func (*Repository_WithTransaction_Call) RunAndReturn ¶ added in v0.7.0
func (_c *Repository_WithTransaction_Call) RunAndReturn(run func(context.Context) context.Context) *Repository_WithTransaction_Call
type SilenceService ¶
SilenceService is an autogenerated mock type for the SilenceService type
func NewSilenceService ¶
func NewSilenceService(t interface { mock.TestingT Cleanup(func()) }) *SilenceService
NewSilenceService creates a new instance of SilenceService. 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 (*SilenceService) EXPECT ¶
func (_m *SilenceService) EXPECT() *SilenceService_Expecter
type SilenceService_Expecter ¶
type SilenceService_Expecter struct {
// contains filtered or unexported fields
}
func (*SilenceService_Expecter) List ¶
func (_e *SilenceService_Expecter) List(ctx interface{}, filter interface{}) *SilenceService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter silence.Filter
type SilenceService_List_Call ¶
SilenceService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*SilenceService_List_Call) Return ¶
func (_c *SilenceService_List_Call) Return(_a0 []silence.Silence, _a1 error) *SilenceService_List_Call
func (*SilenceService_List_Call) Run ¶
func (_c *SilenceService_List_Call) Run(run func(ctx context.Context, filter silence.Filter)) *SilenceService_List_Call
func (*SilenceService_List_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SilenceService_List_Call) RunAndReturn(run func(context.Context, silence.Filter) ([]silence.Silence, error)) *SilenceService_List_Call
type SubscriptionService ¶
SubscriptionService is an autogenerated mock type for the SubscriptionService type
func NewSubscriptionService ¶
func NewSubscriptionService(t interface { mock.TestingT Cleanup(func()) }) *SubscriptionService
NewSubscriptionService creates a new instance of SubscriptionService. 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 (*SubscriptionService) EXPECT ¶
func (_m *SubscriptionService) EXPECT() *SubscriptionService_Expecter
func (*SubscriptionService) MatchByLabels ¶
func (_m *SubscriptionService) MatchByLabels(ctx context.Context, namespaceID uint64, labels map[string]string) ([]subscription.Subscription, error)
MatchByLabels provides a mock function with given fields: ctx, namespaceID, labels
type SubscriptionService_Expecter ¶
type SubscriptionService_Expecter struct {
// contains filtered or unexported fields
}
func (*SubscriptionService_Expecter) MatchByLabels ¶
func (_e *SubscriptionService_Expecter) MatchByLabels(ctx interface{}, namespaceID interface{}, labels interface{}) *SubscriptionService_MatchByLabels_Call
MatchByLabels is a helper method to define mock.On call
- ctx context.Context
- namespaceID uint64
- labels map[string]string
type SubscriptionService_MatchByLabels_Call ¶
SubscriptionService_MatchByLabels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MatchByLabels'
func (*SubscriptionService_MatchByLabels_Call) Return ¶
func (_c *SubscriptionService_MatchByLabels_Call) Return(_a0 []subscription.Subscription, _a1 error) *SubscriptionService_MatchByLabels_Call
func (*SubscriptionService_MatchByLabels_Call) Run ¶
func (_c *SubscriptionService_MatchByLabels_Call) Run(run func(ctx context.Context, namespaceID uint64, labels map[string]string)) *SubscriptionService_MatchByLabels_Call
func (*SubscriptionService_MatchByLabels_Call) RunAndReturn ¶ added in v0.6.1
func (_c *SubscriptionService_MatchByLabels_Call) RunAndReturn(run func(context.Context, uint64, map[string]string) ([]subscription.Subscription, error)) *SubscriptionService_MatchByLabels_Call
type TemplateService ¶ added in v0.7.1
TemplateService is an autogenerated mock type for the TemplateService type
func NewTemplateService ¶ added in v0.7.1
func NewTemplateService(t interface { mock.TestingT Cleanup(func()) }) *TemplateService
NewTemplateService creates a new instance of TemplateService. 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 (*TemplateService) EXPECT ¶ added in v0.7.1
func (_m *TemplateService) EXPECT() *TemplateService_Expecter
type TemplateService_Expecter ¶ added in v0.7.1
type TemplateService_Expecter struct {
// contains filtered or unexported fields
}
func (*TemplateService_Expecter) GetByName ¶ added in v0.7.1
func (_e *TemplateService_Expecter) GetByName(ctx interface{}, name interface{}) *TemplateService_GetByName_Call
GetByName is a helper method to define mock.On call
- ctx context.Context
- name string
type TemplateService_GetByName_Call ¶ added in v0.7.1
TemplateService_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName'
func (*TemplateService_GetByName_Call) Return ¶ added in v0.7.1
func (_c *TemplateService_GetByName_Call) Return(_a0 *template.Template, _a1 error) *TemplateService_GetByName_Call
func (*TemplateService_GetByName_Call) Run ¶ added in v0.7.1
func (_c *TemplateService_GetByName_Call) Run(run func(ctx context.Context, name string)) *TemplateService_GetByName_Call
func (*TemplateService_GetByName_Call) RunAndReturn ¶ added in v0.7.1
func (_c *TemplateService_GetByName_Call) RunAndReturn(run func(context.Context, string) (*template.Template, error)) *TemplateService_GetByName_Call