mocks

package
v1.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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) Publish

func (m *MockPublisher) Publish(ctx context.Context, notificationType string, msg proto.Message) error

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 PublishFunc

type PublishFunc func(ctx context.Context, key string, msg proto.Message) error

type RunFunc

type RunFunc func() error

type SESClient

type SESClient struct {
	sesiface.SESAPI
	// contains filtered or unexported fields
}

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

type SMTPClient struct {
	mock.Mock
}

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

func (*SMTPClient) StartTLS added in v1.13.2

func (_m *SMTPClient) StartTLS(config *tls.Config) error

StartTLS provides a mock function with given fields: config

type SMTPClient_Auth added in v1.13.2

type SMTPClient_Auth struct {
	*mock.Call
}

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

type SMTPClient_Close struct {
	*mock.Call
}

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

type SMTPClient_Data struct {
	*mock.Call
}

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

type SMTPClient_Extension struct {
	*mock.Call
}

func (SMTPClient_Extension) Return added in v1.13.2

type SMTPClient_Hello added in v1.13.2

type SMTPClient_Hello struct {
	*mock.Call
}

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

type SMTPClient_Mail struct {
	*mock.Call
}

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

type SMTPClient_Noop struct {
	*mock.Call
}

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

type SMTPClient_Rcpt struct {
	*mock.Call
}

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

type SMTPClient_StartTLS struct {
	*mock.Call
}

func (SMTPClient_StartTLS) Return added in v1.13.2

type SendEmailFunc

type SendEmailFunc func(ctx context.Context, email *admin.EmailMessage) error

type StopFunc

type StopFunc func() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL