thriftrw: go.uber.org/thriftrw/internal/iotest Index | Files

package iotest

import "go.uber.org/thriftrw/internal/iotest"

Index

Package Files

chunk.go

Variables

var ErrUser = errors.New("error set by user")

ErrUser is returned by ChunkReader when the user requests an error.

func ChunkReader Uses

func ChunkReader() (chan<- []byte, io.Reader)

ChunkReader returns a reader that returns chunks written to the control channel. The caller should write byte chunks to return to the channel, or write nil if they want the Reader to return an error. The control channel should be closed to signal EOF.

Package iotest imports 2 packages (graph). Updated 2020-01-20. Refresh now. Tools for package owners.