monitor

package
v0.0.0-...-7281faa Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2012 License: ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CanExit = true
View Source
var ConfigFile string = "monitor.json"

ConfigFile points to the file containing the configuration data for the notifications

Functions

func ConfigFromEnv

func ConfigFromEnv()

ConfigFromEnv reads the configuration from the environment

func ConfigFromJson

func ConfigFromJson() error

ConfigFromJson reads the file specified by ConfigFile

func DisableEmail

func DisableEmail()

DisableEmail disables email notifications

func DisablePushover

func DisablePushover()

DisablePushover disables email notifications

func EmailEnabled

func EmailEnabled() bool

Returns true if email notifications are enabled.

func EnableEmail

func EnableEmail()

EnableEmail enables email notifications

func EnablePushover

func EnablePushover()

EnablePushover enables email notifications

func Monitor

func Monitor(target func() error)

func PushoverEnabled

func PushoverEnabled() bool

PushoverEnabled returns true if pushover notifications are enabled.

Types

type Panicked

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

Panicked is used to determine whether a panic has occurred; normally the function will exit with a nil error, but we also want to know if it exited due to a panic.

Jump to

Keyboard shortcuts

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