notify

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, factory Factory)

Types

type Factory

type Factory func(logger log.Logger, receivers []config.Receiver, notifierCfg *config.Config) notifier.Notifier

type Notification

type Notification struct {
	Notifiers []notifier.Notifier
	Data      template.Data
}

func NewNotification

func NewNotification(logger log.Logger, receivers []config.Receiver, notifierCfg *config.Config, data template.Data) *Notification

func (*Notification) Notify

func (n *Notification) Notify(ctx context.Context) []error

Directories

Path Synopsis
sms

Jump to

Keyboard shortcuts

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