type Reader interface {
//Read is a function to read all the records from database//Record is a callback function of record to be returned to caller
Read(record Record)
}
Reader is an interface to read all the records from a database
Logger is the instance of a Logger interface that Sarama writes connection
management events to. By default it is set to discard all log messages via ioutil.Discard,
but you can set it to redirect wherever you want.
type Writer interface {
Initialize() error//Write is a function to write all the records in the database Write(record Row) (bool, error)
Flush() error}
Writer is an interface to write all the records in the a database