amazonses

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvAccessKeyID = "ses_id"
	EnvSecretKey   = "ses_secret"
	EnvRegion      = "ses_region"
)

The environment variable names for the various SES configuration keys.

Variables

This section is empty.

Functions

func New

func New(accessKeyID, secretKey, region string) (notification.Sender, error)

New creates a new Amazon SES notification sender pulling the configuration from environment variables.

Types

type Sender

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

Sender is an SES based sender

func (*Sender) GetSES

func (c *Sender) GetSES() sesiface.SESAPI

GetSES returns the SES service so it can be used elsewhere.

func (*Sender) Send

func (c *Sender) Send(msg notification.Message) error

Send atempts to send the message.

Jump to

Keyboard shortcuts

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