| 3 | import "github.com/pingcap/errors" |
| 4 | |
| 5 | type GTIDSet interface { |
| 6 | String() string |
| 7 | |
| 8 | // Encode GTID set into binary format used in binlog dump commands |
| 9 | Encode() []byte |
| 10 | |
| 11 | Equal(o GTIDSet) bool |
| 12 | |
| 13 | Contain(o GTIDSet) bool |
| 14 | |
| 15 | Update(GTIDStr string) error |
| 16 | |
| 17 | Clone() GTIDSet |
| 18 | } |
| 19 | |
| 20 | func ParseGTIDSet(flavor string, s string) (GTIDSet, error) { |
| 21 | switch flavor { |
nothing calls this directly
no outgoing calls
no test coverage detected