Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GzipWriter ¶
GzipWriter implements the functions needed for compressing content.
type GzipWriterExt ¶
type GzipWriterExt interface {
GzipWriter
// SetHeader will populate header fields with non-nil values in h.
SetHeader(h Header)
}
GzipWriterExt implements the functions needed for compressing content and optional extensions.
type GzipWriterFactory ¶
type GzipWriterFactory struct {
// Must return the minimum and maximum supported level.
Levels func() (min, max int)
// New must return a new GzipWriter.
// level will always be within the return limits above.
New func(writer io.Writer, level int) GzipWriter
}
GzipWriterFactory contains the information needed for custom gzip implementations.
Click to show internal directories.
Click to hide internal directories.