Versions in this module Expand all Collapse all v1 v1.0.0 Dec 6, 2019 Changes in this version + const BeforeRunning + const BeforeShutingdown + const BeforeStarting + const OnAbort + func Abort() + func EnsureState(exp StateT, msg string) + func EnsureStatef(exp StateT, format string, a ...interface{}) + func Exit(n int) + func Register(name string, onStart, onShutdown Callback, depends ...string) + func RegisterHook(name string, order int, typ hookType, fn HookFunc) + func Shutdown() + func Start() + func WaitToEnd() + type Callback func() + type HookFunc func() + type StateT int32 + const Halt + const Initing + const Running + const Shutingdown + const Starting + func State() StateT + func (i StateT) String() string