1 Star 0 Fork 0

csingo / cComponents

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ComponentInterface.go 484 Bytes
一键复制 编辑 原始数据 按行查看 历史
joe 提交于 2024-02-20 17:47 . update
package cComponents
type ListenHandler func(config ConfigInterface)
type ConfigListener struct {
ConfigName string
Listeners []ListenHandler
}
func DefaultListenHandler(config ConfigInterface) {}
type ComponentInterface interface {
Inject(instance any) bool // 注入容器实例
InjectConf(config ConfigInterface) bool // 注入组件配置
Load() // 初始化组件
Listen() []*ConfigListener // 监听配置
}
Go
1
https://gitee.com/csingo/cComponents.git
git@gitee.com:csingo/cComponents.git
csingo
cComponents
cComponents
v0.4.0

搜索帮助