module
fun <Config : Any> module(module: Module<Config>, priority: Int = 10, mode: OverrideMode = OverrideMode.OVERRIDE, config: Config.() -> Unit = {})
Register a module.
Parameters
module
The module to be registered.
priority
The priority of the module in the registry. Default is 10.
mode
The mode of the module registration. Default is OVERRIDE. If the mode is OVERRIDE, the module will be overridden if it is already registered.
config
The configuration for the module.