# Functions
AfterInitModule 初始化所有module之后的hook 一般需要手动注册到注册中心.
BeforeCloseModule 服务关闭所有模块之前的hook 一般需要在注册中心先取消注册.
Close 手动关闭服务.
ForEachModule 有tag的每个模块,异步执行函数.
GetModuleByName 通过名称查找mod,类似spring查找bean.
GetModuleByNameFunc 热加载时module是会变的,所以返回一个函数 高阶函数.
GetModuleByTag 通过Tag查找模块 可以传入多个tag,取交集.
GetModuleByTagFunc 获取一个函数,执行可以动态获取tag对应的module 适用于Module会动态热加载的场景.
HotRun 开启模块热加载特性.
Reload 重载所有模块.
Run 模块以静态模式加载(关闭热加载特性).