Versions in this module Expand all Collapse all v0 v0.1.0 Dec 6, 2018 Changes in this version + type Compressor interface + CompressBytes func(src, dest []byte) ([]byte, error) + CompressorID func() wiremessage.CompressorID + Name func() string + UncompressBytes func(src, dest []byte) ([]byte, error) + func CreateSnappy() Compressor + func CreateZlib(level int) (Compressor, error) + type SnappyCompressor struct + func (s *SnappyCompressor) CompressBytes(src, dest []byte) ([]byte, error) + func (s *SnappyCompressor) CompressorID() wiremessage.CompressorID + func (s *SnappyCompressor) Name() string + func (s *SnappyCompressor) UncompressBytes(src, dest []byte) ([]byte, error) + type ZlibCompressor struct + func (z *ZlibCompressor) CompressBytes(src, dest []byte) ([]byte, error) + func (z *ZlibCompressor) CompressorID() wiremessage.CompressorID + func (z *ZlibCompressor) Name() string + func (z *ZlibCompressor) UncompressBytes(src, dest []byte) ([]byte, error)