# Packages
No description provided by the author
# Functions
DisableModuleManagement disables module management and returns the module system to the default start/stop behavior.
EnableModuleManagement enables the module management functionality within modules.
GetExitStatusCode waits for the shutdown to complete and then returns the previously set exit code.
GetLastReportedError returns the last reported module error.
GetStatus exports status data from the module system.
IsPanic returns whether the given error is a wrapped panic by the modules package and additionally returns it, if true.
IsShuttingDown returns whether the global shutdown is in progress.
IsStarting returns whether the initial global start is still in progress.
ManageModules triggers the module manager to react to recent changes of enabled modules.
Register registers a new module.
SetCmdLineOperation sets a command line operation to be executed instead of starting the system.
SetErrorReportingChannel sets the channel to report module errors through.
SetEventSubscriptionFunc sets a function that is called for every event.
SetExitStatusCode sets the exit code that the program shell return to the host after shutdown.
SetFailureUpdateNotifyFunc sets a function that is called on every change of a module's failure status.
SetGlobalPrepFn sets a global prep function that is run before all modules.
SetGlobalShutdownFn sets a global shutdown function that is called first when shutting down.
SetMaxConcurrentMicroTasks sets the maximum number of microtasks that should be run concurrently.
SetSleepMode enables or disables sleep mode for all the modules.
SetStdErrReporting controls error reporting to stderr.
Shutdown stops all modules in the correct order.
ShuttingDown returns a channel read on the global shutdown signal.
Start starts all modules in the correct order.
# Constants
Default Worker Configuration.
Module Failure Status Values.
Module Failure Status Values.
Module Failure Status Values.
Module Failure Status Values.
not prepared, not started.
prepared, not started.
online and running.
Module Status Values.
Module Status Values.
Module Status Values.
# Variables
ErrCleanExit is returned by Start() when the program is interrupted before starting.
ErrRestartNow may be returned (wrapped) by service workers to request an immediate restart.
HelpFlag triggers printing flag.Usage.
# Structs
Module represents a module.
ModuleError wraps a panic, error or message into an error that can be reported.
ModuleStatus holds an exported status summary of one module.
SleepyTicker is wrapper over time.Ticker that respects the sleep mode of the module.
Status holds an exported status summary of the modules system.
Task is managed task bound to a module.