Versions in this module Expand all Collapse all v0 v0.1.0 Oct 26, 2024 Changes in this version + func NewContextReader(ctx context.Context, r io.Reader) io.Reader + func NewFakeSeeker(in io.Reader, length int64) io.ReadSeeker + func NewGzipReader(in io.ReadCloser) (io.ReadCloser, error) + func NewLimitedReadCloser(rc io.ReadCloser, limit int64) (lrc io.ReadCloser) + func NewPatternReader(length int64) io.ReadSeeker + func NoCloser(in io.Reader) io.Reader + func ReadFill(r io.Reader, buf []byte) (n int, err error) + type CountingReader struct + func NewCountingReader(in io.Reader) *CountingReader + func (cr *CountingReader) BytesRead() uint64 + func (cr *CountingReader) Read(b []byte) (int, error) + type ErrorReader struct + Err error + func (er ErrorReader) Read(p []byte) (n int, err error) + type FakeSeeker struct + func (r *FakeSeeker) Read(p []byte) (n int, err error) + func (r *FakeSeeker) Seek(offset int64, whence int) (abs int64, err error) + type LimitedReadCloser struct + func (lrc *LimitedReadCloser) Close() error + type NoSeeker struct + func (r NoSeeker) Seek(offset int64, whence int) (abs int64, err error) + type RepeatableReader struct + func NewRepeatableLimitReader(r io.Reader, size int) *RepeatableReader + func NewRepeatableLimitReaderBuffer(r io.Reader, buf []byte, size int64) *RepeatableReader + func NewRepeatableReader(r io.Reader) *RepeatableReader + func NewRepeatableReaderBuffer(r io.Reader, buf []byte) *RepeatableReader + func NewRepeatableReaderSized(r io.Reader, size int) *RepeatableReader + func (r *RepeatableReader) Read(b []byte) (n int, err error) + func (r *RepeatableReader) Seek(offset int64, whence int) (int64, error)