Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigTypeLocal = "local" ConfigTypeNacos = "nacos" ConfigTypeHttp = "http" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigCenter ¶
type ConfigCenterConfig ¶
type ConfigCenterConfig struct { // 配置类型 ConfigType string `flag:"name:conf_type;default:local;usage:配置类型"` // 是否监听配置文件 Watch bool `flag:"name:watch;short:w;default:false;usage:是否监听配置文件"` Nacos *v2.Nacos Local *local.Local Http *http.Config }
func (*ConfigCenterConfig) ConfigCenter ¶
func (c *ConfigCenterConfig) ConfigCenter(debug bool) ConfigCenter
type ConfigType ¶ added in v1.1.0
type ConfigType string
Click to show internal directories.
Click to hide internal directories.