compressor

package
v1.14.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZLIB  = "zlib"
	GZIP  = "gzip"
	FLATE = "flate"
	ZSTD  = "zstd"
)

Variables

This section is empty.

Functions

func GetCompressWriter

func GetCompressWriter(name string, writer io.Writer) (io.Writer, error)

func GetCompressor

func GetCompressor(name string) (message.Compressor, error)

func GetDecompressReader

func GetDecompressReader(name string, reader io.Reader) (io.ReadCloser, error)

func GetDecompressor

func GetDecompressor(name string) (message.Decompressor, error)

Types

type CompressWriterIns

type CompressWriterIns func(reader io.Writer) (io.Writer, error)

type CompressorInstantiator

type CompressorInstantiator func(name string) (message.Compressor, error)

type DecompressReaderIns

type DecompressReaderIns func(reader io.Reader) (io.ReadCloser, error)

type DecompressorInstantiator

type DecompressorInstantiator func(name string) (message.Decompressor, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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