Documentation ¶
Index ¶
- Variables
- type Columns
- type ConcurrentlyTask
- type Deltas
- type DeltasItem
- type ESConf
- type EventHeader
- type HistorySchemas
- type KafkaConf
- type MQEvent
- type MongoDBConf
- type MySQLConfig
- type MySQLSchema
- type MySQLStatus
- type NsqConf
- type SharedSync
- type StandardReturn
- type Task
- type TaskBaseData
- type TaskUpdate
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ParameterError = StandardReturn{ErrorCode: 400, Message: "Parameter error"}
)
Functions ¶
This section is empty.
Types ¶
type ConcurrentlyTask ¶
type Deltas ¶
type Deltas struct { Old DeltasItem `json:"old"` Def DeltasItem `json:"def"` }
type DeltasItem ¶
type EventHeader ¶
type HistorySchemas ¶
type HistorySchemas struct { Db string `json:"db"` Table string `json:"table"` Deltas Deltas `json:"deltas"` }
HistorySchemas mem <=> db 需要内存和本地存储互相映射 不用太过于强调binlog schema, history deltas, new deltas
type MongoDBConf ¶
type MongoDBConf struct { }
type MySQLConfig ¶
type MySQLSchema ¶
type MySQLStatus ¶
type StandardReturn ¶
type Task ¶
type Task struct { TaskBaseData KafkaConf *KafkaConf `json:"kafka_conf"` NsqConf *NsqConf `json:"nsq_conf"` MongoDBConf *MongoDBConf `json:"mongo_db_conf"` ESConf *ESConf `json:"es_conf"` }
func (*Task) LegalVerification ¶
type TaskBaseData ¶
type TaskBaseData struct { TaskID string `json:"task_id"` MySqlConfig MySQLConfig `json:"mysql_config"` Database []string `json:"database"` // default: all table Tables []string `json:"tables"` // default: all table ExcludeTable []string `json:"exclude_table"` // 排除表 table DatabaseMap map[string]struct{} `json:"database_map"` TablesMap map[string]struct{} `json:"tables_map"` ExcludeTableMap map[string]struct{} `json:"exclude_table_map"` }
Click to show internal directories.
Click to hide internal directories.