notify

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 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 ServerNotifier added in v0.12.0

type ServerNotifier struct{}

ServerNotifier forwards alert events to catpaw-server via the WebSocket connection's ring buffer. Writing to the ring buffer is O(1) and never blocks, so it cannot affect other notifiers or the plugin engine.

func NewServerNotifier added in v0.12.0

func NewServerNotifier() *ServerNotifier

func (*ServerNotifier) Forward added in v0.12.0

func (n *ServerNotifier) Forward(event *types.Event) bool

func (*ServerNotifier) Name added in v0.12.0

func (n *ServerNotifier) 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