MCPcopy Create free account
hub / github.com/actiontech/dtle / TaskTypeFromString

Function TaskTypeFromString

driver/common/taskconfig.go:27–36  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

25)
26
27func TaskTypeFromString(s string) string {
28 switch strings.ToLower(s) {
29 case "src", "source":
30 return TaskTypeSrc
31 case "dst", "dest", "destination":
32 return TaskTypeDest
33 default:
34 return TaskTypeUnknown
35 }
36}
37
38type DtleTaskConfig struct {
39 //Ref:http://dev.mysql.com/doc/refman/5.7/en/replication-options-slave.html#option_mysqld_replicate-do-table

Callers 5

NewRunnerMethod · 0.92
emitStatsMethod · 0.92
getJobDetailFromNomadFunction · 0.92
buildJobDetailRespFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected