Documentation ¶
Index ¶
- type AlertService
- type AlertService_CreateAlerts_Call
- type AlertService_Expecter
- type AlertService_List_Call
- type NamespaceService
- func (_m *NamespaceService) Create(_a0 context.Context, _a1 *namespace.Namespace) error
- func (_m *NamespaceService) Delete(_a0 context.Context, _a1 uint64) error
- func (_m *NamespaceService) EXPECT() *NamespaceService_Expecter
- func (_m *NamespaceService) Get(_a0 context.Context, _a1 uint64) (*namespace.Namespace, error)
- func (_m *NamespaceService) List(_a0 context.Context) ([]namespace.Namespace, error)
- func (_m *NamespaceService) Update(_a0 context.Context, _a1 *namespace.Namespace) error
- type NamespaceService_Create_Call
- type NamespaceService_Delete_Call
- type NamespaceService_Expecter
- func (_e *NamespaceService_Expecter) Create(_a0 interface{}, _a1 interface{}) *NamespaceService_Create_Call
- func (_e *NamespaceService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *NamespaceService_Delete_Call
- func (_e *NamespaceService_Expecter) Get(_a0 interface{}, _a1 interface{}) *NamespaceService_Get_Call
- func (_e *NamespaceService_Expecter) List(_a0 interface{}) *NamespaceService_List_Call
- func (_e *NamespaceService_Expecter) Update(_a0 interface{}, _a1 interface{}) *NamespaceService_Update_Call
- type NamespaceService_Get_Call
- type NamespaceService_List_Call
- type NamespaceService_Update_Call
- type NotificationService
- func (_m *NotificationService) DispatchToReceiver(ctx context.Context, n notification.Notification, receiverID uint64) error
- func (_m *NotificationService) DispatchToSubscribers(ctx context.Context, n notification.Notification) error
- func (_m *NotificationService) EXPECT() *NotificationService_Expecter
- type NotificationService_DispatchToReceiver_Call
- func (_c *NotificationService_DispatchToReceiver_Call) Return(_a0 error) *NotificationService_DispatchToReceiver_Call
- func (_c *NotificationService_DispatchToReceiver_Call) Run(run func(ctx context.Context, n notification.Notification, receiverID uint64)) *NotificationService_DispatchToReceiver_Call
- type NotificationService_DispatchToSubscribers_Call
- type NotificationService_Expecter
- func (_e *NotificationService_Expecter) DispatchToReceiver(ctx interface{}, n interface{}, receiverID interface{}) *NotificationService_DispatchToReceiver_Call
- func (_e *NotificationService_Expecter) DispatchToSubscribers(ctx interface{}, n interface{}) *NotificationService_DispatchToSubscribers_Call
- type ProviderService
- func (_m *ProviderService) Create(_a0 context.Context, _a1 *provider.Provider) error
- func (_m *ProviderService) Delete(_a0 context.Context, _a1 uint64) error
- func (_m *ProviderService) EXPECT() *ProviderService_Expecter
- func (_m *ProviderService) Get(_a0 context.Context, _a1 uint64) (*provider.Provider, error)
- func (_m *ProviderService) List(_a0 context.Context, _a1 provider.Filter) ([]provider.Provider, error)
- func (_m *ProviderService) Update(_a0 context.Context, _a1 *provider.Provider) error
- type ProviderService_Create_Call
- type ProviderService_Delete_Call
- type ProviderService_Expecter
- func (_e *ProviderService_Expecter) Create(_a0 interface{}, _a1 interface{}) *ProviderService_Create_Call
- func (_e *ProviderService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ProviderService_Delete_Call
- func (_e *ProviderService_Expecter) Get(_a0 interface{}, _a1 interface{}) *ProviderService_Get_Call
- func (_e *ProviderService_Expecter) List(_a0 interface{}, _a1 interface{}) *ProviderService_List_Call
- func (_e *ProviderService_Expecter) Update(_a0 interface{}, _a1 interface{}) *ProviderService_Update_Call
- type ProviderService_Get_Call
- type ProviderService_List_Call
- type ProviderService_Update_Call
- type ReceiverService
- func (_m *ReceiverService) Create(ctx context.Context, rcv *receiver.Receiver) error
- func (_m *ReceiverService) Delete(ctx context.Context, id uint64) error
- func (_m *ReceiverService) EXPECT() *ReceiverService_Expecter
- func (_m *ReceiverService) Get(ctx context.Context, id uint64) (*receiver.Receiver, error)
- func (_m *ReceiverService) List(ctx context.Context, flt receiver.Filter) ([]receiver.Receiver, error)
- func (_m *ReceiverService) Update(ctx context.Context, rcv *receiver.Receiver) error
- type ReceiverService_Create_Call
- type ReceiverService_Delete_Call
- type ReceiverService_Expecter
- func (_e *ReceiverService_Expecter) Create(ctx interface{}, rcv interface{}) *ReceiverService_Create_Call
- func (_e *ReceiverService_Expecter) Delete(ctx interface{}, id interface{}) *ReceiverService_Delete_Call
- func (_e *ReceiverService_Expecter) Get(ctx interface{}, id interface{}) *ReceiverService_Get_Call
- func (_e *ReceiverService_Expecter) List(ctx interface{}, flt interface{}) *ReceiverService_List_Call
- func (_e *ReceiverService_Expecter) Update(ctx interface{}, rcv interface{}) *ReceiverService_Update_Call
- type ReceiverService_Get_Call
- type ReceiverService_List_Call
- type ReceiverService_Update_Call
- type RuleService
- type RuleService_Expecter
- type RuleService_List_Call
- type RuleService_Upsert_Call
- type SubscriptionService
- func (_m *SubscriptionService) Create(_a0 context.Context, _a1 *subscription.Subscription) error
- func (_m *SubscriptionService) Delete(_a0 context.Context, _a1 uint64) error
- func (_m *SubscriptionService) EXPECT() *SubscriptionService_Expecter
- func (_m *SubscriptionService) Get(_a0 context.Context, _a1 uint64) (*subscription.Subscription, error)
- func (_m *SubscriptionService) List(_a0 context.Context, _a1 subscription.Filter) ([]subscription.Subscription, error)
- func (_m *SubscriptionService) Update(_a0 context.Context, _a1 *subscription.Subscription) error
- type SubscriptionService_Create_Call
- type SubscriptionService_Delete_Call
- type SubscriptionService_Expecter
- func (_e *SubscriptionService_Expecter) Create(_a0 interface{}, _a1 interface{}) *SubscriptionService_Create_Call
- func (_e *SubscriptionService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *SubscriptionService_Delete_Call
- func (_e *SubscriptionService_Expecter) Get(_a0 interface{}, _a1 interface{}) *SubscriptionService_Get_Call
- func (_e *SubscriptionService_Expecter) List(_a0 interface{}, _a1 interface{}) *SubscriptionService_List_Call
- func (_e *SubscriptionService_Expecter) Update(_a0 interface{}, _a1 interface{}) *SubscriptionService_Update_Call
- type SubscriptionService_Get_Call
- type SubscriptionService_List_Call
- type SubscriptionService_Update_Call
- type TemplateService
- func (_m *TemplateService) Delete(_a0 context.Context, _a1 string) error
- func (_m *TemplateService) EXPECT() *TemplateService_Expecter
- func (_m *TemplateService) GetByName(_a0 context.Context, _a1 string) (*template.Template, error)
- func (_m *TemplateService) List(_a0 context.Context, _a1 template.Filter) ([]template.Template, error)
- func (_m *TemplateService) Render(_a0 context.Context, _a1 string, _a2 map[string]string) (string, error)
- func (_m *TemplateService) Upsert(_a0 context.Context, _a1 *template.Template) error
- type TemplateService_Delete_Call
- type TemplateService_Expecter
- func (_e *TemplateService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *TemplateService_Delete_Call
- func (_e *TemplateService_Expecter) GetByName(_a0 interface{}, _a1 interface{}) *TemplateService_GetByName_Call
- func (_e *TemplateService_Expecter) List(_a0 interface{}, _a1 interface{}) *TemplateService_List_Call
- func (_e *TemplateService_Expecter) Render(_a0 interface{}, _a1 interface{}, _a2 interface{}) *TemplateService_Render_Call
- func (_e *TemplateService_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *TemplateService_Upsert_Call
- type TemplateService_GetByName_Call
- type TemplateService_List_Call
- type TemplateService_Render_Call
- type TemplateService_Upsert_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 mockConstructorTestingTNewAlertService) *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.
func (*AlertService) CreateAlerts ¶
func (_m *AlertService) CreateAlerts(ctx context.Context, providerType string, providerID uint64, body map[string]interface{}) ([]*alert.Alert, int, error)
CreateAlerts provides a mock function with given fields: ctx, providerType, providerID, body
func (*AlertService) EXPECT ¶
func (_m *AlertService) EXPECT() *AlertService_Expecter
type AlertService_CreateAlerts_Call ¶
AlertService_CreateAlerts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAlerts'
func (*AlertService_CreateAlerts_Call) Return ¶
func (_c *AlertService_CreateAlerts_Call) Return(_a0 []*alert.Alert, _a1 int, _a2 error) *AlertService_CreateAlerts_Call
func (*AlertService_CreateAlerts_Call) Run ¶
func (_c *AlertService_CreateAlerts_Call) Run(run func(ctx context.Context, providerType string, providerID uint64, body map[string]interface{})) *AlertService_CreateAlerts_Call
type AlertService_Expecter ¶
type AlertService_Expecter struct {
// contains filtered or unexported fields
}
func (*AlertService_Expecter) CreateAlerts ¶
func (_e *AlertService_Expecter) CreateAlerts(ctx interface{}, providerType interface{}, providerID interface{}, body interface{}) *AlertService_CreateAlerts_Call
CreateAlerts is a helper method to define mock.On call
- ctx context.Context
- providerType string
- providerID uint64
- body map[string]interface{}
func (*AlertService_Expecter) List ¶
func (_e *AlertService_Expecter) List(_a0 interface{}, _a1 interface{}) *AlertService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 alert.Filter
type AlertService_List_Call ¶
AlertService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*AlertService_List_Call) Return ¶
func (_c *AlertService_List_Call) Return(_a0 []alert.Alert, _a1 error) *AlertService_List_Call
func (*AlertService_List_Call) Run ¶
func (_c *AlertService_List_Call) Run(run func(_a0 context.Context, _a1 alert.Filter)) *AlertService_List_Call
type NamespaceService ¶
NamespaceService is an autogenerated mock type for the NamespaceService type
func NewNamespaceService ¶
func NewNamespaceService(t mockConstructorTestingTNewNamespaceService) *NamespaceService
NewNamespaceService creates a new instance of NamespaceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*NamespaceService) Delete ¶
func (_m *NamespaceService) Delete(_a0 context.Context, _a1 uint64) error
Delete provides a mock function with given fields: _a0, _a1
func (*NamespaceService) EXPECT ¶
func (_m *NamespaceService) EXPECT() *NamespaceService_Expecter
type NamespaceService_Create_Call ¶
NamespaceService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*NamespaceService_Create_Call) Return ¶
func (_c *NamespaceService_Create_Call) Return(_a0 error) *NamespaceService_Create_Call
func (*NamespaceService_Create_Call) Run ¶
func (_c *NamespaceService_Create_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceService_Create_Call
type NamespaceService_Delete_Call ¶
NamespaceService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*NamespaceService_Delete_Call) Return ¶
func (_c *NamespaceService_Delete_Call) Return(_a0 error) *NamespaceService_Delete_Call
func (*NamespaceService_Delete_Call) Run ¶
func (_c *NamespaceService_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *NamespaceService_Delete_Call
type NamespaceService_Expecter ¶
type NamespaceService_Expecter struct {
// contains filtered or unexported fields
}
func (*NamespaceService_Expecter) Create ¶
func (_e *NamespaceService_Expecter) Create(_a0 interface{}, _a1 interface{}) *NamespaceService_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *namespace.Namespace
func (*NamespaceService_Expecter) Delete ¶
func (_e *NamespaceService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *NamespaceService_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*NamespaceService_Expecter) Get ¶
func (_e *NamespaceService_Expecter) Get(_a0 interface{}, _a1 interface{}) *NamespaceService_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*NamespaceService_Expecter) List ¶
func (_e *NamespaceService_Expecter) List(_a0 interface{}) *NamespaceService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
func (*NamespaceService_Expecter) Update ¶
func (_e *NamespaceService_Expecter) Update(_a0 interface{}, _a1 interface{}) *NamespaceService_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *namespace.Namespace
type NamespaceService_Get_Call ¶
NamespaceService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*NamespaceService_Get_Call) Return ¶
func (_c *NamespaceService_Get_Call) Return(_a0 *namespace.Namespace, _a1 error) *NamespaceService_Get_Call
func (*NamespaceService_Get_Call) Run ¶
func (_c *NamespaceService_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *NamespaceService_Get_Call
type NamespaceService_List_Call ¶
NamespaceService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*NamespaceService_List_Call) Return ¶
func (_c *NamespaceService_List_Call) Return(_a0 []namespace.Namespace, _a1 error) *NamespaceService_List_Call
func (*NamespaceService_List_Call) Run ¶
func (_c *NamespaceService_List_Call) Run(run func(_a0 context.Context)) *NamespaceService_List_Call
type NamespaceService_Update_Call ¶
NamespaceService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*NamespaceService_Update_Call) Return ¶
func (_c *NamespaceService_Update_Call) Return(_a0 error) *NamespaceService_Update_Call
func (*NamespaceService_Update_Call) Run ¶
func (_c *NamespaceService_Update_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceService_Update_Call
type NotificationService ¶
NotificationService is an autogenerated mock type for the NotificationService type
func NewNotificationService ¶
func NewNotificationService(t mockConstructorTestingTNewNotificationService) *NotificationService
NewNotificationService creates a new instance of NotificationService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*NotificationService) DispatchToReceiver ¶
func (_m *NotificationService) DispatchToReceiver(ctx context.Context, n notification.Notification, receiverID uint64) error
DispatchToReceiver provides a mock function with given fields: ctx, n, receiverID
func (*NotificationService) DispatchToSubscribers ¶
func (_m *NotificationService) DispatchToSubscribers(ctx context.Context, n notification.Notification) error
DispatchToSubscribers provides a mock function with given fields: ctx, n
func (*NotificationService) EXPECT ¶
func (_m *NotificationService) EXPECT() *NotificationService_Expecter
type NotificationService_DispatchToReceiver_Call ¶
NotificationService_DispatchToReceiver_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DispatchToReceiver'
func (*NotificationService_DispatchToReceiver_Call) Return ¶
func (_c *NotificationService_DispatchToReceiver_Call) Return(_a0 error) *NotificationService_DispatchToReceiver_Call
func (*NotificationService_DispatchToReceiver_Call) Run ¶
func (_c *NotificationService_DispatchToReceiver_Call) Run(run func(ctx context.Context, n notification.Notification, receiverID uint64)) *NotificationService_DispatchToReceiver_Call
type NotificationService_DispatchToSubscribers_Call ¶
NotificationService_DispatchToSubscribers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DispatchToSubscribers'
func (*NotificationService_DispatchToSubscribers_Call) Return ¶
func (_c *NotificationService_DispatchToSubscribers_Call) Return(_a0 error) *NotificationService_DispatchToSubscribers_Call
func (*NotificationService_DispatchToSubscribers_Call) Run ¶
func (_c *NotificationService_DispatchToSubscribers_Call) Run(run func(ctx context.Context, n notification.Notification)) *NotificationService_DispatchToSubscribers_Call
type NotificationService_Expecter ¶
type NotificationService_Expecter struct {
// contains filtered or unexported fields
}
func (*NotificationService_Expecter) DispatchToReceiver ¶
func (_e *NotificationService_Expecter) DispatchToReceiver(ctx interface{}, n interface{}, receiverID interface{}) *NotificationService_DispatchToReceiver_Call
DispatchToReceiver is a helper method to define mock.On call
- ctx context.Context
- n notification.Notification
- receiverID uint64
func (*NotificationService_Expecter) DispatchToSubscribers ¶
func (_e *NotificationService_Expecter) DispatchToSubscribers(ctx interface{}, n interface{}) *NotificationService_DispatchToSubscribers_Call
DispatchToSubscribers is a helper method to define mock.On call
- ctx context.Context
- n notification.Notification
type ProviderService ¶
ProviderService is an autogenerated mock type for the ProviderService type
func NewProviderService ¶
func NewProviderService(t mockConstructorTestingTNewProviderService) *ProviderService
NewProviderService creates a new instance of ProviderService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ProviderService) Delete ¶
func (_m *ProviderService) Delete(_a0 context.Context, _a1 uint64) error
Delete provides a mock function with given fields: _a0, _a1
func (*ProviderService) EXPECT ¶
func (_m *ProviderService) EXPECT() *ProviderService_Expecter
type ProviderService_Create_Call ¶
ProviderService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ProviderService_Create_Call) Return ¶
func (_c *ProviderService_Create_Call) Return(_a0 error) *ProviderService_Create_Call
func (*ProviderService_Create_Call) Run ¶
func (_c *ProviderService_Create_Call) Run(run func(_a0 context.Context, _a1 *provider.Provider)) *ProviderService_Create_Call
type ProviderService_Delete_Call ¶
ProviderService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ProviderService_Delete_Call) Return ¶
func (_c *ProviderService_Delete_Call) Return(_a0 error) *ProviderService_Delete_Call
func (*ProviderService_Delete_Call) Run ¶
func (_c *ProviderService_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *ProviderService_Delete_Call
type ProviderService_Expecter ¶
type ProviderService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProviderService_Expecter) Create ¶
func (_e *ProviderService_Expecter) Create(_a0 interface{}, _a1 interface{}) *ProviderService_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *provider.Provider
func (*ProviderService_Expecter) Delete ¶
func (_e *ProviderService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ProviderService_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*ProviderService_Expecter) Get ¶
func (_e *ProviderService_Expecter) Get(_a0 interface{}, _a1 interface{}) *ProviderService_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*ProviderService_Expecter) List ¶
func (_e *ProviderService_Expecter) List(_a0 interface{}, _a1 interface{}) *ProviderService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 provider.Filter
func (*ProviderService_Expecter) Update ¶
func (_e *ProviderService_Expecter) Update(_a0 interface{}, _a1 interface{}) *ProviderService_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *provider.Provider
type ProviderService_Get_Call ¶
ProviderService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ProviderService_Get_Call) Return ¶
func (_c *ProviderService_Get_Call) Return(_a0 *provider.Provider, _a1 error) *ProviderService_Get_Call
func (*ProviderService_Get_Call) Run ¶
func (_c *ProviderService_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *ProviderService_Get_Call
type ProviderService_List_Call ¶
ProviderService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ProviderService_List_Call) Return ¶
func (_c *ProviderService_List_Call) Return(_a0 []provider.Provider, _a1 error) *ProviderService_List_Call
func (*ProviderService_List_Call) Run ¶
func (_c *ProviderService_List_Call) Run(run func(_a0 context.Context, _a1 provider.Filter)) *ProviderService_List_Call
type ProviderService_Update_Call ¶
ProviderService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ProviderService_Update_Call) Return ¶
func (_c *ProviderService_Update_Call) Return(_a0 error) *ProviderService_Update_Call
func (*ProviderService_Update_Call) Run ¶
func (_c *ProviderService_Update_Call) Run(run func(_a0 context.Context, _a1 *provider.Provider)) *ProviderService_Update_Call
type ReceiverService ¶
ReceiverService is an autogenerated mock type for the ReceiverService type
func NewReceiverService ¶
func NewReceiverService(t mockConstructorTestingTNewReceiverService) *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.
func (*ReceiverService) Delete ¶
func (_m *ReceiverService) Delete(ctx context.Context, id uint64) error
Delete provides a mock function with given fields: ctx, id
func (*ReceiverService) EXPECT ¶
func (_m *ReceiverService) EXPECT() *ReceiverService_Expecter
type ReceiverService_Create_Call ¶
ReceiverService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ReceiverService_Create_Call) Return ¶
func (_c *ReceiverService_Create_Call) Return(_a0 error) *ReceiverService_Create_Call
func (*ReceiverService_Create_Call) Run ¶
func (_c *ReceiverService_Create_Call) Run(run func(ctx context.Context, rcv *receiver.Receiver)) *ReceiverService_Create_Call
type ReceiverService_Delete_Call ¶
ReceiverService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ReceiverService_Delete_Call) Return ¶
func (_c *ReceiverService_Delete_Call) Return(_a0 error) *ReceiverService_Delete_Call
func (*ReceiverService_Delete_Call) Run ¶
func (_c *ReceiverService_Delete_Call) Run(run func(ctx context.Context, id uint64)) *ReceiverService_Delete_Call
type ReceiverService_Expecter ¶
type ReceiverService_Expecter struct {
// contains filtered or unexported fields
}
func (*ReceiverService_Expecter) Create ¶
func (_e *ReceiverService_Expecter) Create(ctx interface{}, rcv interface{}) *ReceiverService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- rcv *receiver.Receiver
func (*ReceiverService_Expecter) Delete ¶
func (_e *ReceiverService_Expecter) Delete(ctx interface{}, id interface{}) *ReceiverService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id uint64
func (*ReceiverService_Expecter) Get ¶
func (_e *ReceiverService_Expecter) Get(ctx interface{}, id interface{}) *ReceiverService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id uint64
func (*ReceiverService_Expecter) List ¶
func (_e *ReceiverService_Expecter) List(ctx interface{}, flt interface{}) *ReceiverService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt receiver.Filter
func (*ReceiverService_Expecter) Update ¶
func (_e *ReceiverService_Expecter) Update(ctx interface{}, rcv interface{}) *ReceiverService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- rcv *receiver.Receiver
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)) *ReceiverService_Get_Call
type ReceiverService_List_Call ¶
ReceiverService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ReceiverService_List_Call) Return ¶
func (_c *ReceiverService_List_Call) Return(_a0 []receiver.Receiver, _a1 error) *ReceiverService_List_Call
func (*ReceiverService_List_Call) Run ¶
func (_c *ReceiverService_List_Call) Run(run func(ctx context.Context, flt receiver.Filter)) *ReceiverService_List_Call
type ReceiverService_Update_Call ¶
ReceiverService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ReceiverService_Update_Call) Return ¶
func (_c *ReceiverService_Update_Call) Return(_a0 error) *ReceiverService_Update_Call
func (*ReceiverService_Update_Call) Run ¶
func (_c *ReceiverService_Update_Call) Run(run func(ctx context.Context, rcv *receiver.Receiver)) *ReceiverService_Update_Call
type RuleService ¶
RuleService is an autogenerated mock type for the RuleService type
func NewRuleService ¶
func NewRuleService(t mockConstructorTestingTNewRuleService) *RuleService
NewRuleService creates a new instance of RuleService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RuleService) EXPECT ¶
func (_m *RuleService) EXPECT() *RuleService_Expecter
type RuleService_Expecter ¶
type RuleService_Expecter struct {
// contains filtered or unexported fields
}
func (*RuleService_Expecter) List ¶
func (_e *RuleService_Expecter) List(_a0 interface{}, _a1 interface{}) *RuleService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 rule.Filter
func (*RuleService_Expecter) Upsert ¶
func (_e *RuleService_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *RuleService_Upsert_Call
Upsert is a helper method to define mock.On call
- _a0 context.Context
- _a1 *rule.Rule
type RuleService_List_Call ¶
RuleService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*RuleService_List_Call) Return ¶
func (_c *RuleService_List_Call) Return(_a0 []rule.Rule, _a1 error) *RuleService_List_Call
func (*RuleService_List_Call) Run ¶
func (_c *RuleService_List_Call) Run(run func(_a0 context.Context, _a1 rule.Filter)) *RuleService_List_Call
type RuleService_Upsert_Call ¶
RuleService_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*RuleService_Upsert_Call) Return ¶
func (_c *RuleService_Upsert_Call) Return(_a0 error) *RuleService_Upsert_Call
func (*RuleService_Upsert_Call) Run ¶
func (_c *RuleService_Upsert_Call) Run(run func(_a0 context.Context, _a1 *rule.Rule)) *RuleService_Upsert_Call
type SubscriptionService ¶
SubscriptionService is an autogenerated mock type for the SubscriptionService type
func NewSubscriptionService ¶
func NewSubscriptionService(t mockConstructorTestingTNewSubscriptionService) *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.
func (*SubscriptionService) Create ¶
func (_m *SubscriptionService) Create(_a0 context.Context, _a1 *subscription.Subscription) error
Create provides a mock function with given fields: _a0, _a1
func (*SubscriptionService) Delete ¶
func (_m *SubscriptionService) Delete(_a0 context.Context, _a1 uint64) error
Delete provides a mock function with given fields: _a0, _a1
func (*SubscriptionService) EXPECT ¶
func (_m *SubscriptionService) EXPECT() *SubscriptionService_Expecter
func (*SubscriptionService) Get ¶
func (_m *SubscriptionService) Get(_a0 context.Context, _a1 uint64) (*subscription.Subscription, error)
Get provides a mock function with given fields: _a0, _a1
func (*SubscriptionService) List ¶
func (_m *SubscriptionService) List(_a0 context.Context, _a1 subscription.Filter) ([]subscription.Subscription, error)
List provides a mock function with given fields: _a0, _a1
func (*SubscriptionService) Update ¶
func (_m *SubscriptionService) Update(_a0 context.Context, _a1 *subscription.Subscription) error
Update provides a mock function with given fields: _a0, _a1
type SubscriptionService_Create_Call ¶
SubscriptionService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*SubscriptionService_Create_Call) Return ¶
func (_c *SubscriptionService_Create_Call) Return(_a0 error) *SubscriptionService_Create_Call
func (*SubscriptionService_Create_Call) Run ¶
func (_c *SubscriptionService_Create_Call) Run(run func(_a0 context.Context, _a1 *subscription.Subscription)) *SubscriptionService_Create_Call
type SubscriptionService_Delete_Call ¶
SubscriptionService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*SubscriptionService_Delete_Call) Return ¶
func (_c *SubscriptionService_Delete_Call) Return(_a0 error) *SubscriptionService_Delete_Call
func (*SubscriptionService_Delete_Call) Run ¶
func (_c *SubscriptionService_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *SubscriptionService_Delete_Call
type SubscriptionService_Expecter ¶
type SubscriptionService_Expecter struct {
// contains filtered or unexported fields
}
func (*SubscriptionService_Expecter) Create ¶
func (_e *SubscriptionService_Expecter) Create(_a0 interface{}, _a1 interface{}) *SubscriptionService_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *subscription.Subscription
func (*SubscriptionService_Expecter) Delete ¶
func (_e *SubscriptionService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *SubscriptionService_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*SubscriptionService_Expecter) Get ¶
func (_e *SubscriptionService_Expecter) Get(_a0 interface{}, _a1 interface{}) *SubscriptionService_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*SubscriptionService_Expecter) List ¶
func (_e *SubscriptionService_Expecter) List(_a0 interface{}, _a1 interface{}) *SubscriptionService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 subscription.Filter
func (*SubscriptionService_Expecter) Update ¶
func (_e *SubscriptionService_Expecter) Update(_a0 interface{}, _a1 interface{}) *SubscriptionService_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *subscription.Subscription
type SubscriptionService_Get_Call ¶
SubscriptionService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*SubscriptionService_Get_Call) Return ¶
func (_c *SubscriptionService_Get_Call) Return(_a0 *subscription.Subscription, _a1 error) *SubscriptionService_Get_Call
func (*SubscriptionService_Get_Call) Run ¶
func (_c *SubscriptionService_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *SubscriptionService_Get_Call
type SubscriptionService_List_Call ¶
SubscriptionService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*SubscriptionService_List_Call) Return ¶
func (_c *SubscriptionService_List_Call) Return(_a0 []subscription.Subscription, _a1 error) *SubscriptionService_List_Call
func (*SubscriptionService_List_Call) Run ¶
func (_c *SubscriptionService_List_Call) Run(run func(_a0 context.Context, _a1 subscription.Filter)) *SubscriptionService_List_Call
type SubscriptionService_Update_Call ¶
SubscriptionService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*SubscriptionService_Update_Call) Return ¶
func (_c *SubscriptionService_Update_Call) Return(_a0 error) *SubscriptionService_Update_Call
func (*SubscriptionService_Update_Call) Run ¶
func (_c *SubscriptionService_Update_Call) Run(run func(_a0 context.Context, _a1 *subscription.Subscription)) *SubscriptionService_Update_Call
type TemplateService ¶
TemplateService is an autogenerated mock type for the TemplateService type
func NewTemplateService ¶
func NewTemplateService(t mockConstructorTestingTNewTemplateService) *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.
func (*TemplateService) Delete ¶
func (_m *TemplateService) Delete(_a0 context.Context, _a1 string) error
Delete provides a mock function with given fields: _a0, _a1
func (*TemplateService) EXPECT ¶
func (_m *TemplateService) EXPECT() *TemplateService_Expecter
func (*TemplateService) List ¶
func (_m *TemplateService) List(_a0 context.Context, _a1 template.Filter) ([]template.Template, error)
List provides a mock function with given fields: _a0, _a1
type TemplateService_Delete_Call ¶
TemplateService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*TemplateService_Delete_Call) Return ¶
func (_c *TemplateService_Delete_Call) Return(_a0 error) *TemplateService_Delete_Call
func (*TemplateService_Delete_Call) Run ¶
func (_c *TemplateService_Delete_Call) Run(run func(_a0 context.Context, _a1 string)) *TemplateService_Delete_Call
type TemplateService_Expecter ¶
type TemplateService_Expecter struct {
// contains filtered or unexported fields
}
func (*TemplateService_Expecter) Delete ¶
func (_e *TemplateService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *TemplateService_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*TemplateService_Expecter) GetByName ¶
func (_e *TemplateService_Expecter) GetByName(_a0 interface{}, _a1 interface{}) *TemplateService_GetByName_Call
GetByName is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*TemplateService_Expecter) List ¶
func (_e *TemplateService_Expecter) List(_a0 interface{}, _a1 interface{}) *TemplateService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 template.Filter
func (*TemplateService_Expecter) Render ¶
func (_e *TemplateService_Expecter) Render(_a0 interface{}, _a1 interface{}, _a2 interface{}) *TemplateService_Render_Call
Render is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 map[string]string
func (*TemplateService_Expecter) Upsert ¶
func (_e *TemplateService_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *TemplateService_Upsert_Call
Upsert is a helper method to define mock.On call
- _a0 context.Context
- _a1 *template.Template
type TemplateService_GetByName_Call ¶
TemplateService_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName'
func (*TemplateService_GetByName_Call) Return ¶
func (_c *TemplateService_GetByName_Call) Return(_a0 *template.Template, _a1 error) *TemplateService_GetByName_Call
func (*TemplateService_GetByName_Call) Run ¶
func (_c *TemplateService_GetByName_Call) Run(run func(_a0 context.Context, _a1 string)) *TemplateService_GetByName_Call
type TemplateService_List_Call ¶
TemplateService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*TemplateService_List_Call) Return ¶
func (_c *TemplateService_List_Call) Return(_a0 []template.Template, _a1 error) *TemplateService_List_Call
func (*TemplateService_List_Call) Run ¶
func (_c *TemplateService_List_Call) Run(run func(_a0 context.Context, _a1 template.Filter)) *TemplateService_List_Call
type TemplateService_Render_Call ¶
TemplateService_Render_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Render'
func (*TemplateService_Render_Call) Return ¶
func (_c *TemplateService_Render_Call) Return(_a0 string, _a1 error) *TemplateService_Render_Call
func (*TemplateService_Render_Call) Run ¶
func (_c *TemplateService_Render_Call) Run(run func(_a0 context.Context, _a1 string, _a2 map[string]string)) *TemplateService_Render_Call
type TemplateService_Upsert_Call ¶
TemplateService_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*TemplateService_Upsert_Call) Return ¶
func (_c *TemplateService_Upsert_Call) Return(_a0 error) *TemplateService_Upsert_Call
func (*TemplateService_Upsert_Call) Run ¶
func (_c *TemplateService_Upsert_Call) Run(run func(_a0 context.Context, _a1 *template.Template)) *TemplateService_Upsert_Call