configcompression

package module
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 41

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type added in v0.94.0

type Type string

Type represents a compression method

const (
	TypeGzip    Type = "gzip"
	TypeZlib    Type = "zlib"
	TypeDeflate Type = "deflate"
	TypeSnappy  Type = "snappy"
	TypeZstd    Type = "zstd"
)

func (*Type) IsCompressed added in v0.94.0

func (ct *Type) IsCompressed() bool

IsCompressed returns false if CompressionType is nil, none, or empty. Otherwise, returns true.

func (*Type) UnmarshalText added in v0.94.0

func (ct *Type) UnmarshalText(in []byte) error

Jump to

Keyboard shortcuts

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