mocks

package
v1.1.86 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 5 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 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