notifications

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 7 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 {
	// contains filtered or unexported fields
}

Notifier can send log output as notification to admins, with optional batching.

func NewNotifier

func NewNotifier(c *cli.Context) *Notifier

NewNotifier creates and returns a new Notifier, using global configuration.

func (*Notifier) SendNotification

func (n *Notifier) SendNotification()

SendNotification sends any notifications accumulated since StartNotification() was called.

func (*Notifier) StartNotification

func (n *Notifier) StartNotification()

StartNotification starts a log batch. Notifications will be accumulated after this point and only sent when SendNotification() is called.

Jump to

Keyboard shortcuts

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