Documentation ¶
Overview ¶
Package streaming contains helpers for streaming IO operations and progress reporting.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRequestProgress ¶
func NewRequestProgress(body io.ReadSeekCloser, pr func(bytesTransferred int64)) io.ReadSeekCloser
NewRequestProgress adds progress reporting to an HTTP request's body stream.
func NewResponseProgress ¶
func NewResponseProgress(body io.ReadCloser, pr func(bytesTransferred int64)) io.ReadCloser
NewResponseProgress adds progress reporting to an HTTP response's body stream.
func NopCloser ¶
func NopCloser(rs io.ReadSeeker) io.ReadSeekCloser
NopCloser returns a ReadSeekCloser with a no-op close method wrapping the provided io.ReadSeeker. In addition to adding a Close method to an io.ReadSeeker, this can also be used to wrap an io.ReadSeekCloser with a no-op Close method to allow explicit control of when the io.ReedSeekCloser has its underlying stream closed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.