Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigChangeListener ¶
type ConfigChangeListener interface {
// contains filtered or unexported methods
}
该方法会在gconf后台同步goroutine里执行,请保证该方法不要有阻塞。不然会影响gconf更新。 key 键 oldValue 老的值,新增key时,该值为"" newValue 新的值,删除key时,该值为""
type ConfigCollection ¶
type ConfigCollection struct {
// contains filtered or unexported fields
}
配置集合
func GetGlobalConfigCollection ¶
func GetGlobalConfigCollection() *ConfigCollection
获取全局的配置配置集合,此方法用于框架的统一配置。 应用不需要调用此方法
func (*ConfigCollection) AddConfigChangeListener ¶
func (c *ConfigCollection) AddConfigChangeListener(key string, configChangeListener ConfigChangeListener)
func (*ConfigCollection) AsMap ¶
func (c *ConfigCollection) AsMap() map[string]string
获取配置结合中所有的key-value,以map返回。
func (*ConfigCollection) GetValue ¶ added in v0.2.0
func (c *ConfigCollection) GetValue(key string) *Value
获取key对应的配置
type Value ¶ added in v0.2.0
type Value struct {
// contains filtered or unexported fields
}
func (*Value) AsProperties ¶ added in v0.2.1
Click to show internal directories.
Click to hide internal directories.