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 ¶ added in v1.1.2
CompSnappy uses Snappy to compress the input bytes
func DecompGzip ¶ added in v1.1.2
DecompGzip uses gzip to uncompress the input bytes
func DecompSnappy ¶ added in v1.1.2
DecompSnappy uses Snappy to decompress the input bytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.