Documentation
¶
Index ¶
- type NotificationChannelRepository
- func (_m *NotificationChannelRepository) EXPECT() *NotificationChannelRepository_Expecter
- func (_mock *NotificationChannelRepository) GetNotificationChannelById(ctx context.Context, id string) (models.NotificationChannel, error)
- func (_mock *NotificationChannelRepository) ListNotificationChannelsByType(ctx context.Context, channelType models.ChannelType) ([]models.NotificationChannel, error)
- type NotificationChannelRepository_Expecter
- func (_e *NotificationChannelRepository_Expecter) GetNotificationChannelById(ctx interface{}, id interface{}) *NotificationChannelRepository_GetNotificationChannelById_Call
- func (_e *NotificationChannelRepository_Expecter) ListNotificationChannelsByType(ctx interface{}, channelType interface{}) *NotificationChannelRepository_ListNotificationChannelsByType_Call
- type NotificationChannelRepository_GetNotificationChannelById_Call
- func (_c *NotificationChannelRepository_GetNotificationChannelById_Call) Return(notificationChannel models.NotificationChannel, err error) *NotificationChannelRepository_GetNotificationChannelById_Call
- func (_c *NotificationChannelRepository_GetNotificationChannelById_Call) Run(run func(ctx context.Context, id string)) *NotificationChannelRepository_GetNotificationChannelById_Call
- func (_c *NotificationChannelRepository_GetNotificationChannelById_Call) RunAndReturn(run func(ctx context.Context, id string) (models.NotificationChannel, error)) *NotificationChannelRepository_GetNotificationChannelById_Call
- type NotificationChannelRepository_ListNotificationChannelsByType_Call
- func (_c *NotificationChannelRepository_ListNotificationChannelsByType_Call) Return(notificationChannels []models.NotificationChannel, err error) *NotificationChannelRepository_ListNotificationChannelsByType_Call
- func (_c *NotificationChannelRepository_ListNotificationChannelsByType_Call) Run(run func(ctx context.Context, channelType models.ChannelType)) *NotificationChannelRepository_ListNotificationChannelsByType_Call
- func (_c *NotificationChannelRepository_ListNotificationChannelsByType_Call) RunAndReturn(...) *NotificationChannelRepository_ListNotificationChannelsByType_Call
- type OriginRepository
- type OriginRepository_Expecter
- type OriginRepository_ListOrigins_Call
- func (_c *OriginRepository_ListOrigins_Call) Return(origins []entities.Origin, err error) *OriginRepository_ListOrigins_Call
- func (_c *OriginRepository_ListOrigins_Call) Run(run func(ctx context.Context)) *OriginRepository_ListOrigins_Call
- func (_c *OriginRepository_ListOrigins_Call) RunAndReturn(run func(ctx context.Context) ([]entities.Origin, error)) *OriginRepository_ListOrigins_Call
- type OriginRepository_UpsertOrigins_Call
- func (_c *OriginRepository_UpsertOrigins_Call) Return(err error) *OriginRepository_UpsertOrigins_Call
- func (_c *OriginRepository_UpsertOrigins_Call) Run(run func(ctx context.Context, serviceID string, origins []entities.Origin)) *OriginRepository_UpsertOrigins_Call
- func (_c *OriginRepository_UpsertOrigins_Call) RunAndReturn(...) *OriginRepository_UpsertOrigins_Call
- type RuleRepository
- func (_mock *RuleRepository) Create(ctx context.Context, rule models.Rule) (models.Rule, error)
- func (_mock *RuleRepository) Delete(ctx context.Context, id string) error
- func (_m *RuleRepository) EXPECT() *RuleRepository_Expecter
- func (_mock *RuleRepository) Get(ctx context.Context, id string) (models.Rule, error)
- func (_mock *RuleRepository) List(ctx context.Context) ([]models.Rule, error)
- func (_mock *RuleRepository) Update(ctx context.Context, id string, rule models.Rule) (models.Rule, error)
- type RuleRepository_Create_Call
- func (_c *RuleRepository_Create_Call) Return(rule1 models.Rule, err error) *RuleRepository_Create_Call
- func (_c *RuleRepository_Create_Call) Run(run func(ctx context.Context, rule models.Rule)) *RuleRepository_Create_Call
- func (_c *RuleRepository_Create_Call) RunAndReturn(run func(ctx context.Context, rule models.Rule) (models.Rule, error)) *RuleRepository_Create_Call
- type RuleRepository_Delete_Call
- func (_c *RuleRepository_Delete_Call) Return(err error) *RuleRepository_Delete_Call
- func (_c *RuleRepository_Delete_Call) Run(run func(ctx context.Context, id string)) *RuleRepository_Delete_Call
- func (_c *RuleRepository_Delete_Call) RunAndReturn(run func(ctx context.Context, id string) error) *RuleRepository_Delete_Call
- type RuleRepository_Expecter
- func (_e *RuleRepository_Expecter) Create(ctx interface{}, rule interface{}) *RuleRepository_Create_Call
- func (_e *RuleRepository_Expecter) Delete(ctx interface{}, id interface{}) *RuleRepository_Delete_Call
- func (_e *RuleRepository_Expecter) Get(ctx interface{}, id interface{}) *RuleRepository_Get_Call
- func (_e *RuleRepository_Expecter) List(ctx interface{}) *RuleRepository_List_Call
- func (_e *RuleRepository_Expecter) Update(ctx interface{}, id interface{}, rule interface{}) *RuleRepository_Update_Call
- type RuleRepository_Get_Call
- func (_c *RuleRepository_Get_Call) Return(rule models.Rule, err error) *RuleRepository_Get_Call
- func (_c *RuleRepository_Get_Call) Run(run func(ctx context.Context, id string)) *RuleRepository_Get_Call
- func (_c *RuleRepository_Get_Call) RunAndReturn(run func(ctx context.Context, id string) (models.Rule, error)) *RuleRepository_Get_Call
- type RuleRepository_List_Call
- func (_c *RuleRepository_List_Call) Return(rules []models.Rule, err error) *RuleRepository_List_Call
- func (_c *RuleRepository_List_Call) Run(run func(ctx context.Context)) *RuleRepository_List_Call
- func (_c *RuleRepository_List_Call) RunAndReturn(run func(ctx context.Context) ([]models.Rule, error)) *RuleRepository_List_Call
- type RuleRepository_Update_Call
- func (_c *RuleRepository_Update_Call) Return(rule1 models.Rule, err error) *RuleRepository_Update_Call
- func (_c *RuleRepository_Update_Call) Run(run func(ctx context.Context, id string, rule models.Rule)) *RuleRepository_Update_Call
- func (_c *RuleRepository_Update_Call) RunAndReturn(...) *RuleRepository_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationChannelRepository ¶
NotificationChannelRepository is an autogenerated mock type for the NotificationChannelRepository type
func NewNotificationChannelRepository ¶
func NewNotificationChannelRepository(t interface {
mock.TestingT
Cleanup(func())
}) *NotificationChannelRepository
NewNotificationChannelRepository creates a new instance of NotificationChannelRepository. 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 (*NotificationChannelRepository) EXPECT ¶
func (_m *NotificationChannelRepository) EXPECT() *NotificationChannelRepository_Expecter
func (*NotificationChannelRepository) GetNotificationChannelById ¶
func (_mock *NotificationChannelRepository) GetNotificationChannelById(ctx context.Context, id string) (models.NotificationChannel, error)
GetNotificationChannelById provides a mock function for the type NotificationChannelRepository
func (*NotificationChannelRepository) ListNotificationChannelsByType ¶
func (_mock *NotificationChannelRepository) ListNotificationChannelsByType(ctx context.Context, channelType models.ChannelType) ([]models.NotificationChannel, error)
ListNotificationChannelsByType provides a mock function for the type NotificationChannelRepository
type NotificationChannelRepository_Expecter ¶
type NotificationChannelRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*NotificationChannelRepository_Expecter) GetNotificationChannelById ¶
func (_e *NotificationChannelRepository_Expecter) GetNotificationChannelById(ctx interface{}, id interface{}) *NotificationChannelRepository_GetNotificationChannelById_Call
GetNotificationChannelById is a helper method to define mock.On call
- ctx context.Context
- id string
func (*NotificationChannelRepository_Expecter) ListNotificationChannelsByType ¶
func (_e *NotificationChannelRepository_Expecter) ListNotificationChannelsByType(ctx interface{}, channelType interface{}) *NotificationChannelRepository_ListNotificationChannelsByType_Call
ListNotificationChannelsByType is a helper method to define mock.On call
- ctx context.Context
- channelType models.ChannelType
type NotificationChannelRepository_GetNotificationChannelById_Call ¶
NotificationChannelRepository_GetNotificationChannelById_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNotificationChannelById'
func (*NotificationChannelRepository_GetNotificationChannelById_Call) Return ¶
func (_c *NotificationChannelRepository_GetNotificationChannelById_Call) Return(notificationChannel models.NotificationChannel, err error) *NotificationChannelRepository_GetNotificationChannelById_Call
func (*NotificationChannelRepository_GetNotificationChannelById_Call) Run ¶
func (_c *NotificationChannelRepository_GetNotificationChannelById_Call) Run(run func(ctx context.Context, id string)) *NotificationChannelRepository_GetNotificationChannelById_Call
func (*NotificationChannelRepository_GetNotificationChannelById_Call) RunAndReturn ¶
func (_c *NotificationChannelRepository_GetNotificationChannelById_Call) RunAndReturn(run func(ctx context.Context, id string) (models.NotificationChannel, error)) *NotificationChannelRepository_GetNotificationChannelById_Call
type NotificationChannelRepository_ListNotificationChannelsByType_Call ¶
NotificationChannelRepository_ListNotificationChannelsByType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListNotificationChannelsByType'
func (*NotificationChannelRepository_ListNotificationChannelsByType_Call) Return ¶
func (_c *NotificationChannelRepository_ListNotificationChannelsByType_Call) Return(notificationChannels []models.NotificationChannel, err error) *NotificationChannelRepository_ListNotificationChannelsByType_Call
func (*NotificationChannelRepository_ListNotificationChannelsByType_Call) Run ¶
func (_c *NotificationChannelRepository_ListNotificationChannelsByType_Call) Run(run func(ctx context.Context, channelType models.ChannelType)) *NotificationChannelRepository_ListNotificationChannelsByType_Call
func (*NotificationChannelRepository_ListNotificationChannelsByType_Call) RunAndReturn ¶
func (_c *NotificationChannelRepository_ListNotificationChannelsByType_Call) RunAndReturn(run func(ctx context.Context, channelType models.ChannelType) ([]models.NotificationChannel, error)) *NotificationChannelRepository_ListNotificationChannelsByType_Call
type OriginRepository ¶
OriginRepository is an autogenerated mock type for the OriginRepository type
func NewOriginRepository ¶
func NewOriginRepository(t interface {
mock.TestingT
Cleanup(func())
}) *OriginRepository
NewOriginRepository creates a new instance of OriginRepository. 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 (*OriginRepository) EXPECT ¶
func (_m *OriginRepository) EXPECT() *OriginRepository_Expecter
func (*OriginRepository) ListOrigins ¶
ListOrigins provides a mock function for the type OriginRepository
func (*OriginRepository) UpsertOrigins ¶ added in v0.14.0
func (_mock *OriginRepository) UpsertOrigins(ctx context.Context, serviceID string, origins []entities.Origin) error
UpsertOrigins provides a mock function for the type OriginRepository
type OriginRepository_Expecter ¶
type OriginRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*OriginRepository_Expecter) ListOrigins ¶
func (_e *OriginRepository_Expecter) ListOrigins(ctx interface{}) *OriginRepository_ListOrigins_Call
ListOrigins is a helper method to define mock.On call
- ctx context.Context
func (*OriginRepository_Expecter) UpsertOrigins ¶ added in v0.14.0
func (_e *OriginRepository_Expecter) UpsertOrigins(ctx interface{}, serviceID interface{}, origins interface{}) *OriginRepository_UpsertOrigins_Call
UpsertOrigins is a helper method to define mock.On call
- ctx context.Context
- serviceID string
- origins []entities.Origin
type OriginRepository_ListOrigins_Call ¶
OriginRepository_ListOrigins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListOrigins'
func (*OriginRepository_ListOrigins_Call) Return ¶
func (_c *OriginRepository_ListOrigins_Call) Return(origins []entities.Origin, err error) *OriginRepository_ListOrigins_Call
func (*OriginRepository_ListOrigins_Call) Run ¶
func (_c *OriginRepository_ListOrigins_Call) Run(run func(ctx context.Context)) *OriginRepository_ListOrigins_Call
func (*OriginRepository_ListOrigins_Call) RunAndReturn ¶
func (_c *OriginRepository_ListOrigins_Call) RunAndReturn(run func(ctx context.Context) ([]entities.Origin, error)) *OriginRepository_ListOrigins_Call
type OriginRepository_UpsertOrigins_Call ¶ added in v0.14.0
OriginRepository_UpsertOrigins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertOrigins'
func (*OriginRepository_UpsertOrigins_Call) Return ¶ added in v0.14.0
func (_c *OriginRepository_UpsertOrigins_Call) Return(err error) *OriginRepository_UpsertOrigins_Call
func (*OriginRepository_UpsertOrigins_Call) Run ¶ added in v0.14.0
func (_c *OriginRepository_UpsertOrigins_Call) Run(run func(ctx context.Context, serviceID string, origins []entities.Origin)) *OriginRepository_UpsertOrigins_Call
func (*OriginRepository_UpsertOrigins_Call) RunAndReturn ¶ added in v0.14.0
func (_c *OriginRepository_UpsertOrigins_Call) RunAndReturn(run func(ctx context.Context, serviceID string, origins []entities.Origin) error) *OriginRepository_UpsertOrigins_Call
type RuleRepository ¶
RuleRepository is an autogenerated mock type for the RuleRepository type
func NewRuleRepository ¶
func NewRuleRepository(t interface {
mock.TestingT
Cleanup(func())
}) *RuleRepository
NewRuleRepository creates a new instance of RuleRepository. 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 (*RuleRepository) Delete ¶
func (_mock *RuleRepository) Delete(ctx context.Context, id string) error
Delete provides a mock function for the type RuleRepository
func (*RuleRepository) EXPECT ¶
func (_m *RuleRepository) EXPECT() *RuleRepository_Expecter
type RuleRepository_Create_Call ¶
RuleRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*RuleRepository_Create_Call) Return ¶
func (_c *RuleRepository_Create_Call) Return(rule1 models.Rule, err error) *RuleRepository_Create_Call
func (*RuleRepository_Create_Call) Run ¶
func (_c *RuleRepository_Create_Call) Run(run func(ctx context.Context, rule models.Rule)) *RuleRepository_Create_Call
func (*RuleRepository_Create_Call) RunAndReturn ¶
func (_c *RuleRepository_Create_Call) RunAndReturn(run func(ctx context.Context, rule models.Rule) (models.Rule, error)) *RuleRepository_Create_Call
type RuleRepository_Delete_Call ¶
RuleRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*RuleRepository_Delete_Call) Return ¶
func (_c *RuleRepository_Delete_Call) Return(err error) *RuleRepository_Delete_Call
func (*RuleRepository_Delete_Call) Run ¶
func (_c *RuleRepository_Delete_Call) Run(run func(ctx context.Context, id string)) *RuleRepository_Delete_Call
func (*RuleRepository_Delete_Call) RunAndReturn ¶
func (_c *RuleRepository_Delete_Call) RunAndReturn(run func(ctx context.Context, id string) error) *RuleRepository_Delete_Call
type RuleRepository_Expecter ¶
type RuleRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*RuleRepository_Expecter) Create ¶
func (_e *RuleRepository_Expecter) Create(ctx interface{}, rule interface{}) *RuleRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- rule models.Rule
func (*RuleRepository_Expecter) Delete ¶
func (_e *RuleRepository_Expecter) Delete(ctx interface{}, id interface{}) *RuleRepository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*RuleRepository_Expecter) Get ¶
func (_e *RuleRepository_Expecter) Get(ctx interface{}, id interface{}) *RuleRepository_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*RuleRepository_Expecter) List ¶
func (_e *RuleRepository_Expecter) List(ctx interface{}) *RuleRepository_List_Call
List is a helper method to define mock.On call
- ctx context.Context
func (*RuleRepository_Expecter) Update ¶
func (_e *RuleRepository_Expecter) Update(ctx interface{}, id interface{}, rule interface{}) *RuleRepository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- id string
- rule models.Rule
type RuleRepository_Get_Call ¶
RuleRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*RuleRepository_Get_Call) Return ¶
func (_c *RuleRepository_Get_Call) Return(rule models.Rule, err error) *RuleRepository_Get_Call
func (*RuleRepository_Get_Call) Run ¶
func (_c *RuleRepository_Get_Call) Run(run func(ctx context.Context, id string)) *RuleRepository_Get_Call
func (*RuleRepository_Get_Call) RunAndReturn ¶
func (_c *RuleRepository_Get_Call) RunAndReturn(run func(ctx context.Context, id string) (models.Rule, error)) *RuleRepository_Get_Call
type RuleRepository_List_Call ¶
RuleRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*RuleRepository_List_Call) Return ¶
func (_c *RuleRepository_List_Call) Return(rules []models.Rule, err error) *RuleRepository_List_Call
func (*RuleRepository_List_Call) Run ¶
func (_c *RuleRepository_List_Call) Run(run func(ctx context.Context)) *RuleRepository_List_Call
func (*RuleRepository_List_Call) RunAndReturn ¶
func (_c *RuleRepository_List_Call) RunAndReturn(run func(ctx context.Context) ([]models.Rule, error)) *RuleRepository_List_Call
type RuleRepository_Update_Call ¶
RuleRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*RuleRepository_Update_Call) Return ¶
func (_c *RuleRepository_Update_Call) Return(rule1 models.Rule, err error) *RuleRepository_Update_Call
func (*RuleRepository_Update_Call) Run ¶
func (_c *RuleRepository_Update_Call) Run(run func(ctx context.Context, id string, rule models.Rule)) *RuleRepository_Update_Call
func (*RuleRepository_Update_Call) RunAndReturn ¶
func (_c *RuleRepository_Update_Call) RunAndReturn(run func(ctx context.Context, id string, rule models.Rule) (models.Rule, error)) *RuleRepository_Update_Call