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
GetMysqlFromConsul 获取mysql的配置
Click to show internal directories.
Click to hide internal directories.