Documentation
¶
Index ¶
- type AwsSendEmailFunc
- type Emailer
- type Emailer_Expecter
- type Emailer_SendEmail_Call
- func (_c *Emailer_SendEmail_Call) Return(_a0 error) *Emailer_SendEmail_Call
- func (_c *Emailer_SendEmail_Call) Run(run func(ctx context.Context, email *admin.EmailMessage)) *Emailer_SendEmail_Call
- func (_c *Emailer_SendEmail_Call) RunAndReturn(run func(context.Context, *admin.EmailMessage) error) *Emailer_SendEmail_Call
- type Processor
- type Processor_Expecter
- type Processor_StartProcessing_Call
- type Processor_StopProcessing_Call
- type Publisher
- type Publisher_Expecter
- type Publisher_Publish_Call
- type SESClient
- type SMTPClient
- func (_m *SMTPClient) Auth(a smtp.Auth) error
- func (_m *SMTPClient) Close() error
- func (_m *SMTPClient) Data() (io.WriteCloser, error)
- func (_m *SMTPClient) EXPECT() *SMTPClient_Expecter
- func (_m *SMTPClient) Extension(ext string) (bool, string)
- func (_m *SMTPClient) Hello(localName string) error
- func (_m *SMTPClient) Mail(from string) error
- func (_m *SMTPClient) Noop() error
- func (_m *SMTPClient) Rcpt(to string) error
- func (_m *SMTPClient) StartTLS(config *tls.Config) error
- type SMTPClient_Auth_Call
- type SMTPClient_Close_Call
- type SMTPClient_Data_Call
- type SMTPClient_Expecter
- func (_e *SMTPClient_Expecter) Auth(a interface{}) *SMTPClient_Auth_Call
- func (_e *SMTPClient_Expecter) Close() *SMTPClient_Close_Call
- func (_e *SMTPClient_Expecter) Data() *SMTPClient_Data_Call
- func (_e *SMTPClient_Expecter) Extension(ext interface{}) *SMTPClient_Extension_Call
- func (_e *SMTPClient_Expecter) Hello(localName interface{}) *SMTPClient_Hello_Call
- func (_e *SMTPClient_Expecter) Mail(from interface{}) *SMTPClient_Mail_Call
- func (_e *SMTPClient_Expecter) Noop() *SMTPClient_Noop_Call
- func (_e *SMTPClient_Expecter) Rcpt(to interface{}) *SMTPClient_Rcpt_Call
- func (_e *SMTPClient_Expecter) StartTLS(config interface{}) *SMTPClient_StartTLS_Call
- type SMTPClient_Extension_Call
- type SMTPClient_Hello_Call
- type SMTPClient_Mail_Call
- type SMTPClient_Noop_Call
- type SMTPClient_Rcpt_Call
- type SMTPClient_StartTLS_Call
- type SendgridClient
- type SendgridClient_Expecter
- type SendgridClient_Send_Call
- func (_c *SendgridClient_Send_Call) Return(_a0 *rest.Response, _a1 error) *SendgridClient_Send_Call
- func (_c *SendgridClient_Send_Call) Run(run func(email *mail.SGMailV3)) *SendgridClient_Send_Call
- func (_c *SendgridClient_Send_Call) RunAndReturn(run func(*mail.SGMailV3) (*rest.Response, error)) *SendgridClient_Send_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsSendEmailFunc ¶
type AwsSendEmailFunc func(input *ses.SendEmailInput) (*ses.SendEmailOutput, error)
type Emailer ¶ added in v1.15.0
Emailer is an autogenerated mock type for the Emailer type
func NewEmailer ¶ added in v1.15.0
NewEmailer creates a new instance of Emailer. 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 (*Emailer) EXPECT ¶ added in v1.15.0
func (_m *Emailer) EXPECT() *Emailer_Expecter
type Emailer_Expecter ¶ added in v1.15.0
type Emailer_Expecter struct {
// contains filtered or unexported fields
}
func (*Emailer_Expecter) SendEmail ¶ added in v1.15.0
func (_e *Emailer_Expecter) SendEmail(ctx interface{}, email interface{}) *Emailer_SendEmail_Call
SendEmail is a helper method to define mock.On call
- ctx context.Context
- email *admin.EmailMessage
type Emailer_SendEmail_Call ¶ added in v1.15.0
Emailer_SendEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendEmail'
func (*Emailer_SendEmail_Call) Return ¶ added in v1.15.0
func (_c *Emailer_SendEmail_Call) Return(_a0 error) *Emailer_SendEmail_Call
func (*Emailer_SendEmail_Call) Run ¶ added in v1.15.0
func (_c *Emailer_SendEmail_Call) Run(run func(ctx context.Context, email *admin.EmailMessage)) *Emailer_SendEmail_Call
func (*Emailer_SendEmail_Call) RunAndReturn ¶ added in v1.15.0
func (_c *Emailer_SendEmail_Call) RunAndReturn(run func(context.Context, *admin.EmailMessage) error) *Emailer_SendEmail_Call
type Processor ¶ added in v1.15.0
Processor is an autogenerated mock type for the Processor type
func NewProcessor ¶ added in v1.15.0
NewProcessor creates a new instance of Processor. 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 (*Processor) EXPECT ¶ added in v1.15.0
func (_m *Processor) EXPECT() *Processor_Expecter
func (*Processor) StartProcessing ¶ added in v1.15.0
func (_m *Processor) StartProcessing()
StartProcessing provides a mock function with given fields:
func (*Processor) StopProcessing ¶ added in v1.15.0
StopProcessing provides a mock function with given fields:
type Processor_Expecter ¶ added in v1.15.0
type Processor_Expecter struct {
// contains filtered or unexported fields
}
func (*Processor_Expecter) StartProcessing ¶ added in v1.15.0
func (_e *Processor_Expecter) StartProcessing() *Processor_StartProcessing_Call
StartProcessing is a helper method to define mock.On call
func (*Processor_Expecter) StopProcessing ¶ added in v1.15.0
func (_e *Processor_Expecter) StopProcessing() *Processor_StopProcessing_Call
StopProcessing is a helper method to define mock.On call
type Processor_StartProcessing_Call ¶ added in v1.15.0
Processor_StartProcessing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartProcessing'
func (*Processor_StartProcessing_Call) Return ¶ added in v1.15.0
func (_c *Processor_StartProcessing_Call) Return() *Processor_StartProcessing_Call
func (*Processor_StartProcessing_Call) Run ¶ added in v1.15.0
func (_c *Processor_StartProcessing_Call) Run(run func()) *Processor_StartProcessing_Call
func (*Processor_StartProcessing_Call) RunAndReturn ¶ added in v1.15.0
func (_c *Processor_StartProcessing_Call) RunAndReturn(run func()) *Processor_StartProcessing_Call
type Processor_StopProcessing_Call ¶ added in v1.15.0
Processor_StopProcessing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopProcessing'
func (*Processor_StopProcessing_Call) Return ¶ added in v1.15.0
func (_c *Processor_StopProcessing_Call) Return(_a0 error) *Processor_StopProcessing_Call
func (*Processor_StopProcessing_Call) Run ¶ added in v1.15.0
func (_c *Processor_StopProcessing_Call) Run(run func()) *Processor_StopProcessing_Call
func (*Processor_StopProcessing_Call) RunAndReturn ¶ added in v1.15.0
func (_c *Processor_StopProcessing_Call) RunAndReturn(run func() error) *Processor_StopProcessing_Call
type Publisher ¶ added in v1.15.0
Publisher is an autogenerated mock type for the Publisher type
func NewPublisher ¶ added in v1.15.0
NewPublisher creates a new instance of Publisher. 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 (*Publisher) EXPECT ¶ added in v1.15.0
func (_m *Publisher) EXPECT() *Publisher_Expecter
type Publisher_Expecter ¶ added in v1.15.0
type Publisher_Expecter struct {
// contains filtered or unexported fields
}
func (*Publisher_Expecter) Publish ¶ added in v1.15.0
func (_e *Publisher_Expecter) Publish(ctx interface{}, notificationType interface{}, msg interface{}) *Publisher_Publish_Call
Publish is a helper method to define mock.On call
- ctx context.Context
- notificationType string
- msg protoiface.MessageV1
type Publisher_Publish_Call ¶ added in v1.15.0
Publisher_Publish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Publish'
func (*Publisher_Publish_Call) Return ¶ added in v1.15.0
func (_c *Publisher_Publish_Call) Return(_a0 error) *Publisher_Publish_Call
func (*Publisher_Publish_Call) Run ¶ added in v1.15.0
func (_c *Publisher_Publish_Call) Run(run func(ctx context.Context, notificationType string, msg protoiface.MessageV1)) *Publisher_Publish_Call
func (*Publisher_Publish_Call) RunAndReturn ¶ added in v1.15.0
func (_c *Publisher_Publish_Call) RunAndReturn(run func(context.Context, string, protoiface.MessageV1) error) *Publisher_Publish_Call
type SESClient ¶
func (*SESClient) SendEmail ¶
func (m *SESClient) SendEmail(input *ses.SendEmailInput) (*ses.SendEmailOutput, error)
func (*SESClient) SetSendEmailFunc ¶
func (m *SESClient) SetSendEmailFunc(emailFunc AwsSendEmailFunc)
type SMTPClient ¶ added in v1.13.2
SMTPClient is an autogenerated mock type for the SMTPClient type
func NewSMTPClient ¶ added in v1.15.1
func NewSMTPClient(t interface {
mock.TestingT
Cleanup(func())
}) *SMTPClient
NewSMTPClient creates a new instance of SMTPClient. 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 (*SMTPClient) Auth ¶ added in v1.13.2
func (_m *SMTPClient) Auth(a smtp.Auth) error
Auth provides a mock function with given fields: a
func (*SMTPClient) Close ¶ added in v1.13.2
func (_m *SMTPClient) Close() error
Close provides a mock function with given fields:
func (*SMTPClient) Data ¶ added in v1.13.2
func (_m *SMTPClient) Data() (io.WriteCloser, error)
Data provides a mock function with given fields:
func (*SMTPClient) EXPECT ¶ added in v1.15.1
func (_m *SMTPClient) EXPECT() *SMTPClient_Expecter
func (*SMTPClient) Extension ¶ added in v1.13.2
func (_m *SMTPClient) Extension(ext string) (bool, string)
Extension provides a mock function with given fields: ext
func (*SMTPClient) Hello ¶ added in v1.13.2
func (_m *SMTPClient) Hello(localName string) error
Hello provides a mock function with given fields: localName
func (*SMTPClient) Mail ¶ added in v1.13.2
func (_m *SMTPClient) Mail(from string) error
Mail provides a mock function with given fields: from
func (*SMTPClient) Noop ¶ added in v1.13.2
func (_m *SMTPClient) Noop() error
Noop provides a mock function with given fields:
func (*SMTPClient) Rcpt ¶ added in v1.13.2
func (_m *SMTPClient) Rcpt(to string) error
Rcpt provides a mock function with given fields: to
type SMTPClient_Auth_Call ¶ added in v1.15.1
SMTPClient_Auth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Auth'
func (*SMTPClient_Auth_Call) Return ¶ added in v1.15.1
func (_c *SMTPClient_Auth_Call) Return(_a0 error) *SMTPClient_Auth_Call
func (*SMTPClient_Auth_Call) Run ¶ added in v1.15.1
func (_c *SMTPClient_Auth_Call) Run(run func(a smtp.Auth)) *SMTPClient_Auth_Call
func (*SMTPClient_Auth_Call) RunAndReturn ¶ added in v1.15.1
func (_c *SMTPClient_Auth_Call) RunAndReturn(run func(smtp.Auth) error) *SMTPClient_Auth_Call
type SMTPClient_Close_Call ¶ added in v1.15.1
SMTPClient_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*SMTPClient_Close_Call) Return ¶ added in v1.15.1
func (_c *SMTPClient_Close_Call) Return(_a0 error) *SMTPClient_Close_Call
func (*SMTPClient_Close_Call) Run ¶ added in v1.15.1
func (_c *SMTPClient_Close_Call) Run(run func()) *SMTPClient_Close_Call
func (*SMTPClient_Close_Call) RunAndReturn ¶ added in v1.15.1
func (_c *SMTPClient_Close_Call) RunAndReturn(run func() error) *SMTPClient_Close_Call
type SMTPClient_Data_Call ¶ added in v1.15.1
SMTPClient_Data_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Data'
func (*SMTPClient_Data_Call) Return ¶ added in v1.15.1
func (_c *SMTPClient_Data_Call) Return(_a0 io.WriteCloser, _a1 error) *SMTPClient_Data_Call
func (*SMTPClient_Data_Call) Run ¶ added in v1.15.1
func (_c *SMTPClient_Data_Call) Run(run func()) *SMTPClient_Data_Call
func (*SMTPClient_Data_Call) RunAndReturn ¶ added in v1.15.1
func (_c *SMTPClient_Data_Call) RunAndReturn(run func() (io.WriteCloser, error)) *SMTPClient_Data_Call
type SMTPClient_Expecter ¶ added in v1.15.1
type SMTPClient_Expecter struct {
// contains filtered or unexported fields
}
func (*SMTPClient_Expecter) Auth ¶ added in v1.15.1
func (_e *SMTPClient_Expecter) Auth(a interface{}) *SMTPClient_Auth_Call
Auth is a helper method to define mock.On call
- a smtp.Auth
func (*SMTPClient_Expecter) Close ¶ added in v1.15.1
func (_e *SMTPClient_Expecter) Close() *SMTPClient_Close_Call
Close is a helper method to define mock.On call
func (*SMTPClient_Expecter) Data ¶ added in v1.15.1
func (_e *SMTPClient_Expecter) Data() *SMTPClient_Data_Call
Data is a helper method to define mock.On call
func (*SMTPClient_Expecter) Extension ¶ added in v1.15.1
func (_e *SMTPClient_Expecter) Extension(ext interface{}) *SMTPClient_Extension_Call
Extension is a helper method to define mock.On call
- ext string
func (*SMTPClient_Expecter) Hello ¶ added in v1.15.1
func (_e *SMTPClient_Expecter) Hello(localName interface{}) *SMTPClient_Hello_Call
Hello is a helper method to define mock.On call
- localName string
func (*SMTPClient_Expecter) Mail ¶ added in v1.15.1
func (_e *SMTPClient_Expecter) Mail(from interface{}) *SMTPClient_Mail_Call
Mail is a helper method to define mock.On call
- from string
func (*SMTPClient_Expecter) Noop ¶ added in v1.15.1
func (_e *SMTPClient_Expecter) Noop() *SMTPClient_Noop_Call
Noop is a helper method to define mock.On call
func (*SMTPClient_Expecter) Rcpt ¶ added in v1.15.1
func (_e *SMTPClient_Expecter) Rcpt(to interface{}) *SMTPClient_Rcpt_Call
Rcpt is a helper method to define mock.On call
- to string
func (*SMTPClient_Expecter) StartTLS ¶ added in v1.15.1
func (_e *SMTPClient_Expecter) StartTLS(config interface{}) *SMTPClient_StartTLS_Call
StartTLS is a helper method to define mock.On call
- config *tls.Config
type SMTPClient_Extension_Call ¶ added in v1.15.1
SMTPClient_Extension_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Extension'
func (*SMTPClient_Extension_Call) Return ¶ added in v1.15.1
func (_c *SMTPClient_Extension_Call) Return(_a0 bool, _a1 string) *SMTPClient_Extension_Call
func (*SMTPClient_Extension_Call) Run ¶ added in v1.15.1
func (_c *SMTPClient_Extension_Call) Run(run func(ext string)) *SMTPClient_Extension_Call
func (*SMTPClient_Extension_Call) RunAndReturn ¶ added in v1.15.1
func (_c *SMTPClient_Extension_Call) RunAndReturn(run func(string) (bool, string)) *SMTPClient_Extension_Call
type SMTPClient_Hello_Call ¶ added in v1.15.1
SMTPClient_Hello_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hello'
func (*SMTPClient_Hello_Call) Return ¶ added in v1.15.1
func (_c *SMTPClient_Hello_Call) Return(_a0 error) *SMTPClient_Hello_Call
func (*SMTPClient_Hello_Call) Run ¶ added in v1.15.1
func (_c *SMTPClient_Hello_Call) Run(run func(localName string)) *SMTPClient_Hello_Call
func (*SMTPClient_Hello_Call) RunAndReturn ¶ added in v1.15.1
func (_c *SMTPClient_Hello_Call) RunAndReturn(run func(string) error) *SMTPClient_Hello_Call
type SMTPClient_Mail_Call ¶ added in v1.15.1
SMTPClient_Mail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Mail'
func (*SMTPClient_Mail_Call) Return ¶ added in v1.15.1
func (_c *SMTPClient_Mail_Call) Return(_a0 error) *SMTPClient_Mail_Call
func (*SMTPClient_Mail_Call) Run ¶ added in v1.15.1
func (_c *SMTPClient_Mail_Call) Run(run func(from string)) *SMTPClient_Mail_Call
func (*SMTPClient_Mail_Call) RunAndReturn ¶ added in v1.15.1
func (_c *SMTPClient_Mail_Call) RunAndReturn(run func(string) error) *SMTPClient_Mail_Call
type SMTPClient_Noop_Call ¶ added in v1.15.1
SMTPClient_Noop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Noop'
func (*SMTPClient_Noop_Call) Return ¶ added in v1.15.1
func (_c *SMTPClient_Noop_Call) Return(_a0 error) *SMTPClient_Noop_Call
func (*SMTPClient_Noop_Call) Run ¶ added in v1.15.1
func (_c *SMTPClient_Noop_Call) Run(run func()) *SMTPClient_Noop_Call
func (*SMTPClient_Noop_Call) RunAndReturn ¶ added in v1.15.1
func (_c *SMTPClient_Noop_Call) RunAndReturn(run func() error) *SMTPClient_Noop_Call
type SMTPClient_Rcpt_Call ¶ added in v1.15.1
SMTPClient_Rcpt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rcpt'
func (*SMTPClient_Rcpt_Call) Return ¶ added in v1.15.1
func (_c *SMTPClient_Rcpt_Call) Return(_a0 error) *SMTPClient_Rcpt_Call
func (*SMTPClient_Rcpt_Call) Run ¶ added in v1.15.1
func (_c *SMTPClient_Rcpt_Call) Run(run func(to string)) *SMTPClient_Rcpt_Call
func (*SMTPClient_Rcpt_Call) RunAndReturn ¶ added in v1.15.1
func (_c *SMTPClient_Rcpt_Call) RunAndReturn(run func(string) error) *SMTPClient_Rcpt_Call
type SMTPClient_StartTLS_Call ¶ added in v1.15.1
SMTPClient_StartTLS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartTLS'
func (*SMTPClient_StartTLS_Call) Return ¶ added in v1.15.1
func (_c *SMTPClient_StartTLS_Call) Return(_a0 error) *SMTPClient_StartTLS_Call
func (*SMTPClient_StartTLS_Call) Run ¶ added in v1.15.1
func (_c *SMTPClient_StartTLS_Call) Run(run func(config *tls.Config)) *SMTPClient_StartTLS_Call
func (*SMTPClient_StartTLS_Call) RunAndReturn ¶ added in v1.15.1
func (_c *SMTPClient_StartTLS_Call) RunAndReturn(run func(*tls.Config) error) *SMTPClient_StartTLS_Call
type SendgridClient ¶ added in v1.15.0
SendgridClient is an autogenerated mock type for the SendgridClient type
func NewSendgridClient ¶ added in v1.15.1
func NewSendgridClient(t interface {
mock.TestingT
Cleanup(func())
}) *SendgridClient
NewSendgridClient creates a new instance of SendgridClient. 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 (*SendgridClient) EXPECT ¶ added in v1.15.1
func (_m *SendgridClient) EXPECT() *SendgridClient_Expecter
type SendgridClient_Expecter ¶ added in v1.15.1
type SendgridClient_Expecter struct {
// contains filtered or unexported fields
}
func (*SendgridClient_Expecter) Send ¶ added in v1.15.1
func (_e *SendgridClient_Expecter) Send(email interface{}) *SendgridClient_Send_Call
Send is a helper method to define mock.On call
- email *mail.SGMailV3
type SendgridClient_Send_Call ¶ added in v1.15.1
SendgridClient_Send_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Send'
func (*SendgridClient_Send_Call) Return ¶ added in v1.15.1
func (_c *SendgridClient_Send_Call) Return(_a0 *rest.Response, _a1 error) *SendgridClient_Send_Call
func (*SendgridClient_Send_Call) Run ¶ added in v1.15.1
func (_c *SendgridClient_Send_Call) Run(run func(email *mail.SGMailV3)) *SendgridClient_Send_Call
func (*SendgridClient_Send_Call) RunAndReturn ¶ added in v1.15.1
func (_c *SendgridClient_Send_Call) RunAndReturn(run func(*mail.SGMailV3) (*rest.Response, error)) *SendgridClient_Send_Call