compression

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: BSD-3-Clause Imports: 0 Imported by: 1

Documentation

Index

Constants

View Source
const (
	None = iota
	Gzip
	Snappy
	Lz4
	Zstd
)

https://kafka.apache.org/documentation/#recordbatch

Variables

This section is empty.

Functions

This section is empty.

Types

type Nop

type Nop struct{}

Nop implements the batch.Compressor and batch.Decompressor. Use it to marshal and unmarshal uncompressed record batches.

func (*Nop) Compress

func (*Nop) Compress(b []byte) ([]byte, error)

func (*Nop) Decompress

func (*Nop) Decompress(b []byte) ([]byte, error)

func (*Nop) Type

func (*Nop) Type() int16

Jump to

Keyboard shortcuts

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