alerting

package
v0.0.0-...-8939947 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert struct {
	Run  *tester.Run
	Test *tester.Test

	BaseURL string
}

type AlertManager

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

func NewAlertManager

func NewAlertManager(baseURL string, alerters []Alerter) *AlertManager

func (*AlertManager) Fire

func (a *AlertManager) Fire(ctx context.Context, alert *Alert) error

func (*AlertManager) RegisterAlerter

func (a *AlertManager) RegisterAlerter(alerter Alerter)

type Alerter

type Alerter interface {
	Fire(context.Context, *Alert) error
}

Jump to

Keyboard shortcuts

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