Documentation ¶
Index ¶
- func GetConf(name string) (interface{}, error)
- func Inject(instance interface{})
- func InjectConf(conf interface{})
- func IsConf(instance interface{}) bool
- func ListenConf(names []string, handler HandleFunc)
- func Load()
- type ConfigCenterConf
- type ConfigCenterConf_Clients
- type ConfigCenterConf_FileClient
- type ConfigCenterConf_Listen
- type ConfigCenterConf_NacosClient
- type ConfigCenterConf_RedisClient
- type ConfigInterface
- type FileClient
- type HandleFunc
- type NacosClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectConf ¶ added in v0.0.52
func InjectConf(conf interface{})
func ListenConf ¶
func ListenConf(names []string, handler HandleFunc)
Types ¶
type ConfigCenterConf ¶
type ConfigCenterConf struct { Enable bool `json:"enable"` Backup bool `json:"backup"` Driver string `json:"driver"` Interval int64 `json:"interval"` Layers int64 `json:"layers"` Clients *ConfigCenterConf_Clients `json:"clients"` Listens []*ConfigCenterConf_Listen `json:"listens"` }
func GetConfigCenterConf ¶ added in v0.0.52
func GetConfigCenterConf() *ConfigCenterConf
func (*ConfigCenterConf) ConfigName ¶
func (i *ConfigCenterConf) ConfigName() string
type ConfigCenterConf_Clients ¶ added in v0.0.9
type ConfigCenterConf_Clients struct { File *ConfigCenterConf_FileClient `json:"file"` Redis *ConfigCenterConf_RedisClient `json:"redis"` Nacos *ConfigCenterConf_NacosClient `json:"nacos"` }
type ConfigCenterConf_FileClient ¶ added in v0.0.9
type ConfigCenterConf_Listen ¶ added in v0.0.9
type ConfigCenterConf_NacosClient ¶ added in v0.0.9
type ConfigCenterConf_RedisClient ¶ added in v0.0.9
type ConfigCenterConf_RedisClient struct{}
type ConfigInterface ¶
type ConfigInterface interface {
ConfigName() string
}
type FileClient ¶ added in v0.0.9
type FileClient struct{}
type HandleFunc ¶
type HandleFunc func()
type NacosClient ¶ added in v0.0.9
type NacosClient struct{}
Click to show internal directories.
Click to hide internal directories.