util.go 306 Bytes
Newer Older
1 2 3
package iface

import (
4
	"context"
5 6 7 8
	"io"
)

type Reader interface {
9 10 11 12 13 14 15 16 17
	ReadSeekCloser
	Size() uint64
	CtxReadFull(context.Context, []byte) (int, error)
}

// A ReadSeekCloser implements interfaces to read, copy, seek and close.
type ReadSeekCloser interface {
	io.Reader
	io.Seeker
18
	io.Closer
19
	io.WriterTo
20
}