Documentation ¶
Index ¶
- type AwsSendEmailFunc
- type MockEmailer
- type MockPublisher
- type MockSubscriber
- type PublishFunc
- type RunFunc
- 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 SendEmailFunc
- type StopFunc
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 MockEmailer ¶
type MockEmailer struct {
// contains filtered or unexported fields
}
func (*MockEmailer) SendEmail ¶
func (m *MockEmailer) SendEmail(ctx context.Context, email *admin.EmailMessage) error
func (*MockEmailer) SetSendEmailFunc ¶
func (m *MockEmailer) SetSendEmailFunc(sendEmail SendEmailFunc)
type MockPublisher ¶
type MockPublisher struct {
// contains filtered or unexported fields
}
func (*MockPublisher) SetPublishCallback ¶
func (m *MockPublisher) SetPublishCallback(publishFunction PublishFunc)
type MockSubscriber ¶
type MockSubscriber struct {
// contains filtered or unexported fields
}
func (*MockSubscriber) Run ¶
func (m *MockSubscriber) Run() error
func (*MockSubscriber) Stop ¶
func (m *MockSubscriber) Stop() error
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 SendEmailFunc ¶
type SendEmailFunc func(ctx context.Context, email *admin.EmailMessage) error
Click to show internal directories.
Click to hide internal directories.