notify

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Forward

func Forward(event *types.Event) bool

func Register

func Register(n Notifier)

Types

type ConsoleNotifier

type ConsoleNotifier struct{}

func NewConsoleNotifier

func NewConsoleNotifier() *ConsoleNotifier

func (*ConsoleNotifier) Forward

func (c *ConsoleNotifier) Forward(event *types.Event) bool

func (*ConsoleNotifier) Name

func (c *ConsoleNotifier) Name() string

type FlashdutyNotifier

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

func NewFlashdutyNotifier

func NewFlashdutyNotifier(cfg *config.FlashdutyConfig) *FlashdutyNotifier

func (*FlashdutyNotifier) Forward

func (f *FlashdutyNotifier) Forward(event *types.Event) bool

func (*FlashdutyNotifier) Name

func (f *FlashdutyNotifier) Name() string

type Notifier

type Notifier interface {
	Name() string
	Forward(event *types.Event) bool
}

type PagerDutyNotifier

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

func NewPagerDutyNotifier

func NewPagerDutyNotifier(cfg *config.PagerDutyConfig) *PagerDutyNotifier

func (*PagerDutyNotifier) Forward

func (p *PagerDutyNotifier) Forward(event *types.Event) bool

func (*PagerDutyNotifier) Name

func (p *PagerDutyNotifier) Name() string

type WebAPINotifier

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

func NewWebAPINotifier

func NewWebAPINotifier(cfg *config.WebAPIConfig) *WebAPINotifier

func (*WebAPINotifier) Forward

func (w *WebAPINotifier) Forward(event *types.Event) bool

func (*WebAPINotifier) Name

func (w *WebAPINotifier) Name() string

Jump to

Keyboard shortcuts

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