Documentation ¶
Index ¶
- Constants
- Variables
- func CompGzip(data []byte) ([]byte, error)
- func CompSnappy(data []byte) ([]byte, error)
- func Compress(value []byte, compressor string) ([]byte, error)
- func DecompGzip(data []byte) ([]byte, error)
- func DecompSnappy(data []byte) ([]byte, error)
- func Decompress(value []byte, compressor string) ([]byte, error)
Constants ¶
View Source
const ( Gzip = "Gzip" Snappy = "Snappy" )
constants
Variables ¶
View Source
var (
ErrInputEmpty = errors.New("input cannot be empty")
)
error definition
Functions ¶
func CompSnappy ¶
CompSnappy uses Snappy to compress the input bytes
func DecompGzip ¶
DecompGzip uses gzip to uncompress the input bytes
func DecompSnappy ¶
DecompSnappy uses Snappy to decompress the input bytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.