executor

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	Execute(event *event.Event, date time.Time, abort <-chan struct{})
}

Executor is the interface that wraps the Execute method to run the actions of an event.

func New

func New(nConfig notification.Config, finishedEvents chan<- string) (Executor, error)

New returns an object satisfying the executor interface.

type Stage

type Stage struct {
	Notifiers []notification.Notifier
	Delta     time.Duration
}

Stage represents a point in time prior to the event start where one or many notifications are sent.

Jump to

Keyboard shortcuts

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