master
go 20 lines 306 Bytes
Raw
1 package iface
2
3 import (
4 "context"
5 "io"
6 )
7
8 type Reader interface {
9 ReadSeekCloser
10 Size() uint64
11 CtxReadFull(context.Context, []byte) (int, error)
12 }
13
14 // A ReadSeekCloser implements interfaces to read, copy, seek and close.
15 type ReadSeekCloser interface {
16 io.Reader
17 io.Seeker
18 io.Closer
19 io.WriterTo
20 }