compress

package
v1.33.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAlgorithm

func RegisterAlgorithm(name string, c Compression) error

RegisterAlgorithm registers a custom compression algorithm.

Types

type Compression

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

func Get

func Get(name string) (Compression, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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