alerts

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alerts added in v0.7.0

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

Alerts represents alerts api module

func New added in v0.7.0

func New(alertManager corestorage.Alert, chManager ChManager, logger *zap.Logger) *Alerts

New creates new Alerts API module

func (*Alerts) Handler added in v0.7.0

func (a *Alerts) Handler(r chi.Router)

Handler creates API handlers for Alerts API module

type ChManager added in v0.7.0

type ChManager interface {
	Send(a *alert.Alert, text string, options *alert.Options)
}

ChManager represents interface of the Channel Manager

Jump to

Keyboard shortcuts

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