mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00

License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@47db102ccd This commit was moved from ipfs/boxo@b7e28a936c
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
|
|
}
|