Documentation ¶
Index ¶
- type NotificationLogRepository
- func (_m *NotificationLogRepository) BulkCreate(_a0 context.Context, _a1 []log.Notification) error
- func (_m *NotificationLogRepository) EXPECT() *NotificationLogRepository_Expecter
- func (_m *NotificationLogRepository) ListAlertIDsBySilenceID(_a0 context.Context, _a1 string) ([]int64, error)
- func (_m *NotificationLogRepository) ListSubscriptionIDsBySilenceID(_a0 context.Context, _a1 string) ([]int64, error)
- type NotificationLogRepository_BulkCreate_Call
- func (_c *NotificationLogRepository_BulkCreate_Call) Return(_a0 error) *NotificationLogRepository_BulkCreate_Call
- func (_c *NotificationLogRepository_BulkCreate_Call) Run(run func(_a0 context.Context, _a1 []log.Notification)) *NotificationLogRepository_BulkCreate_Call
- func (_c *NotificationLogRepository_BulkCreate_Call) RunAndReturn(run func(context.Context, []log.Notification) error) *NotificationLogRepository_BulkCreate_Call
- type NotificationLogRepository_Expecter
- func (_e *NotificationLogRepository_Expecter) BulkCreate(_a0 interface{}, _a1 interface{}) *NotificationLogRepository_BulkCreate_Call
- func (_e *NotificationLogRepository_Expecter) ListAlertIDsBySilenceID(_a0 interface{}, _a1 interface{}) *NotificationLogRepository_ListAlertIDsBySilenceID_Call
- func (_e *NotificationLogRepository_Expecter) ListSubscriptionIDsBySilenceID(_a0 interface{}, _a1 interface{}) *NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call
- type NotificationLogRepository_ListAlertIDsBySilenceID_Call
- func (_c *NotificationLogRepository_ListAlertIDsBySilenceID_Call) Return(_a0 []int64, _a1 error) *NotificationLogRepository_ListAlertIDsBySilenceID_Call
- func (_c *NotificationLogRepository_ListAlertIDsBySilenceID_Call) Run(run func(_a0 context.Context, _a1 string)) *NotificationLogRepository_ListAlertIDsBySilenceID_Call
- func (_c *NotificationLogRepository_ListAlertIDsBySilenceID_Call) RunAndReturn(run func(context.Context, string) ([]int64, error)) *NotificationLogRepository_ListAlertIDsBySilenceID_Call
- type NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call
- func (_c *NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call) Return(_a0 []int64, _a1 error) *NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call
- func (_c *NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call) Run(run func(_a0 context.Context, _a1 string)) *NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call
- func (_c *NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call) RunAndReturn(run func(context.Context, string) ([]int64, error)) *NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationLogRepository ¶
NotificationLogRepository is an autogenerated mock type for the NotificationLogRepository type
func NewNotificationLogRepository ¶
func NewNotificationLogRepository(t interface { mock.TestingT Cleanup(func()) }) *NotificationLogRepository
NewNotificationLogRepository creates a new instance of NotificationLogRepository. 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 (*NotificationLogRepository) BulkCreate ¶
func (_m *NotificationLogRepository) BulkCreate(_a0 context.Context, _a1 []log.Notification) error
BulkCreate provides a mock function with given fields: _a0, _a1
func (*NotificationLogRepository) EXPECT ¶
func (_m *NotificationLogRepository) EXPECT() *NotificationLogRepository_Expecter
func (*NotificationLogRepository) ListAlertIDsBySilenceID ¶
func (_m *NotificationLogRepository) ListAlertIDsBySilenceID(_a0 context.Context, _a1 string) ([]int64, error)
ListAlertIDsBySilenceID provides a mock function with given fields: _a0, _a1
func (*NotificationLogRepository) ListSubscriptionIDsBySilenceID ¶
func (_m *NotificationLogRepository) ListSubscriptionIDsBySilenceID(_a0 context.Context, _a1 string) ([]int64, error)
ListSubscriptionIDsBySilenceID provides a mock function with given fields: _a0, _a1
type NotificationLogRepository_BulkCreate_Call ¶
NotificationLogRepository_BulkCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkCreate'
func (*NotificationLogRepository_BulkCreate_Call) Return ¶
func (_c *NotificationLogRepository_BulkCreate_Call) Return(_a0 error) *NotificationLogRepository_BulkCreate_Call
func (*NotificationLogRepository_BulkCreate_Call) Run ¶
func (_c *NotificationLogRepository_BulkCreate_Call) Run(run func(_a0 context.Context, _a1 []log.Notification)) *NotificationLogRepository_BulkCreate_Call
func (*NotificationLogRepository_BulkCreate_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NotificationLogRepository_BulkCreate_Call) RunAndReturn(run func(context.Context, []log.Notification) error) *NotificationLogRepository_BulkCreate_Call
type NotificationLogRepository_Expecter ¶
type NotificationLogRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*NotificationLogRepository_Expecter) BulkCreate ¶
func (_e *NotificationLogRepository_Expecter) BulkCreate(_a0 interface{}, _a1 interface{}) *NotificationLogRepository_BulkCreate_Call
BulkCreate is a helper method to define mock.On call
- _a0 context.Context
- _a1 []log.Notification
func (*NotificationLogRepository_Expecter) ListAlertIDsBySilenceID ¶
func (_e *NotificationLogRepository_Expecter) ListAlertIDsBySilenceID(_a0 interface{}, _a1 interface{}) *NotificationLogRepository_ListAlertIDsBySilenceID_Call
ListAlertIDsBySilenceID is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*NotificationLogRepository_Expecter) ListSubscriptionIDsBySilenceID ¶
func (_e *NotificationLogRepository_Expecter) ListSubscriptionIDsBySilenceID(_a0 interface{}, _a1 interface{}) *NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call
ListSubscriptionIDsBySilenceID is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
type NotificationLogRepository_ListAlertIDsBySilenceID_Call ¶
NotificationLogRepository_ListAlertIDsBySilenceID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAlertIDsBySilenceID'
func (*NotificationLogRepository_ListAlertIDsBySilenceID_Call) Return ¶
func (_c *NotificationLogRepository_ListAlertIDsBySilenceID_Call) Return(_a0 []int64, _a1 error) *NotificationLogRepository_ListAlertIDsBySilenceID_Call
func (*NotificationLogRepository_ListAlertIDsBySilenceID_Call) Run ¶
func (_c *NotificationLogRepository_ListAlertIDsBySilenceID_Call) Run(run func(_a0 context.Context, _a1 string)) *NotificationLogRepository_ListAlertIDsBySilenceID_Call
func (*NotificationLogRepository_ListAlertIDsBySilenceID_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NotificationLogRepository_ListAlertIDsBySilenceID_Call) RunAndReturn(run func(context.Context, string) ([]int64, error)) *NotificationLogRepository_ListAlertIDsBySilenceID_Call
type NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call ¶
NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSubscriptionIDsBySilenceID'
func (*NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call) Return ¶
func (_c *NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call) Return(_a0 []int64, _a1 error) *NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call
func (*NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call) Run ¶
func (_c *NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call) Run(run func(_a0 context.Context, _a1 string)) *NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call
func (*NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call) RunAndReturn ¶ added in v0.6.1
func (_c *NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call) RunAndReturn(run func(context.Context, string) ([]int64, error)) *NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call