Documentation ¶
Index ¶
- Constants
- func GetCompressor(compression conformancev1.Compression) (connect.Compressor, error)
- func GetDecompressor(compression conformancev1.Compression) (connect.Decompressor, error)
- func NewBrotliCompressor() connect.Compressor
- func NewBrotliDecompressor() connect.Decompressor
- func NewDeflateCompressor() connect.Compressor
- func NewDeflateDecompressor() connect.Decompressor
- func NewSnappyCompressor() connect.Compressor
- func NewSnappyDecompressor() connect.Decompressor
- func NewZstdCompressor() connect.Compressor
- func NewZstdDecompressor() connect.Decompressor
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.
Click to show internal directories.
Click to hide internal directories.