Documentation ¶
Index ¶
- type Encryptor
- type Encryptor_Decrypt_Call
- type Encryptor_Encrypt_Call
- type Encryptor_Expecter
- type ReceiverRepository
- func (_m *ReceiverRepository) Create(_a0 context.Context, _a1 *receiver.Receiver) error
- func (_m *ReceiverRepository) Delete(_a0 context.Context, _a1 uint64) error
- func (_m *ReceiverRepository) EXPECT() *ReceiverRepository_Expecter
- func (_m *ReceiverRepository) Get(_a0 context.Context, _a1 uint64) (*receiver.Receiver, error)
- func (_m *ReceiverRepository) List(_a0 context.Context, _a1 receiver.Filter) ([]receiver.Receiver, error)
- func (_m *ReceiverRepository) Update(_a0 context.Context, _a1 *receiver.Receiver) error
- type ReceiverRepository_Create_Call
- type ReceiverRepository_Delete_Call
- type ReceiverRepository_Expecter
- func (_e *ReceiverRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *ReceiverRepository_Create_Call
- func (_e *ReceiverRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ReceiverRepository_Delete_Call
- func (_e *ReceiverRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *ReceiverRepository_Get_Call
- func (_e *ReceiverRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *ReceiverRepository_List_Call
- func (_e *ReceiverRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *ReceiverRepository_Update_Call
- type ReceiverRepository_Get_Call
- type ReceiverRepository_List_Call
- type ReceiverRepository_Update_Call
- type SlackClient
- type SlackClient_Expecter
- type SlackClient_GetWorkspaceChannels_Call
- type SlackClient_Notify_Call
- type TypeService
- func (_m *TypeService) Decrypt(r *receiver.Receiver) error
- func (_m *TypeService) EXPECT() *TypeService_Expecter
- func (_m *TypeService) Encrypt(r *receiver.Receiver) error
- func (_m *TypeService) GetSubscriptionConfig(subsConfs map[string]string, receiverConfs receiver.Configurations) (map[string]string, error)
- func (_m *TypeService) Notify(ctx context.Context, rcv *receiver.Receiver, ...) error
- func (_m *TypeService) PopulateReceiver(ctx context.Context, rcv *receiver.Receiver) (*receiver.Receiver, error)
- func (_m *TypeService) ValidateConfiguration(rcv *receiver.Receiver) error
- type TypeService_Decrypt_Call
- type TypeService_Encrypt_Call
- type TypeService_Expecter
- func (_e *TypeService_Expecter) Decrypt(r interface{}) *TypeService_Decrypt_Call
- func (_e *TypeService_Expecter) Encrypt(r interface{}) *TypeService_Encrypt_Call
- func (_e *TypeService_Expecter) GetSubscriptionConfig(subsConfs interface{}, receiverConfs interface{}) *TypeService_GetSubscriptionConfig_Call
- func (_e *TypeService_Expecter) Notify(ctx interface{}, rcv interface{}, payloadMessage interface{}) *TypeService_Notify_Call
- func (_e *TypeService_Expecter) PopulateReceiver(ctx interface{}, rcv interface{}) *TypeService_PopulateReceiver_Call
- func (_e *TypeService_Expecter) ValidateConfiguration(rcv interface{}) *TypeService_ValidateConfiguration_Call
- type TypeService_GetSubscriptionConfig_Call
- func (_c *TypeService_GetSubscriptionConfig_Call) Return(_a0 map[string]string, _a1 error) *TypeService_GetSubscriptionConfig_Call
- func (_c *TypeService_GetSubscriptionConfig_Call) Run(run func(subsConfs map[string]string, receiverConfs receiver.Configurations)) *TypeService_GetSubscriptionConfig_Call
- type TypeService_Notify_Call
- type TypeService_PopulateReceiver_Call
- type TypeService_ValidateConfiguration_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encryptor ¶
Encryptor is an autogenerated mock type for the Encryptor type
func NewEncryptor ¶
func NewEncryptor(t mockConstructorTestingTNewEncryptor) *Encryptor
NewEncryptor creates a new instance of Encryptor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Encryptor) EXPECT ¶
func (_m *Encryptor) EXPECT() *Encryptor_Expecter
type Encryptor_Decrypt_Call ¶
Encryptor_Decrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decrypt'
func (*Encryptor_Decrypt_Call) Return ¶
func (_c *Encryptor_Decrypt_Call) Return(_a0 string, _a1 error) *Encryptor_Decrypt_Call
func (*Encryptor_Decrypt_Call) Run ¶
func (_c *Encryptor_Decrypt_Call) Run(run func(str string)) *Encryptor_Decrypt_Call
type Encryptor_Encrypt_Call ¶
Encryptor_Encrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Encrypt'
func (*Encryptor_Encrypt_Call) Return ¶
func (_c *Encryptor_Encrypt_Call) Return(_a0 string, _a1 error) *Encryptor_Encrypt_Call
func (*Encryptor_Encrypt_Call) Run ¶
func (_c *Encryptor_Encrypt_Call) Run(run func(str string)) *Encryptor_Encrypt_Call
type Encryptor_Expecter ¶
type Encryptor_Expecter struct {
// contains filtered or unexported fields
}
func (*Encryptor_Expecter) Decrypt ¶
func (_e *Encryptor_Expecter) Decrypt(str interface{}) *Encryptor_Decrypt_Call
Decrypt is a helper method to define mock.On call
- str string
func (*Encryptor_Expecter) Encrypt ¶
func (_e *Encryptor_Expecter) Encrypt(str interface{}) *Encryptor_Encrypt_Call
Encrypt is a helper method to define mock.On call
- str string
type ReceiverRepository ¶
ReceiverRepository is an autogenerated mock type for the Repository type
func NewReceiverRepository ¶
func NewReceiverRepository(t mockConstructorTestingTNewReceiverRepository) *ReceiverRepository
NewReceiverRepository creates a new instance of ReceiverRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ReceiverRepository) Delete ¶
func (_m *ReceiverRepository) Delete(_a0 context.Context, _a1 uint64) error
Delete provides a mock function with given fields: _a0, _a1
func (*ReceiverRepository) EXPECT ¶
func (_m *ReceiverRepository) EXPECT() *ReceiverRepository_Expecter
type ReceiverRepository_Create_Call ¶
ReceiverRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ReceiverRepository_Create_Call) Return ¶
func (_c *ReceiverRepository_Create_Call) Return(_a0 error) *ReceiverRepository_Create_Call
func (*ReceiverRepository_Create_Call) Run ¶
func (_c *ReceiverRepository_Create_Call) Run(run func(_a0 context.Context, _a1 *receiver.Receiver)) *ReceiverRepository_Create_Call
type ReceiverRepository_Delete_Call ¶
ReceiverRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ReceiverRepository_Delete_Call) Return ¶
func (_c *ReceiverRepository_Delete_Call) Return(_a0 error) *ReceiverRepository_Delete_Call
func (*ReceiverRepository_Delete_Call) Run ¶
func (_c *ReceiverRepository_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *ReceiverRepository_Delete_Call
type ReceiverRepository_Expecter ¶
type ReceiverRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ReceiverRepository_Expecter) Create ¶
func (_e *ReceiverRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *ReceiverRepository_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *receiver.Receiver
func (*ReceiverRepository_Expecter) Delete ¶
func (_e *ReceiverRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *ReceiverRepository_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*ReceiverRepository_Expecter) Get ¶
func (_e *ReceiverRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *ReceiverRepository_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*ReceiverRepository_Expecter) List ¶
func (_e *ReceiverRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *ReceiverRepository_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 receiver.Filter
func (*ReceiverRepository_Expecter) Update ¶
func (_e *ReceiverRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *ReceiverRepository_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *receiver.Receiver
type ReceiverRepository_Get_Call ¶
ReceiverRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ReceiverRepository_Get_Call) Return ¶
func (_c *ReceiverRepository_Get_Call) Return(_a0 *receiver.Receiver, _a1 error) *ReceiverRepository_Get_Call
func (*ReceiverRepository_Get_Call) Run ¶
func (_c *ReceiverRepository_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *ReceiverRepository_Get_Call
type ReceiverRepository_List_Call ¶
ReceiverRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ReceiverRepository_List_Call) Return ¶
func (_c *ReceiverRepository_List_Call) Return(_a0 []receiver.Receiver, _a1 error) *ReceiverRepository_List_Call
func (*ReceiverRepository_List_Call) Run ¶
func (_c *ReceiverRepository_List_Call) Run(run func(_a0 context.Context, _a1 receiver.Filter)) *ReceiverRepository_List_Call
type ReceiverRepository_Update_Call ¶
ReceiverRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ReceiverRepository_Update_Call) Return ¶
func (_c *ReceiverRepository_Update_Call) Return(_a0 error) *ReceiverRepository_Update_Call
func (*ReceiverRepository_Update_Call) Run ¶
func (_c *ReceiverRepository_Update_Call) Run(run func(_a0 context.Context, _a1 *receiver.Receiver)) *ReceiverRepository_Update_Call
type SlackClient ¶
SlackClient is an autogenerated mock type for the SlackClient type
func NewSlackClient ¶
func NewSlackClient(t mockConstructorTestingTNewSlackClient) *SlackClient
NewSlackClient creates a new instance of SlackClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SlackClient) EXPECT ¶
func (_m *SlackClient) EXPECT() *SlackClient_Expecter
func (*SlackClient) GetWorkspaceChannels ¶
func (_m *SlackClient) GetWorkspaceChannels(ctx context.Context, opts ...slack.ClientCallOption) ([]slack.Channel, error)
GetWorkspaceChannels provides a mock function with given fields: ctx, opts
func (*SlackClient) Notify ¶
func (_m *SlackClient) Notify(ctx context.Context, message *slack.Message, opts ...slack.ClientCallOption) error
Notify provides a mock function with given fields: ctx, message, opts
type SlackClient_Expecter ¶
type SlackClient_Expecter struct {
// contains filtered or unexported fields
}
func (*SlackClient_Expecter) GetWorkspaceChannels ¶
func (_e *SlackClient_Expecter) GetWorkspaceChannels(ctx interface{}, opts ...interface{}) *SlackClient_GetWorkspaceChannels_Call
GetWorkspaceChannels is a helper method to define mock.On call
- ctx context.Context
- opts ...slack.ClientCallOption
func (*SlackClient_Expecter) Notify ¶
func (_e *SlackClient_Expecter) Notify(ctx interface{}, message interface{}, opts ...interface{}) *SlackClient_Notify_Call
Notify is a helper method to define mock.On call
- ctx context.Context
- message *slack.Message
- opts ...slack.ClientCallOption
type SlackClient_GetWorkspaceChannels_Call ¶
SlackClient_GetWorkspaceChannels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWorkspaceChannels'
func (*SlackClient_GetWorkspaceChannels_Call) Return ¶
func (_c *SlackClient_GetWorkspaceChannels_Call) Return(_a0 []slack.Channel, _a1 error) *SlackClient_GetWorkspaceChannels_Call
func (*SlackClient_GetWorkspaceChannels_Call) Run ¶
func (_c *SlackClient_GetWorkspaceChannels_Call) Run(run func(ctx context.Context, opts ...slack.ClientCallOption)) *SlackClient_GetWorkspaceChannels_Call
type SlackClient_Notify_Call ¶
SlackClient_Notify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Notify'
func (*SlackClient_Notify_Call) Return ¶
func (_c *SlackClient_Notify_Call) Return(_a0 error) *SlackClient_Notify_Call
func (*SlackClient_Notify_Call) Run ¶
func (_c *SlackClient_Notify_Call) Run(run func(ctx context.Context, message *slack.Message, opts ...slack.ClientCallOption)) *SlackClient_Notify_Call
type TypeService ¶
TypeService is an autogenerated mock type for the TypeService type
func NewTypeService ¶
func NewTypeService(t mockConstructorTestingTNewTypeService) *TypeService
NewTypeService creates a new instance of TypeService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TypeService) Decrypt ¶
func (_m *TypeService) Decrypt(r *receiver.Receiver) error
Decrypt provides a mock function with given fields: r
func (*TypeService) EXPECT ¶
func (_m *TypeService) EXPECT() *TypeService_Expecter
func (*TypeService) Encrypt ¶
func (_m *TypeService) Encrypt(r *receiver.Receiver) error
Encrypt provides a mock function with given fields: r
func (*TypeService) GetSubscriptionConfig ¶
func (_m *TypeService) GetSubscriptionConfig(subsConfs map[string]string, receiverConfs receiver.Configurations) (map[string]string, error)
GetSubscriptionConfig provides a mock function with given fields: subsConfs, receiverConfs
func (*TypeService) Notify ¶
func (_m *TypeService) Notify(ctx context.Context, rcv *receiver.Receiver, payloadMessage receiver.NotificationMessage) error
Notify provides a mock function with given fields: ctx, rcv, payloadMessage
func (*TypeService) PopulateReceiver ¶
func (_m *TypeService) PopulateReceiver(ctx context.Context, rcv *receiver.Receiver) (*receiver.Receiver, error)
PopulateReceiver provides a mock function with given fields: ctx, rcv
func (*TypeService) ValidateConfiguration ¶
func (_m *TypeService) ValidateConfiguration(rcv *receiver.Receiver) error
ValidateConfiguration provides a mock function with given fields: rcv
type TypeService_Decrypt_Call ¶
TypeService_Decrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decrypt'
func (*TypeService_Decrypt_Call) Return ¶
func (_c *TypeService_Decrypt_Call) Return(_a0 error) *TypeService_Decrypt_Call
func (*TypeService_Decrypt_Call) Run ¶
func (_c *TypeService_Decrypt_Call) Run(run func(r *receiver.Receiver)) *TypeService_Decrypt_Call
type TypeService_Encrypt_Call ¶
TypeService_Encrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Encrypt'
func (*TypeService_Encrypt_Call) Return ¶
func (_c *TypeService_Encrypt_Call) Return(_a0 error) *TypeService_Encrypt_Call
func (*TypeService_Encrypt_Call) Run ¶
func (_c *TypeService_Encrypt_Call) Run(run func(r *receiver.Receiver)) *TypeService_Encrypt_Call
type TypeService_Expecter ¶
type TypeService_Expecter struct {
// contains filtered or unexported fields
}
func (*TypeService_Expecter) Decrypt ¶
func (_e *TypeService_Expecter) Decrypt(r interface{}) *TypeService_Decrypt_Call
Decrypt is a helper method to define mock.On call
- r *receiver.Receiver
func (*TypeService_Expecter) Encrypt ¶
func (_e *TypeService_Expecter) Encrypt(r interface{}) *TypeService_Encrypt_Call
Encrypt is a helper method to define mock.On call
- r *receiver.Receiver
func (*TypeService_Expecter) GetSubscriptionConfig ¶
func (_e *TypeService_Expecter) GetSubscriptionConfig(subsConfs interface{}, receiverConfs interface{}) *TypeService_GetSubscriptionConfig_Call
GetSubscriptionConfig is a helper method to define mock.On call
- subsConfs map[string]string
- receiverConfs receiver.Configurations
func (*TypeService_Expecter) Notify ¶
func (_e *TypeService_Expecter) Notify(ctx interface{}, rcv interface{}, payloadMessage interface{}) *TypeService_Notify_Call
Notify is a helper method to define mock.On call
- ctx context.Context
- rcv *receiver.Receiver
- payloadMessage receiver.NotificationMessage
func (*TypeService_Expecter) PopulateReceiver ¶
func (_e *TypeService_Expecter) PopulateReceiver(ctx interface{}, rcv interface{}) *TypeService_PopulateReceiver_Call
PopulateReceiver is a helper method to define mock.On call
- ctx context.Context
- rcv *receiver.Receiver
func (*TypeService_Expecter) ValidateConfiguration ¶
func (_e *TypeService_Expecter) ValidateConfiguration(rcv interface{}) *TypeService_ValidateConfiguration_Call
ValidateConfiguration is a helper method to define mock.On call
- rcv *receiver.Receiver
type TypeService_GetSubscriptionConfig_Call ¶
TypeService_GetSubscriptionConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubscriptionConfig'
func (*TypeService_GetSubscriptionConfig_Call) Return ¶
func (_c *TypeService_GetSubscriptionConfig_Call) Return(_a0 map[string]string, _a1 error) *TypeService_GetSubscriptionConfig_Call
func (*TypeService_GetSubscriptionConfig_Call) Run ¶
func (_c *TypeService_GetSubscriptionConfig_Call) Run(run func(subsConfs map[string]string, receiverConfs receiver.Configurations)) *TypeService_GetSubscriptionConfig_Call
type TypeService_Notify_Call ¶
TypeService_Notify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Notify'
func (*TypeService_Notify_Call) Return ¶
func (_c *TypeService_Notify_Call) Return(_a0 error) *TypeService_Notify_Call
func (*TypeService_Notify_Call) Run ¶
func (_c *TypeService_Notify_Call) Run(run func(ctx context.Context, rcv *receiver.Receiver, payloadMessage receiver.NotificationMessage)) *TypeService_Notify_Call
type TypeService_PopulateReceiver_Call ¶
TypeService_PopulateReceiver_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PopulateReceiver'
func (*TypeService_PopulateReceiver_Call) Return ¶
func (_c *TypeService_PopulateReceiver_Call) Return(_a0 *receiver.Receiver, _a1 error) *TypeService_PopulateReceiver_Call
func (*TypeService_PopulateReceiver_Call) Run ¶
func (_c *TypeService_PopulateReceiver_Call) Run(run func(ctx context.Context, rcv *receiver.Receiver)) *TypeService_PopulateReceiver_Call
type TypeService_ValidateConfiguration_Call ¶
TypeService_ValidateConfiguration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateConfiguration'
func (*TypeService_ValidateConfiguration_Call) Return ¶
func (_c *TypeService_ValidateConfiguration_Call) Return(_a0 error) *TypeService_ValidateConfiguration_Call
func (*TypeService_ValidateConfiguration_Call) Run ¶
func (_c *TypeService_ValidateConfiguration_Call) Run(run func(rcv *receiver.Receiver)) *TypeService_ValidateConfiguration_Call