kinesis-consumer/transformer.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

8 lines
223 B
Go

package connector
// Transformer is used to transform data (byte array) to a Record for
// processing in the application.
type Transformer interface {
ToRecord(data []byte) interface{}
FromRecord(r interface{}) []byte
}