Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig(path string)
Types ¶
type Config ¶
type Config struct { Common struct { Version string LogLevel string AdminToken string } MQ struct { Addrs []string // mq地址 Topic string // 主题 } App struct { LoadInterval int } DB struct { Cluster []string TraceKeyspace string StaticKeyspace string NumConns int } Ticker struct { Interval int } Control control.Conf }
var Conf *Config
Click to show internal directories.
Click to hide internal directories.