configcompression

package module
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 2 Imported by: 58

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressionParams added in v1.24.0

type CompressionParams struct {
	Level Level `mapstructure:"level"`
	// contains filtered or unexported fields
}

type Level added in v1.24.0

type Level int

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"
	TypeSnappyFramed Type = "x-snappy-framed"
	TypeZstd         Type = "zstd"
	TypeLz4          Type = "lz4"

	DefaultCompressionLevel = zlib.DefaultCompression
)

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

func (*Type) ValidateParams added in v1.24.0

func (ct *Type) ValidateParams(p CompressionParams) error

Jump to

Keyboard shortcuts

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