notifiers

package
v0.1.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func Notify

func Notify(rule *rules.Rule, event *events.Event, log utils.LogLine)

Types

type Notifier

type Notifier struct {
	Init         func(fields map[string]interface{}) error
	Notification func(log utils.LogLine) error
	Name         string
	// contains filtered or unexported fields
}

type Notifiers

type Notifiers []*Notifier

func GetNotifiers

func GetNotifiers() *Notifiers

func (*Notifiers) Add

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

func (*Notifiers) GetNotifier

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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