ses

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Region              string
	AccessKeyID         string
	SecretAccessKey     string
	EmailSender         string
	PushNotificationARN string
}

Client contains the AWS configuration and methods

func NewClient

func NewClient(region, accessKey, secretKey string) (*Client, error)

NewClient creates and returns a new AWS Client from configuration

func (*Client) SendEmail

func (c *Client) SendEmail(recipient, subject, htmlBody string) (*ses.SendEmailOutput, error)

SendEmail delivery an email utilizing the AWS SES service

func (*Client) SendSMS

func (c *Client) SendSMS(phoneNumber string, message string) (string, error)

SendSMS Send SMS using AWS SNS

func (*Client) SetEmailSender

func (c *Client) SetEmailSender(emailSender string)

func (*Client) SetPushNotificationARN

func (c *Client) SetPushNotificationARN(arn string)

type Config

type Config struct {
	Region              string
	AccessKeyID         string
	EmailSender         string
	PushNotificationARN string
}

Jump to

Keyboard shortcuts

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