Documentation
¶
Index ¶
- Variables
- func MultiReadCloser(rcs ...io.ReadCloser) io.ReadCloser
- func NewChannelReader(ch chan []byte) io.Reader
- func NewChannelWriteCloser(ctx context.Context) (chan []byte, io.WriteCloser)
- func NewTimeoutConn(conn net.Conn, readTimeout, writeTimeout time.Duration) net.Conn
- func NewTimeoutReadCloser(ctx context.Context, rc io.ReadCloser, timeout time.Duration) io.ReadCloser
- func NewTimeoutReader(ctx context.Context, r io.Reader, timeout time.Duration) io.Reader
- type DataFrame
- type TimeoutConn
- type TimeoutReader
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrReadTimeout = errors.New("read timeout")
View Source
var ErrReaderClosed = errors.New("reader has been closed")
Functions ¶
func MultiReadCloser ¶
func MultiReadCloser(rcs ...io.ReadCloser) io.ReadCloser
func NewChannelReader ¶
func NewChannelWriteCloser ¶
func NewChannelWriteCloser(ctx context.Context) (chan []byte, io.WriteCloser)
func NewTimeoutConn ¶ added in v1.0.0
func NewTimeoutReadCloser ¶
func NewTimeoutReadCloser(ctx context.Context, rc io.ReadCloser, timeout time.Duration) io.ReadCloser
Types ¶
type TimeoutConn ¶ added in v1.0.0
type TimeoutReader ¶
type TimeoutReader struct {
// contains filtered or unexported fields
}
func (*TimeoutReader) Close ¶
func (r *TimeoutReader) Close() error
Click to show internal directories.
Click to hide internal directories.