Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Addr string `yaml:"addr"` User string `yaml:"user"` Password string `yaml:"password"` LogLevel string `yaml:"log_level"` Nodes []NodeConfig `yaml:"nodes"` Schemas []SchemaConfig `yaml:"schemas"` }
func ParseConfigData ¶
func ParseConfigFile ¶
type NodeConfig ¶
type RulesConfig ¶
type RulesConfig struct { Default string `yaml:"default"` ShardRule []ShardConfig `yaml:"shard"` }
type SchemaConfig ¶
type SchemaConfig struct { DB string `yaml:"db"` Nodes []string `yaml:"nodes"` RulesConifg RulesConfig `yaml:"rules"` }
Click to show internal directories.
Click to hide internal directories.