compression

package
v4.8.11+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: AGPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SnappyBackendStr = "snappy" // legacy, defaults to SnappyBackendStr.
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Compression

type Compression interface {
	CompressBytes(data []byte) []byte
	DecompressBytes(data []byte) ([]byte, error)
}

Compression is intterface

func NewCompression

func NewCompression(backend string) Compression

type Snappy

type Snappy struct {
}

func NewSnappy

func NewSnappy() *Snappy

func (*Snappy) CompressBytes

func (s *Snappy) CompressBytes(data []byte) []byte

func (*Snappy) DecompressBytes

func (s *Snappy) DecompressBytes(data []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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