checker

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SourceDB string = "test"
	TargetDB string = "test"
)

Variables

View Source
var (
	AllMode  = "all"
	FullMode = "full"
)
View Source
var DefaultInitSqls = []string{
	"SET @@GLOBAL.SQL_MODE = '';",
	"SET @@SESSION.SQL_MODE = '';",
}

Functions

func CheckDM

func CheckDM(sourceHosts []string, targetHost, dmMasterHost string, dmMasterPort int, pathCfg *CheckDMPathCfg) error

CheckDM checks the dm using sourceAddress currently should be MySQL with port 3306.

Types

type CheckDMPathCfg

type CheckDMPathCfg struct {
	YcsbWorkloadPath         string
	TaskTemplatePath         string
	SplitCheckerTemplatePath string

	YcsbBinaryPath     string
	SyncDiffBinaryPath string
}

func NewPathConfig

func NewPathConfig(YcsbWorkloadPath, TaskTemplatePath, SplitCheckerTemplatePath,
	YcsbBinaryPath, SyncDiffBinaryPath string) *CheckDMPathCfg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL