watchdog

package
v0.0.0-...-8fafcef Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2014 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watchdog

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

func New

func New() *Watchdog

func (*Watchdog) Add

func (w *Watchdog) Add(p *process.Process) error

Add a process

func (*Watchdog) FindByName

func (w *Watchdog) FindByName(name string) *process.Process

FindByName returns a process for the given name or nil if not found

func (*Watchdog) Remove

func (w *Watchdog) Remove(p *process.Process) error

Remove a process

func (*Watchdog) Shutdown

func (w *Watchdog) Shutdown() error

Shutdown stops all running processes ready for safe exit

Jump to

Keyboard shortcuts

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