gzip

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Code = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressionCodec

type CompressionCodec struct {
	// CompressionLeven is the level of compression to use on messages.
	CompressionLevel int
	// contains filtered or unexported fields
}

func NewCompressionCodec

func NewCompressionCodec() CompressionCodec

func NewCompressionCodecWith

func NewCompressionCodecWith(level int) CompressionCodec

func (CompressionCodec) Code

func (c CompressionCodec) Code() int8

Code implements the kafka.CompressionCodec interface.

func (CompressionCodec) Decode

func (c CompressionCodec) Decode(dst, src []byte) (int, error)

Decode implements the kafka.CompressionCodec interface.

func (CompressionCodec) Encode

func (c CompressionCodec) Encode(dst, src []byte) (int, error)

Encode implements the kafka.CompressionCodec interface.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL