2016-03-22 14:12:51 +00:00
|
|
|
/*
|
|
|
|
Copyright 2016 GitHub Inc.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package binlog
|
|
|
|
|
|
|
|
type BinlogEntry struct {
|
2016-03-23 11:40:17 +00:00
|
|
|
LogPos uint64
|
|
|
|
EndLogPos uint64
|
|
|
|
StatementType string // INSERT, UPDATE, DELETE
|
|
|
|
DatabaseName string
|
|
|
|
TableName string
|
2016-03-22 14:12:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type BinlogReader interface {
|
2016-03-23 11:40:17 +00:00
|
|
|
ReadEntries(logFile string, startPos uint64, stopPos uint64) (entries [](*BinlogEntry), err error)
|
2016-03-22 14:12:51 +00:00
|
|
|
}
|