Documentation ¶ Index ¶ type Brotli func NewBrotli() *Brotli func (compressor *Brotli) Compress(level int, target io.Writer, from *bytes.Buffer) error type Compressor type Gzip func NewGzip() *Gzip func (compressor *Gzip) Compress(level int, target io.Writer, from *bytes.Buffer) error type Zlib func NewZlib() *Zlib func (compressor *Zlib) Compress(level int, target io.Writer, from *bytes.Buffer) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Brotli ¶ type Brotli [brotli.BestCompression - brotli.BestSpeed]*sync.Pool func NewBrotli ¶ func NewBrotli() *Brotli func (*Brotli) Compress ¶ func (compressor *Brotli) Compress(level int, target io.Writer, from *bytes.Buffer) error type Compressor ¶ type Compressor interface { Compress(level int, to io.Writer, from *bytes.Buffer) error } type Gzip ¶ type Gzip [gzip.BestCompression - gzip.BestSpeed]*sync.Pool func NewGzip ¶ func NewGzip() *Gzip func (*Gzip) Compress ¶ func (compressor *Gzip) Compress(level int, target io.Writer, from *bytes.Buffer) error type Zlib ¶ type Zlib [zlib.BestCompression - zlib.BestSpeed]*sync.Pool func NewZlib ¶ func NewZlib() *Zlib func (*Zlib) Compress ¶ func (compressor *Zlib) Compress(level int, target io.Writer, from *bytes.Buffer) error Source Files ¶ View all Source files brotli.go compressors.go gzip.go zlib.go Click to show internal directories. Click to hide internal directories.