notifiers

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNotifier

func AddNotifier(name string, params map[string]interface{}, forComp config.ForComponent, baseInfo config.BaseInfo) error

func NotifiersMetadataFields added in v1.3.0

func NotifiersMetadataFields() models.MetadataFields

func Notify

func Notify(store storages.Store)

func RegisterNotifier

func RegisterNotifier(notifier Notifier)

Types

type Notifier

type Notifier interface {
	Creator(params map[string]interface{}, baseInfo config.BaseInfo) (Notifier, error)
	Name() string
	Id() string
	Notify(incident models.Incident) error
}

type NotifierMetadataField added in v1.3.0

type NotifierMetadataField interface {
	MetadataFields() []models.MetadataField
}

type NotifierSubscriber

type NotifierSubscriber interface {
	NotifySubscriber(incident models.Incident, subscribers []string) error
}

type ToNotifie

type ToNotifie struct {
	Notifier Notifier
	For      config.ForComponent
}

Directories

Path Synopsis
emailfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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