rename: pipe Digest -> Consume

This commit is contained in:
Inanc Gumus
2019-08-28 22:18:37 +03:00
parent 9afbe8f350
commit de97595895
7 changed files with 17 additions and 17 deletions

View File

@ -12,15 +12,15 @@ type Iterator interface {
Each(func(Record)) error
}
// Digester represents a record consumer.
type Digester interface {
Digest(Iterator) error
// Consumer consumes records from an iterator.
type Consumer interface {
Consume(Iterator) error
}
// Transform represents both a record consumer and producer.
// It has an input and output.
// It takes a single record and provides an iterator for all the records.
type Transform interface {
Digester // consumer
Consumer
Iterator // producer
}