Rename interface contentRewriter to contentTransformer

Is is a much better name.
This commit is contained in:
bep
2015-03-19 01:55:49 +01:00
parent efb564775a
commit 66cf3bdc77
5 changed files with 26 additions and 26 deletions

View File

@@ -6,7 +6,7 @@ import (
"io"
)
type trans func(rw contentRewriter)
type trans func(rw contentTransformer)
type link trans
@@ -20,14 +20,14 @@ func NewEmptyTransforms() []link {
return make([]link, 0, 20)
}
// contentRewriter is an interface that enables rotation
// contentTransformer is an interface that enables rotation
// of pooled buffers in the transformer chain.
type contentRewriter interface {
type contentTransformer interface {
Content() []byte
io.Writer
}
// Implements contentRewriter
// Implements contentTransformer
// Content is read from the from-buffer,
// and rewritten to to the to-buffer.
type fromToBuffer struct {