templated

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package templated is a config-only generic notifier: it renders a user-supplied Go text/template over notify.Payload and POSTs the result to any endpoint (Teams, Discord, ntfy, incident.io, …). One YAML block per target — no Go, no rebuild. The Investigation is already secret-redacted before any notifier runs (investigate.redactInvestigation), so templates only ever see redacted data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

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

Notifier fans one delivery out to every configured template instance.

func (*Notifier) Deliver

func (n *Notifier) Deliver(ctx context.Context, inv providers.Investigation) error

Deliver renders and POSTs every enabled instance; a failing instance is reported but never blocks its siblings (errors are joined, mirroring notify.Multi one level down).

Jump to

Keyboard shortcuts

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