Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GlobalConsulConfig ConsulConfig GlobalServerConfig ServerConfig )
Functions ¶
This section is empty.
Types ¶
type ConsulConfig ¶
type MysqlConfig ¶
type MysqlConfig struct { Host string `mapstructure:"host" json:"host"` Port int `mapstructure:"port" json:"port"` Name string `mapstructure:"db" json:"db"` User string `mapstructure:"user" json:"user"` Password string `mapstructure:"password" json:"password"` Salt string `mapstructure:"salt" json:"salt"` }
type ServerConfig ¶
type ServerConfig struct { Name string `mapstructure:"name" json:"name"` Host string `mapstructure:"host" json:"host"` MysqlInfo MysqlConfig `mapstructure:"mysql" json:"mysql"` }
Click to show internal directories.
Click to hide internal directories.