notify

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidConfig indicates that supplied configuration is not valid.
	ErrInvalidConfig = errors.New("Invalid configuration")
	// ErrUnsupportedFmt indicates that the specified format is not supported.
	ErrUnsupportedFmt = errors.New("Unsupported format")
)

Functions

func NewSESNotifier

func NewSESNotifier(cfg SESConfig, sesSvc sesiface.SESAPI) (*sesNotifier, error)

Types

type Notifier

type Notifier interface {
	Notify(subject, mssg string, fmt model.NotifFmt, recipients []string) error
}

Notifier defines the interface for a notifier.

type SESConfig

type SESConfig struct {
	Region string
	From   string
	CC     []string
}

Jump to

Keyboard shortcuts

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