Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSinks = errors.New("no sinks configured")
Functions ¶
This section is empty.
Types ¶
type DeviceSelector ¶ added in v0.0.3
type DiscordSink ¶
type DiscordSink struct {
// contains filtered or unexported fields
}
func NewDiscordSink ¶
func NewDiscordSink(name, url string, logger *zap.Logger) *DiscordSink
func (*DiscordSink) Name ¶
func (s *DiscordSink) Name() string
func (*DiscordSink) Send ¶
func (s *DiscordSink) Send(ctx context.Context, n Notification) error
type Notification ¶
type Route ¶
type Route struct {
EventTypes []string
Severities []string
Sinks []string
Device DeviceSelector
}
type StdoutSink ¶
type StdoutSink struct {
// contains filtered or unexported fields
}
func NewStdoutSink ¶
func NewStdoutSink(name string, w io.Writer) *StdoutSink
func (*StdoutSink) Name ¶
func (s *StdoutSink) Name() string
func (*StdoutSink) Send ¶
func (s *StdoutSink) Send(_ context.Context, n Notification) error
type WebhookSink ¶
type WebhookSink struct {
// contains filtered or unexported fields
}
func NewWebhookSink ¶
func NewWebhookSink(name, url string, logger *zap.Logger) *WebhookSink
func (*WebhookSink) Name ¶
func (s *WebhookSink) Name() string
func (*WebhookSink) Send ¶
func (s *WebhookSink) Send(ctx context.Context, n Notification) error
Click to show internal directories.
Click to hide internal directories.