Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.6.0
type Config struct { // 配置格式 Format encoding.Format `flag:"name:format;default:toml;usage:配置格式" comment:"toml,json,yaml,yml"` // 配置类型 ConfigType ConfigType `flag:"name:conf_type;default:local;usage:配置类型"` // 是否监听配置文件 Watch bool `flag:"name:watch;short:w;default:false;usage:是否监听配置文件" env:"WATCH"` Nacos *nacos.Nacos Local *local.Local Http *http.Config }
func (*Config) ConfigCenter ¶ added in v1.6.0
func (c *Config) ConfigCenter(debug bool) ConfigCenter
type ConfigCenter ¶
type ConfigType ¶
type ConfigType string
const ( ConfigTypeLocal ConfigType = "local" ConfigTypeNacos ConfigType = "nacos" ConfigTypeHttp ConfigType = "http" )
Click to show internal directories.
Click to hide internal directories.