gh-ost/go/binlog/binlog_reader.go

16 lines
413 B
Go
Raw Normal View History

2016-03-22 15:12:51 +01:00
/*
Copyright 2016 GitHub Inc.
2016-05-16 11:09:17 +02:00
See https://github.com/github/gh-ost/blob/master/LICENSE
2016-03-22 15:12:51 +01:00
*/
package binlog
import ()
// 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 {
StreamEvents(canStopStreaming func() bool, entriesChannel chan<- *BinlogEntry) error
Reconnect() error
2016-03-22 15:12:51 +01:00
}