snappy

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Code = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressionCodec

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

func NewCompressionCodec

func NewCompressionCodec() *CompressionCodec

func NewCompressionCodecFraming added in v0.3.4

func NewCompressionCodecFraming(framing Framing) *CompressionCodec

func (*CompressionCodec) Code

func (c *CompressionCodec) Code() int8

Code implements the kafka.CompressionCodec interface.

func (*CompressionCodec) Name added in v0.3.4

func (c *CompressionCodec) Name() string

Name implements the kafka.CompressionCodec interface.

func (*CompressionCodec) NewReader added in v0.3.4

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

NewReader implements the kafka.CompressionCodec interface.

func (*CompressionCodec) NewWriter added in v0.3.4

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

NewWriter implements the kafka.CompressionCodec interface.

type Framing added in v0.3.4

type Framing int

Framing is an enumeration type used to enable or disable xerial framing of snappy messages.

const (
	Framed Framing = iota
	Unframed
)

Jump to

Keyboard shortcuts

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