Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is a component that initialises modules of the application in the right order of dependencies.
func (*Manager) AddDependency ¶
AddDependency adds a dependency from name(source) to dependsOn(targets) An error is returned if the source module name is not found
func (*Manager) InitModuleServices ¶
InitModuleServices initialises the target module by initialising all its dependencies in the right order. Modules are wrapped in such a way that they start after their dependencies have been started and stop before their dependencies are stopped.
Click to show internal directories.
Click to hide internal directories.