compress

package
v0.0.0-...-45fcff9 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compression

type Compression interface {
	Compress(data []byte) ([]byte, error)
	UnCompress(data []byte) ([]byte, error)
}

type Lz4

type Lz4 struct {
}

func GetLz4Compresser

func GetLz4Compresser() Lz4

func (Lz4) Compress

func (t Lz4) Compress(data []byte) ([]byte, error)

func (Lz4) UnCompress

func (t Lz4) UnCompress(data []byte) ([]byte, error)

type Snappy

type Snappy struct {
}

func GetSnappyCompresser

func GetSnappyCompresser() Snappy

func (Snappy) Compress

func (t Snappy) Compress(data []byte) ([]byte, error)

func (Snappy) UnCompress

func (t Snappy) UnCompress(data []byte) ([]byte, error)

type Zlib

type Zlib struct {
}

func GetZlibCompresser

func GetZlibCompresser() Zlib

func NewCompressZlib

func NewCompressZlib() Zlib

func (Zlib) Compress

func (t Zlib) Compress(data []byte) ([]byte, error)

func (Zlib) UnCompress

func (t Zlib) UnCompress(data []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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