Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GlobalConfig ¶
type GlobalConfig struct { Env string `toml:"env"` Cluster string `toml:"cluster"` SyncIdFilePath string `toml:"sync_id_file_path"` Http HttpConfig `toml:"http"` SSh map[string]SShConfig `toml:"ssh"` Strategy StrategyConfig `toml:"strategy"` MysqlTask []MysqlTaskConfig `toml:"mysql_task"` }
var Conf GlobalConfig
type HttpConfig ¶
type InspectConfig ¶
type MysqlMachineConfig ¶
type MysqlRegularConfig ¶
type MysqlSShConfig ¶
type MysqlTaskConfig ¶
type MysqlTaskConfig struct { TaskName string `toml:"task_name"` DataBase string `toml:"database"` DataMode string `toml:"data_mode"` IncludeTables []string `toml:"include_tables"` ExcludeTables []string `toml:"exclude_tables"` Regular map[string]MysqlRegularConfig `toml:"regular"` Source MysqlMachineConfig `toml:"source"` Target MysqlMachineConfig `toml:"target"` Strategy TaskStrategyConfig `toml:"strategy"` }
type StrategyConfig ¶
type StrategyConfig struct { SyncMq SyncMqConfig `toml:"sync_mq"` SyncDirect SyncDirectConfig `toml:"sync_direct"` Inspect InspectConfig `toml:"inspect"` }
type SyncDirectConfig ¶
type SyncDirectConfig struct {
AppendDuration int64 `toml:"append_duration"`
}
type SyncMqConfig ¶
type SyncMqConfig struct {
Mysql []MqConfig `toml:"mysql"`
}
type TaskStrategyConfig ¶
Click to show internal directories.
Click to hide internal directories.