notifier

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 15 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.Event)

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