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.