2016-03-22 15:12:51 +01:00
|
|
|
/*
|
2016-03-24 15:11:56 +01:00
|
|
|
Copyright 2016 GitHub Inc.
|
|
|
|
See https://github.com/github/gh-osc/blob/master/LICENSE
|
2016-03-22 15:12:51 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
package binlog
|
|
|
|
|
2016-03-24 15:11:56 +01:00
|
|
|
// BinlogReader is a general interface whose implementations can choose their methods of reading
|
|
|
|
// a binary log file and parsing it into binlog entries
|
2016-03-22 15:12:51 +01:00
|
|
|
type BinlogReader interface {
|
2016-03-23 12:40:17 +01:00
|
|
|
ReadEntries(logFile string, startPos uint64, stopPos uint64) (entries [](*BinlogEntry), err error)
|
2016-03-22 15:12:51 +01:00
|
|
|
}
|