decompressorv3

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_compression_zstd_decompressor_v3_zstd_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Zstd

type Zstd struct {

	// Dictionaries for decompression. Zstd offers dictionary compression, which greatly improves
	// efficiency on small files and messages. It is necessary to ensure that the dictionary used for
	// decompression is the same as the compression dictionary. Multiple dictionaries can be set, and the
	// dictionary will be automatically selected for decompression according to the dictionary ID in the
	// source content.
	// Please refer to `zstd manual <https://github.com/facebook/zstd/blob/dev/programs/zstd.1.md#dictionary-builder>`_
	// to train specific dictionaries for decompression.
	Dictionaries []*v3.DataSource `protobuf:"bytes,1,rep,name=dictionaries,proto3" json:"dictionaries,omitempty"`
	// Value for decompressor's next output buffer. If not set, defaults to 4096.
	ChunkSize *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"`
	// contains filtered or unexported fields
}

func (*Zstd) Descriptor deprecated

func (*Zstd) Descriptor() ([]byte, []int)

Deprecated: Use Zstd.ProtoReflect.Descriptor instead.

func (*Zstd) GetChunkSize

func (x *Zstd) GetChunkSize() *wrappers.UInt32Value

func (*Zstd) GetDictionaries

func (x *Zstd) GetDictionaries() []*v3.DataSource

func (*Zstd) ProtoMessage

func (*Zstd) ProtoMessage()

func (*Zstd) ProtoReflect

func (x *Zstd) ProtoReflect() protoreflect.Message

func (*Zstd) Reset

func (x *Zstd) Reset()

func (*Zstd) String

func (x *Zstd) String() string

func (*Zstd) Validate

func (m *Zstd) Validate() error

Validate checks the field values on Zstd with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Zstd) ValidateAll

func (m *Zstd) ValidateAll() error

ValidateAll checks the field values on Zstd with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ZstdMultiError, or nil if none found.

type ZstdMultiError

type ZstdMultiError []error

ZstdMultiError is an error wrapping multiple validation errors returned by Zstd.ValidateAll() if the designated constraints aren't met.

func (ZstdMultiError) AllErrors

func (m ZstdMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ZstdMultiError) Error

func (m ZstdMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ZstdValidationError

type ZstdValidationError struct {
	// contains filtered or unexported fields
}

ZstdValidationError is the validation error returned by Zstd.Validate if the designated constraints aren't met.

func (ZstdValidationError) Cause

func (e ZstdValidationError) Cause() error

Cause function returns cause value.

func (ZstdValidationError) Error

func (e ZstdValidationError) Error() string

Error satisfies the builtin error interface

func (ZstdValidationError) ErrorName

func (e ZstdValidationError) ErrorName() string

ErrorName returns error name.

func (ZstdValidationError) Field

func (e ZstdValidationError) Field() string

Field function returns field value.

func (ZstdValidationError) Key

func (e ZstdValidationError) Key() bool

Key function returns key value.

func (ZstdValidationError) Reason

func (e ZstdValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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