Documentation ¶
Overview ¶
Package compression provides a set of compression algorithms found in several versions of Rendez-Vous for compressing large payloads
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Algorithm ¶
type Algorithm interface { Compress(payload []byte) ([]byte, error) Decompress(payload []byte) ([]byte, error) Copy() Algorithm }
Algorithm defines all the methods a compression algorithm should have
type Dummy ¶
type Dummy struct{}
Dummy does no compression. Payloads are returned as-is
func NewDummyCompression ¶
func NewDummyCompression() *Dummy
NewDummyCompression returns a new instance of the Dummy compression
type LZO ¶
type LZO struct{}
LZO implements packet payload compression using LZO
func NewLZOCompression ¶
func NewLZOCompression() *LZO
NewLZOCompression returns a new instance of the LZO compression
Click to show internal directories.
Click to hide internal directories.