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) 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) OnAuth(a smtp.Auth) *SMTPClient_Auth
- func (_m *SMTPClient) OnAuthMatch(matchers ...interface{}) *SMTPClient_Auth
- func (_m *SMTPClient) OnClose() *SMTPClient_Close
- func (_m *SMTPClient) OnCloseMatch(matchers ...interface{}) *SMTPClient_Close
- func (_m *SMTPClient) OnData() *SMTPClient_Data
- func (_m *SMTPClient) OnDataMatch(matchers ...interface{}) *SMTPClient_Data
- func (_m *SMTPClient) OnExtension(ext string) *SMTPClient_Extension
- func (_m *SMTPClient) OnExtensionMatch(matchers ...interface{}) *SMTPClient_Extension
- func (_m *SMTPClient) OnHello(localName string) *SMTPClient_Hello
- func (_m *SMTPClient) OnHelloMatch(matchers ...interface{}) *SMTPClient_Hello
- func (_m *SMTPClient) OnMail(from string) *SMTPClient_Mail
- func (_m *SMTPClient) OnMailMatch(matchers ...interface{}) *SMTPClient_Mail
- func (_m *SMTPClient) OnNoop() *SMTPClient_Noop
- func (_m *SMTPClient) OnNoopMatch(matchers ...interface{}) *SMTPClient_Noop
- func (_m *SMTPClient) OnRcpt(to string) *SMTPClient_Rcpt
- func (_m *SMTPClient) OnRcptMatch(matchers ...interface{}) *SMTPClient_Rcpt
- func (_m *SMTPClient) OnStartTLS(config *tls.Config) *SMTPClient_StartTLS
- func (_m *SMTPClient) OnStartTLSMatch(matchers ...interface{}) *SMTPClient_StartTLS
- func (_m *SMTPClient) Rcpt(to string) error
- func (_m *SMTPClient) StartTLS(config *tls.Config) error
- type SMTPClient_Auth
- type SMTPClient_Close
- type SMTPClient_Data
- type SMTPClient_Extension
- type SMTPClient_Hello
- type SMTPClient_Mail
- type SMTPClient_Noop
- type SMTPClient_Rcpt
- type SMTPClient_StartTLS
- type SendgridClient
- type SendgridClient_Send
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 (*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) 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) OnAuth ¶ added in v1.13.2
func (_m *SMTPClient) OnAuth(a smtp.Auth) *SMTPClient_Auth
func (*SMTPClient) OnAuthMatch ¶ added in v1.13.2
func (_m *SMTPClient) OnAuthMatch(matchers ...interface{}) *SMTPClient_Auth
func (*SMTPClient) OnClose ¶ added in v1.13.2
func (_m *SMTPClient) OnClose() *SMTPClient_Close
func (*SMTPClient) OnCloseMatch ¶ added in v1.13.2
func (_m *SMTPClient) OnCloseMatch(matchers ...interface{}) *SMTPClient_Close
func (*SMTPClient) OnData ¶ added in v1.13.2
func (_m *SMTPClient) OnData() *SMTPClient_Data
func (*SMTPClient) OnDataMatch ¶ added in v1.13.2
func (_m *SMTPClient) OnDataMatch(matchers ...interface{}) *SMTPClient_Data
func (*SMTPClient) OnExtension ¶ added in v1.13.2
func (_m *SMTPClient) OnExtension(ext string) *SMTPClient_Extension
func (*SMTPClient) OnExtensionMatch ¶ added in v1.13.2
func (_m *SMTPClient) OnExtensionMatch(matchers ...interface{}) *SMTPClient_Extension
func (*SMTPClient) OnHello ¶ added in v1.13.2
func (_m *SMTPClient) OnHello(localName string) *SMTPClient_Hello
func (*SMTPClient) OnHelloMatch ¶ added in v1.13.2
func (_m *SMTPClient) OnHelloMatch(matchers ...interface{}) *SMTPClient_Hello
func (*SMTPClient) OnMail ¶ added in v1.13.2
func (_m *SMTPClient) OnMail(from string) *SMTPClient_Mail
func (*SMTPClient) OnMailMatch ¶ added in v1.13.2
func (_m *SMTPClient) OnMailMatch(matchers ...interface{}) *SMTPClient_Mail
func (*SMTPClient) OnNoop ¶ added in v1.13.2
func (_m *SMTPClient) OnNoop() *SMTPClient_Noop
func (*SMTPClient) OnNoopMatch ¶ added in v1.13.2
func (_m *SMTPClient) OnNoopMatch(matchers ...interface{}) *SMTPClient_Noop
func (*SMTPClient) OnRcpt ¶ added in v1.13.2
func (_m *SMTPClient) OnRcpt(to string) *SMTPClient_Rcpt
func (*SMTPClient) OnRcptMatch ¶ added in v1.13.2
func (_m *SMTPClient) OnRcptMatch(matchers ...interface{}) *SMTPClient_Rcpt
func (*SMTPClient) OnStartTLS ¶ added in v1.13.2
func (_m *SMTPClient) OnStartTLS(config *tls.Config) *SMTPClient_StartTLS
func (*SMTPClient) OnStartTLSMatch ¶ added in v1.13.2
func (_m *SMTPClient) OnStartTLSMatch(matchers ...interface{}) *SMTPClient_StartTLS
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 ¶ added in v1.13.2
func (SMTPClient_Auth) Return ¶ added in v1.13.2
func (_m SMTPClient_Auth) Return(_a0 error) *SMTPClient_Auth
type SMTPClient_Close ¶ added in v1.13.2
func (SMTPClient_Close) Return ¶ added in v1.13.2
func (_m SMTPClient_Close) Return(_a0 error) *SMTPClient_Close
type SMTPClient_Data ¶ added in v1.13.2
func (SMTPClient_Data) Return ¶ added in v1.13.2
func (_m SMTPClient_Data) Return(_a0 io.WriteCloser, _a1 error) *SMTPClient_Data
type SMTPClient_Extension ¶ added in v1.13.2
func (SMTPClient_Extension) Return ¶ added in v1.13.2
func (_m SMTPClient_Extension) Return(_a0 bool, _a1 string) *SMTPClient_Extension
type SMTPClient_Hello ¶ added in v1.13.2
func (SMTPClient_Hello) Return ¶ added in v1.13.2
func (_m SMTPClient_Hello) Return(_a0 error) *SMTPClient_Hello
type SMTPClient_Mail ¶ added in v1.13.2
func (SMTPClient_Mail) Return ¶ added in v1.13.2
func (_m SMTPClient_Mail) Return(_a0 error) *SMTPClient_Mail
type SMTPClient_Noop ¶ added in v1.13.2
func (SMTPClient_Noop) Return ¶ added in v1.13.2
func (_m SMTPClient_Noop) Return(_a0 error) *SMTPClient_Noop
type SMTPClient_Rcpt ¶ added in v1.13.2
func (SMTPClient_Rcpt) Return ¶ added in v1.13.2
func (_m SMTPClient_Rcpt) Return(_a0 error) *SMTPClient_Rcpt
type SMTPClient_StartTLS ¶ added in v1.13.2
func (SMTPClient_StartTLS) Return ¶ added in v1.13.2
func (_m SMTPClient_StartTLS) Return(_a0 error) *SMTPClient_StartTLS
type SendgridClient ¶ added in v1.15.0
SendgridClient is an autogenerated mock type for the SendgridClient type
func (*SendgridClient) OnSend ¶ added in v1.15.0
func (_m *SendgridClient) OnSend(email *mail.SGMailV3) *SendgridClient_Send
func (*SendgridClient) OnSendMatch ¶ added in v1.15.0
func (_m *SendgridClient) OnSendMatch(matchers ...interface{}) *SendgridClient_Send
type SendgridClient_Send ¶ added in v1.15.0
func (SendgridClient_Send) Return ¶ added in v1.15.0
func (_m SendgridClient_Send) Return(_a0 *rest.Response, _a1 error) *SendgridClient_Send