Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Address from which emails will be sent Sender = "briggySmalls90@gmail.com" // The subject line for the email. Subject = "🚨 Detectordag power update" DateFormat = "15:04 2/1/06" )
Variables ¶
This section is empty.
Functions ¶
func HandleRequest ¶
func HandleRequest(ctx context.Context, event StatusUpdatedEvent)
HandleRequest handles a lambda call
func SendEmail ¶
func SendEmail(recipients []string, status PowerStatusChangedEmailConfig) error
Types ¶
type StatusUpdatedEvent ¶
Click to show internal directories.
Click to hide internal directories.