Documentation
¶
Overview ¶
Package notify delivers change events to external sinks (Slack, webhooks). unknown-class changes never page (PRD §9.2); only medium+ severity notifies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShouldNotify ¶
func ShouldNotify(ev model.ChangeEvent) bool
ShouldNotify reports whether an event warrants paging. unknown-class and info severity are report-only.
Types ¶
type Notifier ¶
type Notifier interface {
Notify(ctx context.Context, events []model.ChangeEvent) error
}
Notifier delivers a batch of change events.
type Slack ¶
type Slack struct {
// contains filtered or unexported fields
}
Slack posts change events to a Slack incoming webhook.
Click to show internal directories.
Click to hide internal directories.