Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
Shutdown logic follows this example https://gist.github.com/akhenakh/38dbfea70dc36964e23acc19777f3869
func (*App) RunAsync ¶
RunAsync performs the same function as Run() but also accepts an function to be run async to initialize the component.
func (*App) Shutdown ¶
Shutdown would perform a graceful shutdown of all components added through the Run() or RunAsync() functions
func (*App) Start ¶
Start is the Entry point for the app. All module components are initialized and managed here. When a top level module that need to be shutdown on exit is initialized. It should be added to the apps list of tracked components using the `Run()` function, but if the component has a blocking start/run function it should be tracked with the `RunAsync()` function and call the blocking function in the input function block.