Documentation ¶
Index ¶
Constants ¶
View Source
const ( NoCompress uint32 = 0 CompressWithGzip uint32 = 1 CompressWithSnappy uint32 = 2 CompressWithZlib uint32 = 3 CompressWithDeflate uint32 = 4 )
View Source
const ( BestSpeed = flate.BestSpeed BestCompression = flate.BestCompression NormalCompression = flate.DefaultCompression )
Variables ¶
View Source
var CompressLevel = BestCompression
Functions ¶
This section is empty.
Types ¶
type ChecksumCalculator ¶
type ChecksumCalculator struct{}
* ====== ChecksumCoder ======= *
func (*ChecksumCalculator) Handle ¶
func (coder *ChecksumCalculator) Handle(message *tunnel.WMessage) int64
func (*ChecksumCalculator) Install ¶
func (coder *ChecksumCalculator) Install() bool
func (*ChecksumCalculator) IsRegistered ¶
func (coder *ChecksumCalculator) IsRegistered() bool
type Compress ¶
type Compress interface { Name() string Id() uint32 Compress(chunk []byte) ([]byte, error) Decompress(compressed []byte) ([]byte, error) }
func GetCompressorById ¶
func GetCompressorByName ¶
type Compressor ¶
type Compressor struct {
// contains filtered or unexported fields
}
* ====== Compressor ======= *
func (*Compressor) Install ¶
func (compressor *Compressor) Install() bool
func (*Compressor) IsRegistered ¶
func (compressor *Compressor) IsRegistered() bool
type Deflate ¶
type Deflate struct {
Writable
}
func NewDeflateCompressor ¶
func NewDeflateCompressor() *Deflate
type Snappy ¶
type Snappy struct {
Writable
}
func NewSnappyCompressor ¶
func NewSnappyCompressor() *Snappy
Click to show internal directories.
Click to hide internal directories.