Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfigBy ¶
Types ¶
type ClickHouse ¶ added in v0.0.2
type ClickHouse struct { Username string `yaml:"username"` Password string `yaml:"password"` Dbname string `yaml:"dbname"` Debug bool `yaml:"debug"` OpenStrategy string `yaml:"open-strategy"` BlockSize int `yaml:"block-size"` PoolSize int `yaml:"pool-size"` Compress int `yaml:"compress"` Timeout Timeout `yaml:"timeout"` Cluster Cluster `yaml:"cluster"` Server Addr `yaml:"server"` }
type Config ¶
type Config struct { Server Server `yaml:"server"` Mysql MysqlConf `yaml:"mysql"` Logger Logger `yaml:"logger"` Redis RedisConf `yaml:"redis"` ClickHouse ClickHouse `yaml:"clickhouse"` }
func LoadConfig ¶
type Mysql ¶
type Mysql struct { Host string `yaml:"host"` Port int `yaml:"port"` Username string `yaml:"username"` Password string `yaml:"password"` Dbname string `yaml:"dbname"` Charset string `yaml:"charset"` ActiveMax int `yaml:"active-max"` ConnectionMax int `yaml:"connection-max"` Dev string `yaml:"dev"` }
Click to show internal directories.
Click to hide internal directories.