compress

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compress

type Compress struct {
	Type TypeStr
}

func NewCompress

func NewCompress(t TypeStr) *Compress

func (*Compress) Compress

func (c *Compress) Compress(data []byte) ([]byte, error)

func (*Compress) Decompress

func (c *Compress) Decompress(data []byte) ([]byte, error)

func (*Compress) String

func (c *Compress) String() string

func (*Compress) TypeString

func (c *Compress) TypeString() string

type TypeStr

type TypeStr string
const (
	TypeZstd   TypeStr = "zstd"
	TypeGzip   TypeStr = "gzip"
	TypeSnappy TypeStr = "snappy"
	TypeLz4    TypeStr = "lz4"
	TypeBrotli TypeStr = "brotli"
	TypeZlib   TypeStr = "zlib"
	TypeZip    TypeStr = "zip"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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