ses

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SESClient added in v1.0.0

type SESClient interface {
	SendEmail(ctx context.Context, params *ses.SendEmailInput, optFns ...func(*ses.Options)) (*ses.SendEmailOutput, error)
}

SESClient is the interface that contains SendEmail function. We can mock this interface for testing purposes.

type SESSender

type SESSender struct {
	// contains filtered or unexported fields
}

SESSender is the struct that implements Sender interface. It contains the SESClient interface.

func NewSESSender

func NewSESSender(client SESClient) *SESSender

NewSESSender creates a new SESSender. It requires a SESClient interface.

func (*SESSender) Send

func (s *SESSender) Send(to, cc, bcc []string, from, projectName, version, url string) error

Send sends the email to the recipients.

Jump to

Keyboard shortcuts

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