alerting

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alerter

type Alerter interface {
	AlertError(err error) error
}

func NewAlerter

func NewAlerter(cfg service.ErrorAlerting) (Alerter, error)

type MockAlerter

type MockAlerter struct{}

func (*MockAlerter) AlertError

func (mn *MockAlerter) AlertError(e error) error

type PagerDuty

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

func NewPagerDutyAlerter

func NewPagerDutyAlerter(cfg *service.PagerDutyAlerting) (*PagerDuty, error)

func (*PagerDuty) AlertError

func (pd *PagerDuty) AlertError(e error) error

Jump to

Keyboard shortcuts

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