summaryrefslogtreecommitdiffhomepage
path: root/common/hugio/readers.go
diff options
context:
space:
mode:
Diffstat (limited to 'common/hugio/readers.go')
-rw-r--r--common/hugio/readers.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/hugio/readers.go b/common/hugio/readers.go
index c93e05e86..60bd97992 100644
--- a/common/hugio/readers.go
+++ b/common/hugio/readers.go
@@ -31,6 +31,11 @@ type ReadSeekCloser interface {
io.Closer
}
+// ReadSeekCloserProvider provides a ReadSeekCloser.
+type ReadSeekCloserProvider interface {
+ ReadSeekCloser() (ReadSeekCloser, error)
+}
+
// ReadSeekerNoOpCloser implements ReadSeekCloser by doing nothing in Close.
// TODO(bep) rename this and similar to ReadSeekerNopCloser, naming used in stdlib, which kind of makes sense.
type ReadSeekerNoOpCloser struct {