Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IdleTimeoutReader ¶ added in v0.5.0
type IdleTimeoutReader struct {
// contains filtered or unexported fields
}
IdleTimeoutReader wraps an io.ReadCloser and cancels the context if no data is read within the configured idle duration.
func NewIdleTimeoutReader ¶ added in v0.5.0
func NewIdleTimeoutReader(r io.ReadCloser, timeout time.Duration, cancel func()) *IdleTimeoutReader
NewIdleTimeoutReader creates an IdleTimeoutReader.
func (*IdleTimeoutReader) Close ¶ added in v0.5.0
func (tr *IdleTimeoutReader) Close() error
Click to show internal directories.
Click to hide internal directories.