Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CancelableReader ¶
type CancelableReader struct {
// contains filtered or unexported fields
}
CancelableReader позволяет читать данные с контекстом
func NewCancelableReader ¶
func NewCancelableReader(ctx context.Context, r io.Reader) *CancelableReader
func (*CancelableReader) ReadByte ¶
func (c *CancelableReader) ReadByte() (byte, error)
type ReadCounter ¶
func CountingReader ¶
func CountingReader(r io.Reader) ReadCounter
type ReaderFunc ¶
ReaderFunc implements io.Reader as function type with a Read method.
type WriteCounter ¶
func CountingWriter ¶
func CountingWriter(w io.Writer) WriteCounter
Click to show internal directories.
Click to hide internal directories.