compression

package
v0.0.0-...-e9a242d Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GzipType    = "gzip"
	ZlibType    = "zlib"
	DeflateType = "deflate"
	SnappyType  = "snappy"
	ZstdType    = "zstd"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressorReader

type CompressorReader interface {
	io.Reader
	io.Closer
}

func NewNoopCompressorReader

func NewNoopCompressorReader(r io.Reader) CompressorReader

func NewReader

func NewReader(
	conf *config.CompressionConfig,
	reader io.Reader,
) (CompressorReader, error)

type CompressorWriter

type CompressorWriter interface {
	io.WriteCloser
	Flush() error
}

func NewNoopCompressorWriter

func NewNoopCompressorWriter(buf io.Writer) CompressorWriter

func NewWriter

func NewWriter(
	conf *config.CompressionConfig,
	writer io.Writer,
) (CompressorWriter, error)

type NoopCompressorReader

type NoopCompressorReader struct {
	// contains filtered or unexported fields
}

func (*NoopCompressorReader) Close

func (c *NoopCompressorReader) Close() error

func (*NoopCompressorReader) Read

func (c *NoopCompressorReader) Read(p []byte) (int, error)

type NoopCompressorWriter

type NoopCompressorWriter struct {
	// contains filtered or unexported fields
}

func (*NoopCompressorWriter) Close

func (c *NoopCompressorWriter) Close() error

func (*NoopCompressorWriter) Flush

func (c *NoopCompressorWriter) Flush() error

func (*NoopCompressorWriter) Write

func (c *NoopCompressorWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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