Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Process ¶
type Process struct { Task // contains filtered or unexported fields }
func NewProcess ¶
type ProcessRunner ¶
type ProcessState ¶
type ProcessState int
const ( ProcessStateIdle ProcessState = iota ProcessStateStarting ProcessStateRunning ProcessStateStopping ProcessStateKilling ProcessStateRestarting ProcessStateExited )
type ProcessWatcher ¶
type ProcessWatcher struct {
// contains filtered or unexported fields
}
func NewProcessWatcher ¶
func NewProcessWatcher(t Task, padding int) *ProcessWatcher
func (*ProcessWatcher) Done ¶
func (w *ProcessWatcher) Done() bool
func (*ProcessWatcher) Kill ¶
func (w *ProcessWatcher) Kill()
func (*ProcessWatcher) Start ¶
func (w *ProcessWatcher) Start()
func (*ProcessWatcher) Stop ¶
func (w *ProcessWatcher) Stop()
func (*ProcessWatcher) Wait ¶
func (w *ProcessWatcher) Wait() bool
type Task ¶
type Task struct { // Name used in logs Name string // Command is the primary command to run. Command string // WatchFiles will cause the process to restart if any if the files change (can be patterns). WatchFiles []string // OneShot indicates that the process should run and then exit. // // Useful for running tests. OneShot bool }
Click to show internal directories.
Click to hide internal directories.