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.
Click to show internal directories.
Click to hide internal directories.