Documentation ¶
Overview ¶
Package compress is responsible for compression data.
Index ¶
Constants ¶
View Source
const ( FormatNoop = Format("noop") FormatGZip = Format("gzip") FormatZSTD = Format("zstd") )
Format is the format of compression that happens.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Compression ¶
Compression will compress any given array of bytes.
func New ¶
func New(conf *Config) (Compression, error)
New creates an instance of Compression. Based on the Format value, it creates corresponding instance.
Directories ¶
Path | Synopsis |
---|---|
Package gzip is an implementation of Compression interface using gzip format.
|
Package gzip is an implementation of Compression interface using gzip format. |
Package noop is an implementation of Compression interface that doesn't compress data.
|
Package noop is an implementation of Compression interface that doesn't compress data. |
Package zstd is an implementation of Compression interface using zstd format.
|
Package zstd is an implementation of Compression interface using zstd format. |
Click to show internal directories.
Click to hide internal directories.