mailer

package
v0.0.0-...-9cb750e Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 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 Mailer

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

func NewMailer

func NewMailer(options Options) *Mailer

func (Mailer) SendMaxOperationEmails

func (m Mailer) SendMaxOperationEmails(templateArgs map[string]interface{}) error

func (Mailer) SendMaxSilenceEmails

func (m Mailer) SendMaxSilenceEmails(templateArgs map[string]interface{}) error

type Options

type Options struct {
	InstanceName string

	TemplateEmailSilenceMaxTimeExceeded   string
	TemplateEmailOperationMaxTimeExceeded string

	SenderEmail string
	SenderName  string
	Receivers   []string

	SendGridKey string
}

Jump to

Keyboard shortcuts

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