alerts

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertSender

type AlertSender interface {
	Send(ctx context.Context, msg spec.AlertMessage) error
	Name() string
}

func BuildSenders

func BuildSenders(cfg spec.AlertsConfig) []AlertSender

type Router

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

func NewRouter

func NewRouter(senders []AlertSender) *Router

func (*Router) Handle

func (r *Router) Handle(result spec.CheckResult)

func (*Router) SendTest

func (r *Router) SendTest()

func (*Router) UpdateSenders

func (r *Router) UpdateSenders(senders []AlertSender)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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