Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DMHeartbeatSchema = "dm_heartbeat" DMHeartbeatTable = "heartbeat" )
DM heartbeat schema / table name
Functions ¶
func IsSystemSchema ¶
IsSystemSchema judge schema is system shema or not case insensitive
Types ¶
type ActionType ¶
type ActionType bool
ActionType is do or ignore something
const ( Do ActionType = true Ignore ActionType = false )
builtin actiontype variable
type Filter ¶
Filter implements whitelist and blacklist filters.
func (*Filter) ApplyOn ¶
ApplyOn applies filter rules on tables rules like https://dev.mysql.com/doc/refman/8.0/en/replication-rules-table-options.html https://dev.mysql.com/doc/refman/8.0/en/replication-rules-db-options.html
type Rules ¶
type Rules struct { DoTables []*Table `json:"do-tables" toml:"do-tables" yaml:"do-tables"` DoDBs []string `json:"do-dbs" toml:"do-dbs" yaml:"do-dbs"` IgnoreTables []*Table `json:"ignore-tables" toml:"ignore-tables" yaml:"ignore-tables"` IgnoreDBs []string `json:"ignore-dbs" toml:"ignore-dbs" yaml:"ignore-dbs"` }
Rules contains Filter rules.
Click to show internal directories.
Click to hide internal directories.