compression

package
v0.16.5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compressor

type Compressor interface {
	// Compress returns a reader that yields the decompressed contents of the input reader.
	Compress(in io.ReadCloser) (io.ReadCloser, error)
	algorithm.Algorithm
}

Compressor is used to abstract over the compression aspect of a compression algorithm.

type Decompressor

type Decompressor interface {
	// Decompress returns a reader that yields the decompressed contents of the input reader.
	Decompress(in io.Reader) (io.Reader, error)
	algorithm.Algorithm
}

Decompressor is used to abstract over the decompression aspect of a compression algorithm.

Jump to

Keyboard shortcuts

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