Documentation ¶
Index ¶
Constants ¶
View Source
const ( CompressTypeNo int = 0 + iota CompressTypeSnappy )
Variables ¶
View Source
var ( NoCompressor noCompressor SnappyCompressor snappyCompressor )
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type Compressor interface { Encode(dst, src []byte) []byte Decode(dst, src []byte) ([]byte, error) Type() int }
func SetCompressor ¶
func SetCompressor(t int) Compressor
Click to show internal directories.
Click to hide internal directories.