types

package
v5.32.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 5 modules, 7 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// GzipAlgorithmName is the name used by pkg/compression.Gzip.
	// NOTE: Importing only this /types package does not inherently guarantee a Gzip algorithm
	// will actually be available. (In fact it is intended for this types package not to depend
	// on any of the implementations.)
	GzipAlgorithmName = "gzip"
	// Bzip2AlgorithmName is the name used by pkg/compression.Bzip2.
	// NOTE: Importing only this /types package does not inherently guarantee a Bzip2 algorithm
	// will actually be available. (In fact it is intended for this types package not to depend
	// on any of the implementations.)
	Bzip2AlgorithmName = "bzip2"
	// XzAlgorithmName is the name used by pkg/compression.Xz.
	// NOTE: Importing only this /types package does not inherently guarantee a Xz algorithm
	// will actually be available. (In fact it is intended for this types package not to depend
	// on any of the implementations.)
	XzAlgorithmName = "Xz"
	// ZstdAlgorithmName is the name used by pkg/compression.Zstd.
	// NOTE: Importing only this /types package does not inherently guarantee a Zstd algorithm
	// will actually be available. (In fact it is intended for this types package not to depend
	// on any of the implementations.)
	ZstdAlgorithmName = "zstd"
	// ZstdChunkedAlgorithmName is the name used by pkg/compression.ZstdChunked.
	// NOTE: Importing only this /types package does not inherently guarantee a ZstdChunked algorithm
	// will actually be available. (In fact it is intended for this types package not to depend
	// on any of the implementations.)
	ZstdChunkedAlgorithmName = "zstd:chunked"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Algorithm

type Algorithm = internal.Algorithm

Algorithm is a compression algorithm provided and supported by pkg/compression. It can’t be supplied from the outside.

type DecompressorFunc

type DecompressorFunc = internal.DecompressorFunc

DecompressorFunc returns the decompressed stream, given a compressed stream. The caller must call Close() on the decompressed stream (even if the compressed input stream does not need closing!).

Jump to

Keyboard shortcuts

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