compress

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compressor

type Compressor interface {
	Compress(b []byte, c []byte) ([]byte, error)
	Decompress(c []byte, b []byte) error
}

func NewCompressor

func NewCompressor(compressFormat string) Compressor

func NewFlateCompressor

func NewFlateCompressor() Compressor

func NewGWSnappyCompressor

func NewGWSnappyCompressor() Compressor

NewGWSnappyCompressor creates a new Compressor in gwsnappy format gwsnappy is an optimized version of snappy format, but strips many useless fields

func NewLz4Compressor

func NewLz4Compressor() Compressor

func NewLzwCompressor

func NewLzwCompressor() Compressor

func NewSnappyCompressor

func NewSnappyCompressor() Compressor

func NewZlibCompressor

func NewZlibCompressor() Compressor

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL