Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunUnit ¶
type RunUnit struct {
// contains filtered or unexported fields
}
RunUnit handles correctly starting and stopping child processes that have StdConn pipe logging enabled, allowing custom hooks to run on start and stop,
func New ¶
func New( run, stop func(), logger func(ent *logi.Entry) (e error), pkgFilter func(pkg string) (out bool), quit qu.C, args ...string, ) (r *RunUnit)
New creates and starts a new rununit. run and stop functions are executed after starting and stopping. logger receives log entries and processes them (such as logging them).
func (*RunUnit) ShuttingDown ¶
ShuttingDown returns true if the server is shuting down
Click to show internal directories.
Click to hide internal directories.