package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

NopCloser returns a ReadCloser with a no-op Close method wrapping the provided ReaderCtx.
ReadAll reads from r until an error or EOF and returns the data it read.
ReadCloserAdapter turns an io.ReadCloser into a ReadCloserCtx by ignoring the ctx passed to all the methods.
ReaderAdapter turns an io.Reader into a ReaderCtx by ignoring the ctx passed to Read.
ReaderCtxAdapter turn a ReaderCtx into an io.Reader by capturing a context at construction time and using it for all the Read calls.

# Interfaces

ReadCloserCtx groups the Read and Close methods.
ReaderCtx is like io.Reader, but the Read() method takes in a ctx.