kinesis-consumer/filter.go
Harlow Ward b98adcf659 Rename Model to Record
To match the DSL of the Kinesis library rename the Model interface to
Record.
2014-11-15 15:54:54 -08:00

10 lines
347 B
Go

package connector
// The Filter is associated with an Buffer. The Buffer may use the result of calling the
// KeepRecord() method to decide whether to store a record or discard it.
// A method enabling the buffer to filter records. Return false if you don't want to hold on to
// the record.
type Filter interface {
KeepRecord(r Record) bool
}