Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Gzip = GzipCompressor{}
View Source
var Raw = RawCompressor{}
View Source
var Snappy = SnappyCompressor{}
View Source
var Zlib = ZlibCompressor{}
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type Compressor interface { Encode([]byte) ([]byte, error) Decode([]byte) ([]byte, error) Type() string }
Compressor is interface, each compressor has Zip and Unzip functions
type GzipCompressor ¶
type GzipCompressor struct { }
GzipCompressor implements the Compressor interface
func (GzipCompressor) Type ¶
func (GzipCompressor) Type() string
type RawCompressor ¶
type RawCompressor struct { }
RawCompressor implements the Compressor interface
func (RawCompressor) Type ¶
func (RawCompressor) Type() string
type SnappyCompressor ¶
type SnappyCompressor struct { }
SnappyCompressor implements the Compressor interface
func (SnappyCompressor) Decode ¶
func (_ SnappyCompressor) Decode(data []byte) ([]byte, error)
Unzip .
func (SnappyCompressor) Encode ¶
func (_ SnappyCompressor) Encode(data []byte) ([]byte, error)
Zip .
func (SnappyCompressor) Type ¶
func (SnappyCompressor) Type() string
type ZlibCompressor ¶
type ZlibCompressor struct { }
ZlibCompressor implements the Compressor interface
func (ZlibCompressor) Type ¶
func (ZlibCompressor) Type() string
Click to show internal directories.
Click to hide internal directories.