sing/common/upstream.go
2022-04-08 11:06:40 +08:00

23 lines
337 B
Go

package common
import (
"io"
)
type ReaderWithUpstream interface {
Upstream() io.Reader
Replaceable() bool
}
type UpstreamReaderSetter interface {
SetUpstream(reader io.Reader)
}
type WriterWithUpstream interface {
Upstream() io.Writer
Replaceable() bool
}
type UpstreamWriterSetter interface {
SetWriter(writer io.Writer)
}