email

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxEmailReceivers       = math.MaxInt32
	DefaultSendTimeout      = time.Second * 3
	DefaultHTMLTemplate     = `{{ template "nm.default.html" . }}`
	DefaultTextTemplate     = `{{ template "nm.default.text" . }}`
	DefaultTSubjectTemplate = `{{ template "nm.default.subject" . }}`
)

Variables

This section is empty.

Functions

func NewEmailNotifier

func NewEmailNotifier(logger log.Logger, receivers []nmconfig.Receiver, notifierCfg *nmconfig.Config) notifier.Notifier

Types

type Notifier

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

func (*Notifier) Notify

func (n *Notifier) Notify(ctx context.Context, data template.Data) []error

Jump to

Keyboard shortcuts

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