notifier

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	MsgChan chan interface{}
	// contains filtered or unexported fields
}

Notifier is the main notifier struct which holds all config items for triggering notifications.

func NewNotifier

func NewNotifier(cfg *config.SlackConfig) (*Notifier, error)

NewNotifier builds a new notifier struct in order to run the nomad-toast notifier task. The message channel is importantly where events are received from the watcher.

func (*Notifier) Run

func (n *Notifier) Run()

Run triggers the notifier to start listening for messages.

Jump to

Keyboard shortcuts

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