(s string)
| 25 | ) |
| 26 | |
| 27 | func 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 | |
| 38 | type DtleTaskConfig struct { |
| 39 | //Ref:http://dev.mysql.com/doc/refman/5.7/en/replication-options-slave.html#option_mysqld_replicate-do-table |
no outgoing calls
no test coverage detected