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) Delete(_a0 context.Context, _a1 notification.IdempotencyFilter) error
- func (_m *IdempotencyRepository) EXPECT() *IdempotencyRepository_Expecter
- func (_m *IdempotencyRepository) InsertOnConflictReturning(_a0 context.Context, _a1 string, _a2 string) (*notification.Idempotency, error)
- func (_m *IdempotencyRepository) UpdateSuccess(_a0 context.Context, _a1 uint64, _a2 bool) error
- 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) Delete(_a0 interface{}, _a1 interface{}) *IdempotencyRepository_Delete_Call
- func (_e *IdempotencyRepository_Expecter) InsertOnConflictReturning(_a0 interface{}, _a1 interface{}, _a2 interface{}) *IdempotencyRepository_InsertOnConflictReturning_Call
- func (_e *IdempotencyRepository_Expecter) UpdateSuccess(_a0 interface{}, _a1 interface{}, _a2 interface{}) *IdempotencyRepository_UpdateSuccess_Call
- type IdempotencyRepository_InsertOnConflictReturning_Call
- func (_c *IdempotencyRepository_InsertOnConflictReturning_Call) Return(_a0 *notification.Idempotency, _a1 error) *IdempotencyRepository_InsertOnConflictReturning_Call
- func (_c *IdempotencyRepository_InsertOnConflictReturning_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *IdempotencyRepository_InsertOnConflictReturning_Call
- func (_c *IdempotencyRepository_InsertOnConflictReturning_Call) RunAndReturn(run func(context.Context, string, string) (*notification.Idempotency, error)) *IdempotencyRepository_InsertOnConflictReturning_Call
- type IdempotencyRepository_UpdateSuccess_Call
- func (_c *IdempotencyRepository_UpdateSuccess_Call) Return(_a0 error) *IdempotencyRepository_UpdateSuccess_Call
- func (_c *IdempotencyRepository_UpdateSuccess_Call) Run(run func(_a0 context.Context, _a1 uint64, _a2 bool)) *IdempotencyRepository_UpdateSuccess_Call
- func (_c *IdempotencyRepository_UpdateSuccess_Call) RunAndReturn(run func(context.Context, uint64, bool) error) *IdempotencyRepository_UpdateSuccess_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) Stop(ctx context.Context) error
- func (_m *Queuer) SuccessCallback(ctx context.Context, ms notification.Message) error
- func (_m *Queuer) Type() string
- 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) Stop(ctx interface{}) *Queuer_Stop_Call
- func (_e *Queuer_Expecter) SuccessCallback(ctx interface{}, ms interface{}) *Queuer_SuccessCallback_Call
- func (_e *Queuer_Expecter) Type() *Queuer_Type_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 Queuer_Type_Call
- type ReceiverService
- type ReceiverService_Expecter
- type ReceiverService_Get_Call
- func (_c *ReceiverService_Get_Call) Return(_a0 *receiver.Receiver, _a1 error) *ReceiverService_Get_Call
- func (_c *ReceiverService_Get_Call) Run(run func(ctx context.Context, id uint64, gopts ...receiver.GetOption)) *ReceiverService_Get_Call
- func (_c *ReceiverService_Get_Call) RunAndReturn(...) *ReceiverService_Get_Call
- type Repository
- 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
- 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
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) 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
func (*IdempotencyRepository) InsertOnConflictReturning ¶
func (_m *IdempotencyRepository) InsertOnConflictReturning(_a0 context.Context, _a1 string, _a2 string) (*notification.Idempotency, error)
InsertOnConflictReturning provides a mock function with given fields: _a0, _a1, _a2
func (*IdempotencyRepository) UpdateSuccess ¶
UpdateSuccess provides a mock function with given fields: _a0, _a1, _a2
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) 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
func (*IdempotencyRepository_Expecter) InsertOnConflictReturning ¶
func (_e *IdempotencyRepository_Expecter) InsertOnConflictReturning(_a0 interface{}, _a1 interface{}, _a2 interface{}) *IdempotencyRepository_InsertOnConflictReturning_Call
InsertOnConflictReturning is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 string
func (*IdempotencyRepository_Expecter) UpdateSuccess ¶
func (_e *IdempotencyRepository_Expecter) UpdateSuccess(_a0 interface{}, _a1 interface{}, _a2 interface{}) *IdempotencyRepository_UpdateSuccess_Call
UpdateSuccess is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
- _a2 bool
type IdempotencyRepository_InsertOnConflictReturning_Call ¶
IdempotencyRepository_InsertOnConflictReturning_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertOnConflictReturning'
func (*IdempotencyRepository_InsertOnConflictReturning_Call) Return ¶
func (_c *IdempotencyRepository_InsertOnConflictReturning_Call) Return(_a0 *notification.Idempotency, _a1 error) *IdempotencyRepository_InsertOnConflictReturning_Call
func (*IdempotencyRepository_InsertOnConflictReturning_Call) Run ¶
func (_c *IdempotencyRepository_InsertOnConflictReturning_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *IdempotencyRepository_InsertOnConflictReturning_Call
func (*IdempotencyRepository_InsertOnConflictReturning_Call) RunAndReturn ¶ added in v0.6.1
func (_c *IdempotencyRepository_InsertOnConflictReturning_Call) RunAndReturn(run func(context.Context, string, string) (*notification.Idempotency, error)) *IdempotencyRepository_InsertOnConflictReturning_Call
type IdempotencyRepository_UpdateSuccess_Call ¶
IdempotencyRepository_UpdateSuccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSuccess'
func (*IdempotencyRepository_UpdateSuccess_Call) Return ¶
func (_c *IdempotencyRepository_UpdateSuccess_Call) Return(_a0 error) *IdempotencyRepository_UpdateSuccess_Call
func (*IdempotencyRepository_UpdateSuccess_Call) Run ¶
func (_c *IdempotencyRepository_UpdateSuccess_Call) Run(run func(_a0 context.Context, _a1 uint64, _a2 bool)) *IdempotencyRepository_UpdateSuccess_Call
func (*IdempotencyRepository_UpdateSuccess_Call) RunAndReturn ¶ added in v0.6.1
func (_c *IdempotencyRepository_UpdateSuccess_Call) RunAndReturn(run func(context.Context, uint64, bool) error) *IdempotencyRepository_UpdateSuccess_Call
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) 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) 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
func (*Queuer_Expecter) Type ¶
func (_e *Queuer_Expecter) Type() *Queuer_Type_Call
Type is a helper method to define mock.On 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 Queuer_Type_Call ¶
Queuer_Type_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Type'
func (*Queuer_Type_Call) Return ¶
func (_c *Queuer_Type_Call) Return(_a0 string) *Queuer_Type_Call
func (*Queuer_Type_Call) Run ¶
func (_c *Queuer_Type_Call) Run(run func()) *Queuer_Type_Call
func (*Queuer_Type_Call) RunAndReturn ¶ added in v0.6.1
func (_c *Queuer_Type_Call) RunAndReturn(run func() string) *Queuer_Type_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) Get ¶
func (_e *ReceiverService_Expecter) Get(ctx interface{}, id interface{}, gopts ...interface{}) *ReceiverService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uint64
- gopts ...receiver.GetOption
type ReceiverService_Get_Call ¶
ReceiverService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ReceiverService_Get_Call) Return ¶
func (_c *ReceiverService_Get_Call) Return(_a0 *receiver.Receiver, _a1 error) *ReceiverService_Get_Call
func (*ReceiverService_Get_Call) Run ¶
func (_c *ReceiverService_Get_Call) Run(run func(ctx context.Context, id uint64, gopts ...receiver.GetOption)) *ReceiverService_Get_Call
func (*ReceiverService_Get_Call) RunAndReturn ¶ added in v0.6.1
func (_c *ReceiverService_Get_Call) RunAndReturn(run func(context.Context, uint64, ...receiver.GetOption) (*receiver.Receiver, error)) *ReceiverService_Get_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) 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
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) 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
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