notifier

package
v0.48.7 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package notifier provides a piped component that sends notifications to the configured targets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

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

func NewNotifier

func NewNotifier(cfg *config.PipedSpec, logger *zap.Logger) (*Notifier, error)

func (*Notifier) Notify

func (n *Notifier) Notify(event model.NotificationEvent)

func (*Notifier) Run

func (n *Notifier) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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