Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConsulConfig ¶
设置配置中心
Types ¶
type MysqlConfig ¶
type MysqlConfig struct { Host string `json:"host"` User string `json:"user"` Pwd string `json:"pwd"` Database string `json:"database"` Port int64 `json:"port"` }
创建结构体
func GetMysqlFromConsul ¶
func GetMysqlFromConsul(config config.Config, path ...string) *MysqlConfig
获取mysql的配置
Click to show internal directories.
Click to hide internal directories.