notification

package
v0.0.0-...-c9f746a Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SQSClient *sqs.Client
	QueueURL  string
)

Functions

func EnqueueEmail

func EnqueueEmail(ctx context.Context, to []string, from string, emailTemplate EmailTemplate) (string, error)

func Initialize

func Initialize(ctx context.Context, profile string, region string, queueURL string) error

Types

type EmailTemplate

type EmailTemplate struct {
	FileName    string
	Subject     string
	ContentType email.ContentType
	Data        interface{}
}

type ReaderUnsubscribedTemplateData

type ReaderUnsubscribedTemplateData struct {
	EmailAddress string
}

type RecaptchaChallengeFailedTemplateData

type RecaptchaChallengeFailedTemplateData struct {
	EmailAddress string
	Score        float32
}

type SubscriptionConfirmationTemplateData

type SubscriptionConfirmationTemplateData struct {
	WebsiteDomain  string
	APIDomain      string
	SubscriptionID string
	EmailAddress   string
}

Jump to

Keyboard shortcuts

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