kinesis-consumer/filter.go
Harlow Ward 7c631ba8c0 Add StringToString transformer
In some cases we'll want to save the data from the stream directly with
no transformation needed. This will allow us to return the raw data
string from the stream

* Add new StringToStringTransformer
* Remove Record from codebase in favor of more generic interface
2014-11-15 17:07:12 -08:00

10 lines
352 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 interface{}) bool
}