compression

package
v1.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Identity = "identity"
	Gzip     = "gzip"
	Brotli   = "br"
	Deflate  = "deflate"
	Snappy   = "snappy"
	Zstd     = "zstd"
)

The IANA names for supported compression algorithms.

Variables

This section is empty.

Functions

func GetCompressor

func GetCompressor(compression conformancev1.Compression) (connect.Compressor, error)

GetCompressor returns a compressor for the given compression algorithm.

func GetDecompressor

func GetDecompressor(compression conformancev1.Compression) (connect.Decompressor, error)

GetDecompressor returns a decompressor for the given compression algorithm.

func NewBrotliCompressor

func NewBrotliCompressor() connect.Compressor

NewBrotliCompressor returns a new Brotli Compressor.

func NewBrotliDecompressor

func NewBrotliDecompressor() connect.Decompressor

NewBrotliDecompressor returns a new Brotli Decompressor.

func NewDeflateCompressor

func NewDeflateCompressor() connect.Compressor

NewDeflateCompressor returns a new deflate Compressor.

func NewDeflateDecompressor

func NewDeflateDecompressor() connect.Decompressor

NewDeflateDecompressor returns a new deflate Decompressor.

func NewSnappyCompressor

func NewSnappyCompressor() connect.Compressor

NewSnappyCompressor returns a new snappy Compressor.

func NewSnappyDecompressor

func NewSnappyDecompressor() connect.Decompressor

NewSnappyDecompressor returns a new snappy Decompressor.

func NewZstdCompressor

func NewZstdCompressor() connect.Compressor

NewZstdCompressor returns a new Zstd Compressor.

func NewZstdDecompressor

func NewZstdDecompressor() connect.Decompressor

NewZstdDecompressor returns a new Zstd Decompressor.

Types

This section is empty.

Jump to

Keyboard shortcuts

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