ipld-eth-server/vendor/github.com/ipfs/interface-go-ipfs-core/util.go

21 lines
306 B
Go

package iface
import (
"context"
"io"
)
type Reader interface {
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
io.Closer
io.WriterTo
}