gzip

package
v0.4.16 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec struct {
	// The compression level to configure on writers created by this codec.
	// Acceptable values are defined in the standard gzip package.
	//
	// Default to gzip.DefaultCompressionLevel.
	Level int
	// contains filtered or unexported fields
}

Codec is the implementation of a compress.Codec which supports creating readers and writers for kafka messages compressed with gzip.

func (*Codec) Code

func (c *Codec) Code() int8

Code implements the compress.Codec interface.

func (*Codec) Name

func (c *Codec) Name() string

Name implements the compress.Codec interface.

func (*Codec) NewReader

func (c *Codec) NewReader(r io.Reader) io.ReadCloser

NewReader implements the compress.Codec interface.

func (*Codec) NewWriter

func (c *Codec) NewWriter(w io.Writer) io.WriteCloser

NewWriter implements the compress.Codec interface.

Jump to

Keyboard shortcuts

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