Documentation ¶
Index ¶
- Variables
- func IsErrTableNotExists(err error) bool
- func SyncSplitTemplate(sourceHost, targetHost string, tableId int, path string) (string, error)
- func TaskTemplate()
- func TaskTemplateRender(targetHost string, taskId int, path string) (string, error)
- func UnImplemented()
- type Deploy
- type MasterConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DMMasterPort = 8261 DMWorkerPort = 8262 )
Functions ¶
func IsErrTableNotExists ¶
IsErrTableNotExists checks whether err is TableNotExists error
func SyncSplitTemplate ¶
source should be an mysql at 3306 target should be an tidb at 4000.
func TaskTemplate ¶
func TaskTemplate()
func TaskTemplateRender ¶
Types ¶
type MasterConfig ¶
type MasterConfig struct { MasterAddr string `toml:"master-addr"` Deploy []*Deploy `toml:"deploy"` }
MasterConfig is used for creating dm master
func NewMasterConfig ¶
func NewMasterConfig(deploy []*Deploy) *MasterConfig
NewMasterConfig creates new master config
Click to show internal directories.
Click to hide internal directories.