接口定义
DI使用接口
type DI interface {
// ...
// UseValueStore 设置配置项管理器
UseValueStore(v ValueStore) DI
// Property 获取配置项管理器
Property() ValueStore
// SetDefaultProperty 设置默认配置项
SetDefaultProperty(key string, value interface{}) DI
// SetDefaultPropertyMap 设置多个默认配置项
SetDefaultPropertyMap(properties map[string]interface{}) DI
// SetProperty 设置配置项
SetProperty(key string, value interface{}) DI
// SetPropertyMap 设置多个配置项
SetPropertyMap(properties map[string]interface{}) DI
}配置管理器定义
最后更新于