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
9 lines
238 B
Go
9 lines
238 B
Go
package connector
|
|
|
|
// A basic implementation of the Filter interface that returns true for all records.
|
|
type AllPassFilter struct{}
|
|
|
|
// Returns true for all records.
|
|
func (b *AllPassFilter) KeepRecord(r interface{}) bool {
|
|
return true
|
|
}
|