Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssociatedTableConfig ¶
type Config ¶
type Config struct { Addr string `yaml:"addr"` LogLevel string `yaml:"log_level"` Charset string `yaml:"charset"` CollationId mysql.CollationId `yaml:"collation_id"` DefaultAuthMethod string `yaml:"default_auth_method"` LogPath string `yaml:"log_path"` UserList []UserConfig `yaml:"user_list"` NodePath []string `yaml:"node_path"` NodeList []NodeConfig SchemaPath []string `yaml:"schema_path"` SchemaList []SchemaConfig }
func ParseConfig ¶
type NodeConfig ¶
type SchemaConfig ¶
type SchemaConfig struct { NodeList []string `yaml:"node_list"` SchemaName string `yaml:"schema_name"` NodeCfgList []NodeConfig DefaultNode string `yaml:"default_node"` //RuleList []RuleConfig `yaml:"rule_list"` TableList []TableConfig `yaml:"table_list"` }
type TableConfig ¶
type TableConfig struct { TableName string `yaml:"table_name"` Key string `yaml:"key"` Type string `yaml:"type"` Locations []int `yaml:"locations"` AssociatedTable *AssociatedTableConfig `yaml:"associated_table"` NodeList []string `yaml:"node_list"` DefaultNode string `yaml:"default_node"` DateRange []string `yaml:"date_range"` TableRowLimit int `yaml:"table_row_limit"` }
type UserConfig ¶
Click to show internal directories.
Click to hide internal directories.