notifier

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(templateFS fs.FS, cfg Config, logger *slog.Logger) (delivery.Notifier, error)

New creates the configured notifier backend.

func ValidateRuntimeTemplates

func ValidateRuntimeTemplates(
	templateFS fs.FS,
	cfg Config,
	checkInName string,
	expectedEvery time.Duration,
	alertingDelay time.Duration,
) error

ValidateRuntimeTemplates renders configured notification templates with representative runtime events.

Types

type Config

type Config struct {
	Webhooks []targets.WebhookConfig
	Emails   []targets.EmailConfig
}

Config contains all configured notification targets.

Jump to

Keyboard shortcuts

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