mailer

package
v0.0.0-...-e6e7638 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SendSoftwareVersionChangedTemplateID = 27132960
	WeeklyReportTemplateID               = 28522168
)
View Source
const DeviceDisconnectedTemplateID = int64(27137544)

Variables

This section is empty.

Functions

func GetSoftwareVersionChangedModel

func GetSoftwareVersionChangedModel(ctx SoftwareVersionChangedContext) map[string]interface{}

func QueueDisconnectedDeviceEmails

func QueueDisconnectedDeviceEmails()

QueueDisconnectedDeviceEmails queues emails for disconnected devices

func SendSoftwareVersionChanged

func SendSoftwareVersionChanged(ctx context.Context, emailAddress string, mailContext SoftwareVersionChangedContext) error

func SignUpForNewsletter

func SignUpForNewsletter(ctx context.Context, emailAddress string, requireOptIn bool) error

func StartDaemon

func StartDaemon()

StartDaemon will watch for need-to-send emails and

handle delivery

Types

type SoftwareVersionChangedContext

type SoftwareVersionChangedContext struct {
	NewFirmware      string `json:"newFirmware"`
	PreviousFirmware string `json:"previousFirmware"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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