Documentation ¶ Index ¶ type Brotli func NewBrotli(level int) *Brotli func (compressorPool *Brotli) Compress(target io.Writer, from *bytes.Buffer) error type Compressor type Gzip func NewGzip(level int) *Gzip func (compressorPool *Gzip) Compress(target io.Writer, from *bytes.Buffer) error type Zlib func NewZlib(level int) *Zlib func (compressorPool *Zlib) Compress(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 struct { sync.Pool } func NewBrotli ¶ func NewBrotli(level int) *Brotli func (*Brotli) Compress ¶ func (compressorPool *Brotli) Compress(target io.Writer, from *bytes.Buffer) error type Compressor ¶ type Compressor interface { Compress(to io.Writer, from *bytes.Buffer) error } type Gzip ¶ type Gzip struct { sync.Pool } func NewGzip ¶ func NewGzip(level int) *Gzip func (*Gzip) Compress ¶ func (compressorPool *Gzip) Compress(target io.Writer, from *bytes.Buffer) error type Zlib ¶ type Zlib struct { sync.Pool } func NewZlib ¶ func NewZlib(level int) *Zlib func (*Zlib) Compress ¶ func (compressorPool *Zlib) Compress(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.