Documentation ¶
Index ¶
- type ConfigProvider
- type Store
- func (_m *Store) Delete(ctx context.Context, id int) error
- func (_m *Store) List(ctx context.Context, includeDeleted bool) ([]*alerts.Alert, error)
- func (_m *Store) ReplaceAll(ctx context.Context, req []*alerts.SaveRequest) error
- func (_m *Store) Save(ctx context.Context, req *alerts.SaveRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigProvider ¶
ConfigProvider is an autogenerated mock type for the ConfigProvider type
func NewConfigProvider ¶
func NewConfigProvider(t interface { mock.TestingT Cleanup(func()) }) *ConfigProvider
NewConfigProvider creates a new instance of ConfigProvider. 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 (*ConfigProvider) GetAlertConfig ¶
func (_m *ConfigProvider) GetAlertConfig(alertId int64) (*alerts.Alert, error)
GetAlertConfig provides a mock function with given fields: alertId
func (*ConfigProvider) GetAllAlertConfigs ¶
func (_m *ConfigProvider) GetAllAlertConfigs(ctx context.Context, includeDeleted bool) ([]*alerts.Alert, error)
GetAllAlertConfigs provides a mock function with given fields: ctx, includeDeleted
type Store ¶
Store is an autogenerated mock type for the Store type
func NewStore ¶
NewStore creates a new instance of Store. 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 (*Store) ReplaceAll ¶
ReplaceAll provides a mock function with given fields: ctx, req