forked from cerc-io/ipld-eth-server
21 lines
306 B
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
|
|
}
|