Documentation
¶
Overview ¶
Package background contains an abstraction for running processes in the background.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUserKilled = xerrors.Errorf("daemon killed by user")
Functions ¶
This section is empty.
Types ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
Process is an abstraction for running a command as a background process.
func (*Process) Restart ¶
Restart kill the running process and reruns the command with the updated cmd and args.
func (*Process) Run ¶
Run runs the command and waits for it to exit. It is a convenience function that combines both Start() and Wait().
Click to show internal directories.
Click to hide internal directories.