snap

package
v0.0.0-...-0c94d32 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SnappyDecoder

type SnappyDecoder struct {
}

SnappyDecoder decompresses snappy-compressed Message bytes.

func (*SnappyDecoder) Decode

func (re *SnappyDecoder) Decode(pack *PipelinePack) (packs []*PipelinePack, err error)

func (*SnappyDecoder) Init

func (re *SnappyDecoder) Init(config interface{}) (err error)

type SnappyEncoder

type SnappyEncoder struct {
}

SnappyEncoder compresses the Message bytes using snappy compression. Each message is compressed separately.

func (*SnappyEncoder) Encode

func (re *SnappyEncoder) Encode(pack *PipelinePack) (output []byte, err error)

func (*SnappyEncoder) Init

func (re *SnappyEncoder) Init(config interface{}) (err error)

Jump to

Keyboard shortcuts

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