compressors

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Brotli

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

func NewGzip

func NewGzip() *Gzip

func (*Gzip) Compress

func (compressor *Gzip) Compress(level int, target io.Writer, from *bytes.Buffer) error

type Zlib

func NewZlib

func NewZlib() *Zlib

func (*Zlib) Compress

func (compressor *Zlib) Compress(level int, target io.Writer, from *bytes.Buffer) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL