processmanager

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// Start will start the underlying subprocess
	Start() error
	// Stop will stop the underlying subprocess gracefully and wait for it
	// to exit
	Stop() error
	// Wait will return a channel that closes upon the subprocess exiting.
	// If the subprocess has not been started yet, the returned chan will
	// not close until the subprocess has been started and then stopped.
	Wait() <-chan struct{}
	// Running returns true if the subprocess is currently running
	Running() bool
	// String returns a string representation of this process
	String() string
	// Error returns the error returned from Wait() (or nil if there was no
	// error). If the process has not been started or is still running, nil
	// will be returned.
	Error() error
}

func New

func New(cmd *exec.Cmd, signals Signals) Interface

type Signals

type Signals struct {
	Stop os.Signal
}

Jump to

Keyboard shortcuts

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