Documentation ¶
Index ¶
- type AlertRepository
- type AlertRepository_BulkUpdateSilence_Call
- func (_c *AlertRepository_BulkUpdateSilence_Call) Return(_a0 error) *AlertRepository_BulkUpdateSilence_Call
- func (_c *AlertRepository_BulkUpdateSilence_Call) Run(run func(_a0 context.Context, _a1 []int64, _a2 string)) *AlertRepository_BulkUpdateSilence_Call
- func (_c *AlertRepository_BulkUpdateSilence_Call) RunAndReturn(run func(context.Context, []int64, string) error) *AlertRepository_BulkUpdateSilence_Call
- type AlertRepository_Expecter
- type Dispatcher
- type Dispatcher_Dispatch_Call
- func (_c *Dispatcher_Dispatch_Call) Return(_a0 []string, _a1 error) *Dispatcher_Dispatch_Call
- func (_c *Dispatcher_Dispatch_Call) Run(run func(ctx context.Context, ns []notification.Notification)) *Dispatcher_Dispatch_Call
- func (_c *Dispatcher_Dispatch_Call) RunAndReturn(run func(context.Context, []notification.Notification) ([]string, error)) *Dispatcher_Dispatch_Call
- type Dispatcher_Expecter
- 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) BulkCreate(_a0 context.Context, _a1 []notification.Notification) ([]notification.Notification, error)
- 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_BulkCreate_Call
- func (_c *Repository_BulkCreate_Call) Return(_a0 []notification.Notification, _a1 error) *Repository_BulkCreate_Call
- func (_c *Repository_BulkCreate_Call) Run(run func(_a0 context.Context, _a1 []notification.Notification)) *Repository_BulkCreate_Call
- func (_c *Repository_BulkCreate_Call) RunAndReturn(...) *Repository_BulkCreate_Call
- 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) BulkCreate(_a0 interface{}, _a1 interface{}) *Repository_BulkCreate_Call
- 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 Router
- type Router_Expecter
- type Router_PrepareMetaMessages_Call
- func (_c *Router_PrepareMetaMessages_Call) Return(metaMessages []notification.MetaMessage, notificationLogs []log.Notification, ...) *Router_PrepareMetaMessages_Call
- func (_c *Router_PrepareMetaMessages_Call) Run(run func(ctx context.Context, n notification.Notification)) *Router_PrepareMetaMessages_Call
- func (_c *Router_PrepareMetaMessages_Call) RunAndReturn(...) *Router_PrepareMetaMessages_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_MatchByLabelsV2_Call
- func (_c *SubscriptionService_MatchByLabelsV2_Call) Return(_a0 []subscription.ReceiverView, _a1 error) *SubscriptionService_MatchByLabelsV2_Call
- func (_c *SubscriptionService_MatchByLabelsV2_Call) Run(run func(ctx context.Context, namespaceID uint64, labels map[string]string)) *SubscriptionService_MatchByLabelsV2_Call
- func (_c *SubscriptionService_MatchByLabelsV2_Call) RunAndReturn(...) *SubscriptionService_MatchByLabelsV2_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 AlertRepository ¶ added in v0.7.6
AlertRepository is an autogenerated mock type for the AlertRepository type
func NewAlertRepository ¶ added in v0.7.6
func NewAlertRepository(t interface { mock.TestingT Cleanup(func()) }) *AlertRepository
NewAlertRepository creates a new instance of AlertRepository. 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 (*AlertRepository) BulkUpdateSilence ¶ added in v0.7.6
BulkUpdateSilence provides a mock function with given fields: _a0, _a1, _a2
func (*AlertRepository) EXPECT ¶ added in v0.7.6
func (_m *AlertRepository) EXPECT() *AlertRepository_Expecter
type AlertRepository_BulkUpdateSilence_Call ¶ added in v0.7.6
AlertRepository_BulkUpdateSilence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkUpdateSilence'
func (*AlertRepository_BulkUpdateSilence_Call) Return ¶ added in v0.7.6
func (_c *AlertRepository_BulkUpdateSilence_Call) Return(_a0 error) *AlertRepository_BulkUpdateSilence_Call
func (*AlertRepository_BulkUpdateSilence_Call) Run ¶ added in v0.7.6
func (_c *AlertRepository_BulkUpdateSilence_Call) Run(run func(_a0 context.Context, _a1 []int64, _a2 string)) *AlertRepository_BulkUpdateSilence_Call
func (*AlertRepository_BulkUpdateSilence_Call) RunAndReturn ¶ added in v0.7.6
func (_c *AlertRepository_BulkUpdateSilence_Call) RunAndReturn(run func(context.Context, []int64, string) error) *AlertRepository_BulkUpdateSilence_Call
type AlertRepository_Expecter ¶ added in v0.7.6
type AlertRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*AlertRepository_Expecter) BulkUpdateSilence ¶ added in v0.7.6
func (_e *AlertRepository_Expecter) BulkUpdateSilence(_a0 interface{}, _a1 interface{}, _a2 interface{}) *AlertRepository_BulkUpdateSilence_Call
BulkUpdateSilence is a helper method to define mock.On call
- _a0 context.Context
- _a1 []int64
- _a2 string
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) Dispatch ¶ added in v0.7.6
func (_m *Dispatcher) Dispatch(ctx context.Context, ns []notification.Notification) ([]string, error)
Dispatch provides a mock function with given fields: ctx, ns
func (*Dispatcher) EXPECT ¶
func (_m *Dispatcher) EXPECT() *Dispatcher_Expecter
type Dispatcher_Dispatch_Call ¶ added in v0.7.6
Dispatcher_Dispatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dispatch'
func (*Dispatcher_Dispatch_Call) Return ¶ added in v0.7.6
func (_c *Dispatcher_Dispatch_Call) Return(_a0 []string, _a1 error) *Dispatcher_Dispatch_Call
func (*Dispatcher_Dispatch_Call) Run ¶ added in v0.7.6
func (_c *Dispatcher_Dispatch_Call) Run(run func(ctx context.Context, ns []notification.Notification)) *Dispatcher_Dispatch_Call
func (*Dispatcher_Dispatch_Call) RunAndReturn ¶ added in v0.7.6
func (_c *Dispatcher_Dispatch_Call) RunAndReturn(run func(context.Context, []notification.Notification) ([]string, error)) *Dispatcher_Dispatch_Call
type Dispatcher_Expecter ¶
type Dispatcher_Expecter struct {
// contains filtered or unexported fields
}
func (*Dispatcher_Expecter) Dispatch ¶ added in v0.7.6
func (_e *Dispatcher_Expecter) Dispatch(ctx interface{}, ns interface{}) *Dispatcher_Dispatch_Call
Dispatch is a helper method to define mock.On call
- ctx context.Context
- ns []notification.Notification
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) BulkCreate ¶ added in v0.7.6
func (_m *Repository) BulkCreate(_a0 context.Context, _a1 []notification.Notification) ([]notification.Notification, error)
BulkCreate provides a mock function with given fields: _a0, _a1
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_BulkCreate_Call ¶ added in v0.7.6
Repository_BulkCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkCreate'
func (*Repository_BulkCreate_Call) Return ¶ added in v0.7.6
func (_c *Repository_BulkCreate_Call) Return(_a0 []notification.Notification, _a1 error) *Repository_BulkCreate_Call
func (*Repository_BulkCreate_Call) Run ¶ added in v0.7.6
func (_c *Repository_BulkCreate_Call) Run(run func(_a0 context.Context, _a1 []notification.Notification)) *Repository_BulkCreate_Call
func (*Repository_BulkCreate_Call) RunAndReturn ¶ added in v0.7.6
func (_c *Repository_BulkCreate_Call) RunAndReturn(run func(context.Context, []notification.Notification) ([]notification.Notification, error)) *Repository_BulkCreate_Call
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) BulkCreate ¶ added in v0.7.6
func (_e *Repository_Expecter) BulkCreate(_a0 interface{}, _a1 interface{}) *Repository_BulkCreate_Call
BulkCreate is a helper method to define mock.On call
- _a0 context.Context
- _a1 []notification.Notification
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 Router ¶ added in v0.7.6
Router is an autogenerated mock type for the Router type
func NewRouter ¶ added in v0.7.6
NewRouter creates a new instance of Router. 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 (*Router) EXPECT ¶ added in v0.7.6
func (_m *Router) EXPECT() *Router_Expecter
func (*Router) PrepareMetaMessages ¶ added in v0.7.6
func (_m *Router) PrepareMetaMessages(ctx context.Context, n notification.Notification) ([]notification.MetaMessage, []log.Notification, error)
PrepareMetaMessages provides a mock function with given fields: ctx, n
type Router_Expecter ¶ added in v0.7.6
type Router_Expecter struct {
// contains filtered or unexported fields
}
func (*Router_Expecter) PrepareMetaMessages ¶ added in v0.7.6
func (_e *Router_Expecter) PrepareMetaMessages(ctx interface{}, n interface{}) *Router_PrepareMetaMessages_Call
PrepareMetaMessages is a helper method to define mock.On call
- ctx context.Context
- n notification.Notification
type Router_PrepareMetaMessages_Call ¶ added in v0.7.6
Router_PrepareMetaMessages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrepareMetaMessages'
func (*Router_PrepareMetaMessages_Call) Return ¶ added in v0.7.6
func (_c *Router_PrepareMetaMessages_Call) Return(metaMessages []notification.MetaMessage, notificationLogs []log.Notification, err error) *Router_PrepareMetaMessages_Call
func (*Router_PrepareMetaMessages_Call) Run ¶ added in v0.7.6
func (_c *Router_PrepareMetaMessages_Call) Run(run func(ctx context.Context, n notification.Notification)) *Router_PrepareMetaMessages_Call
func (*Router_PrepareMetaMessages_Call) RunAndReturn ¶ added in v0.7.6
func (_c *Router_PrepareMetaMessages_Call) RunAndReturn(run func(context.Context, notification.Notification) ([]notification.MetaMessage, []log.Notification, error)) *Router_PrepareMetaMessages_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) MatchByLabelsV2 ¶ added in v0.7.5
func (_m *SubscriptionService) MatchByLabelsV2(ctx context.Context, namespaceID uint64, labels map[string]string) ([]subscription.ReceiverView, error)
MatchByLabelsV2 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) MatchByLabelsV2 ¶ added in v0.7.5
func (_e *SubscriptionService_Expecter) MatchByLabelsV2(ctx interface{}, namespaceID interface{}, labels interface{}) *SubscriptionService_MatchByLabelsV2_Call
MatchByLabelsV2 is a helper method to define mock.On call
- ctx context.Context
- namespaceID uint64
- labels map[string]string
type SubscriptionService_MatchByLabelsV2_Call ¶ added in v0.7.5
SubscriptionService_MatchByLabelsV2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MatchByLabelsV2'
func (*SubscriptionService_MatchByLabelsV2_Call) Return ¶ added in v0.7.5
func (_c *SubscriptionService_MatchByLabelsV2_Call) Return(_a0 []subscription.ReceiverView, _a1 error) *SubscriptionService_MatchByLabelsV2_Call
func (*SubscriptionService_MatchByLabelsV2_Call) Run ¶ added in v0.7.5
func (_c *SubscriptionService_MatchByLabelsV2_Call) Run(run func(ctx context.Context, namespaceID uint64, labels map[string]string)) *SubscriptionService_MatchByLabelsV2_Call
func (*SubscriptionService_MatchByLabelsV2_Call) RunAndReturn ¶ added in v0.7.5
func (_c *SubscriptionService_MatchByLabelsV2_Call) RunAndReturn(run func(context.Context, uint64, map[string]string) ([]subscription.ReceiverView, error)) *SubscriptionService_MatchByLabelsV2_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