lz4

package
v0.0.0-...-f9f3a80 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: BSD-3-Clause-Clear Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decoder

func Decoder(next msg.Receiver) msg.Receiver

Decoder wraps a msg.Receiver with lz4 decoding functionality. It only attempts to decode the Message.Body if Content-Encoding is set to lz4. This should be used in conjuction with the base64 decode decorator, when the message queue doesn't support binary. In this case the base64 decorator should be the outermost decorator in order to run first.

func Encoder

func Encoder(next msg.Topic) msg.Topic

Encoder wraps a topic with another which lz4-encodes a Message. This should used in conjunction with the base64 encoder if the underlying message queue does not support binary (eg SQS)

Types

This section is empty.

Jump to

Keyboard shortcuts

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