Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeConsul = "consul" TypeNacos = "nacos" TypeFile = "file" )
配置类型
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configurator ¶
type Configurator interface { Key(group, key string) string Get(group, key string) (string, error) Set(group, key, value string) (bool, error) Watch(group, key string, cb func(key, value string)) error }
Configurator ... 配置器接口
func NewConfigurator ¶
func NewConfigurator(confType string, confValue interface{}) Configurator
NewConfigurator ...
type ConsulConfig ¶
ConsulConfig ... consul 配置
Click to show internal directories.
Click to hide internal directories.