sing/common/upstream.go
2022-05-01 07:53:26 +08:00

23 lines
359 B
Go

package common
import (
"io"
)
type ReaderWithUpstream interface {
UpstreamReader() io.Reader
ReaderReplaceable() bool
}
type UpstreamReaderSetter interface {
SetReader(reader io.Reader)
}
type WriterWithUpstream interface {
UpstreamWriter() io.Writer
WriterReplaceable() bool
}
type UpstreamWriterSetter interface {
SetWriter(writer io.Writer)
}