Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExitOn ¶
type ExitOn string
ExitOn describes when a program should exit (not-restart)
const ( // ExitOnNone means the program should always be restarted ExitOnNone ExitOn = "" // ExitOnSuccess means the program should only restart if errored ExitOnSuccess ExitOn = "success" // ExitAllOnSuccess means the program should only restart if errored, // otherwise exit this watchdog. Intended for Windows ExitAllOnSuccess ExitOn = "all" )
type Log ¶
type Log interface { Debugf(s string, args ...interface{}) Infof(s string, args ...interface{}) Warningf(s string, args ...interface{}) Errorf(s string, args ...interface{}) }
Log is the logging interface for the watchdog package
Click to show internal directories.
Click to hide internal directories.