Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Compressors = map[CompressType]Compressor{ Raw: RawCompressor{}, Gzip: GzipCompressor{}, Snappy: SnappyCompressor{}, Zlib: ZlibCompressor{}, }
Compressors which supported by rpc
Functions ¶
This section is empty.
Types ¶
type CompressType ¶
type CompressType uint16
CompressType type of compressions supported by rpc
const ( Raw CompressType = iota Gzip Snappy Zlib )
type Compressor ¶
Compressor is interface, each compressor has Zip and Unzip functions
type GzipCompressor ¶
type GzipCompressor struct { }
GzipCompressor implements the Compressor interface
type RawCompressor ¶
type RawCompressor struct { }
RawCompressor implements the Compressor interface
type SnappyCompressor ¶
type SnappyCompressor struct { }
SnappyCompressor implements the Compressor interface
type ZlibCompressor ¶
type ZlibCompressor struct { }
ZlibCompressor implements the Compressor interface
Click to show internal directories.
Click to hide internal directories.