Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Addr string `yaml:"addr"` User string `yaml:"user"` Password string `yaml:"password"` Database string `yaml:"database"` Default string `yaml:"default"` Pprof_addr string `yaml:"pprof_addr"` LogLevel string `yaml:"log_level"` Nodes []NodeConfig `yaml:"nodes"` ShardRule []ShardConfig `yaml:"rules"` }
func ParseConfigData ¶
func ParseJHSConfigFile ¶
type NodeConfig ¶
type NodeConfig struct { Name string `yaml:"name"` DownAfterNoAlive int `yaml:"down_after_noalive"` IdleConns int `yaml:"idle_conns"` RWSplit bool `yaml:"rw_split"` User string `yaml:"user"` Password string `yaml:"password"` DB string `yaml:"db"` Master string `yaml:"master"` Slave string `yaml:"slave"` }
Click to show internal directories.
Click to hide internal directories.