render

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RenderData

type RenderData struct {
	HeartbeatID string         // Heartbeat identifier.
	Title       string         // Heartbeat title.
	Status      string         // Status identifier.
	Subject     string         // Rendered subject/title.
	Payload     string         // Raw last payload.
	Timestamp   time.Time      // Event time.
	Interval    time.Duration  // Expected heartbeat interval.
	LateAfter   time.Duration  // Late window duration.
	Receiver    string         // Receiver name.
	Vars        map[string]any // Receiver variables.
	Since       time.Duration  // Time since last heartbeat.
}

RenderData is the template context for notifications.

func NewRenderData

func NewRenderData(n types.Payload, receiver string, vars map[string]any, subject string) RenderData

newRenderData builds a RenderData snapshot for templates.

Jump to

Keyboard shortcuts

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