notifiers

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func Notify

func Notify(actx context.Context, rule *rules.Rule, action *rules.Action, event *events.Event, log utils.LogLine)

Types

type Notifier

type Notifier interface {
	Init(fields map[string]any) error
	Run(log utils.LogLine) error
	Information() models.Information
	Parameters() models.Parameters
}

type Notifiers

type Notifiers []Notifier

func GetNotifiers

func GetNotifiers() *Notifiers

func ListDefaultNotifiers

func ListDefaultNotifiers() *Notifiers

func (*Notifiers) Add

func (notifiers *Notifiers) Add(notifier ...Notifier)

func (*Notifiers) FindNotifier

func (notifiers *Notifiers) FindNotifier(name string) Notifier

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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