alerts

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package alerts provides alerting functionality for things like circuit breaks

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alerter

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

Alerter provides various alerting capabilities

func New

func New(logger *zap.Logger, cfg config.Alerts) *Alerter

New returns a new alerter service

func (*Alerter) NotifyCircuitBreak

func (a *Alerter) NotifyCircuitBreak(msg string) error

NotifyCircuitBreak notifies recipients abouta broken circuit

Jump to

Keyboard shortcuts

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