Documentation ¶
Overview ¶
Package gzip provides a streaming object for taking in io.ReadCloser that is being written to and providing an io.ReadCloser that outputs the original content gzip compressed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Streamer ¶
type Streamer struct {
// contains filtered or unexported fields
}
Streamer implements an io.ReadCloser that converts data from a non-compressed stream to a compressed stream.
func (*Streamer) InputSize ¶ added in v0.6.0
InputSize returns the amount of data that the Streamer streamed. This will only be accurate for the full stream after Read() has returned io.EOF and not before.
func (*Streamer) Reset ¶
func (s *Streamer) Reset(reader io.ReadCloser)
Reset resets the streamer object to defaults and accepts the io.ReadCloser. You can only use Reset after a previous reader has closed.
Click to show internal directories.
Click to hide internal directories.