Documentation ¶
Index ¶
- type AlertRepository
- type AlertRepository_Create_Call
- type AlertRepository_Expecter
- type AlertRepository_List_Call
- type AlertTransformer
- type AlertTransformer_Expecter
- type AlertTransformer_TransformToAlerts_Call
- func (_c *AlertTransformer_TransformToAlerts_Call) Return(_a0 []*alert.Alert, _a1 int, _a2 error) *AlertTransformer_TransformToAlerts_Call
- func (_c *AlertTransformer_TransformToAlerts_Call) Run(run func(ctx context.Context, providerID uint64, body map[string]interface{})) *AlertTransformer_TransformToAlerts_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertRepository ¶
AlertRepository is an autogenerated mock type for the Repository type
func NewAlertRepository ¶
func NewAlertRepository(t mockConstructorTestingTNewAlertRepository) *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.
func (*AlertRepository) EXPECT ¶
func (_m *AlertRepository) EXPECT() *AlertRepository_Expecter
type AlertRepository_Create_Call ¶
AlertRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*AlertRepository_Create_Call) Return ¶
func (_c *AlertRepository_Create_Call) Return(_a0 error) *AlertRepository_Create_Call
func (*AlertRepository_Create_Call) Run ¶
func (_c *AlertRepository_Create_Call) Run(run func(_a0 context.Context, _a1 *alert.Alert)) *AlertRepository_Create_Call
type AlertRepository_Expecter ¶
type AlertRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*AlertRepository_Expecter) Create ¶
func (_e *AlertRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *AlertRepository_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *alert.Alert
func (*AlertRepository_Expecter) List ¶
func (_e *AlertRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *AlertRepository_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 alert.Filter
type AlertRepository_List_Call ¶
AlertRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*AlertRepository_List_Call) Return ¶
func (_c *AlertRepository_List_Call) Return(_a0 []alert.Alert, _a1 error) *AlertRepository_List_Call
func (*AlertRepository_List_Call) Run ¶
func (_c *AlertRepository_List_Call) Run(run func(_a0 context.Context, _a1 alert.Filter)) *AlertRepository_List_Call
type AlertTransformer ¶ added in v0.5.0
AlertTransformer is an autogenerated mock type for the AlertTransformer type
func NewAlertTransformer ¶ added in v0.5.0
func NewAlertTransformer(t mockConstructorTestingTNewAlertTransformer) *AlertTransformer
NewAlertTransformer creates a new instance of AlertTransformer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AlertTransformer) EXPECT ¶ added in v0.5.0
func (_m *AlertTransformer) EXPECT() *AlertTransformer_Expecter
type AlertTransformer_Expecter ¶ added in v0.5.0
type AlertTransformer_Expecter struct {
// contains filtered or unexported fields
}
func (*AlertTransformer_Expecter) TransformToAlerts ¶ added in v0.5.0
func (_e *AlertTransformer_Expecter) TransformToAlerts(ctx interface{}, providerID interface{}, body interface{}) *AlertTransformer_TransformToAlerts_Call
TransformToAlerts is a helper method to define mock.On call
- ctx context.Context
- providerID uint64
- body map[string]interface{}
type AlertTransformer_TransformToAlerts_Call ¶ added in v0.5.0
AlertTransformer_TransformToAlerts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformToAlerts'
func (*AlertTransformer_TransformToAlerts_Call) Return ¶ added in v0.5.0
func (_c *AlertTransformer_TransformToAlerts_Call) Return(_a0 []*alert.Alert, _a1 int, _a2 error) *AlertTransformer_TransformToAlerts_Call
func (*AlertTransformer_TransformToAlerts_Call) Run ¶ added in v0.5.0
func (_c *AlertTransformer_TransformToAlerts_Call) Run(run func(ctx context.Context, providerID uint64, body map[string]interface{})) *AlertTransformer_TransformToAlerts_Call