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
}
Click to show internal directories.
Click to hide internal directories.