Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var F, E, W, I, D, T log.LevelPrinter = log.GetLogPrinterSet(subsystem)
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( name string, run, stop func(), logger func(ent *log.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.