Documentation ¶
Index ¶
- Variables
- type Zstd
- func (*Zstd) Descriptor() ([]byte, []int)deprecated
- func (x *Zstd) GetChunkSize() *wrappers.UInt32Value
- func (x *Zstd) GetDictionaries() []*v3.DataSource
- func (*Zstd) ProtoMessage()
- func (x *Zstd) ProtoReflect() protoreflect.Message
- func (x *Zstd) Reset()
- func (x *Zstd) String() string
- func (m *Zstd) Validate() error
- func (m *Zstd) ValidateAll() error
- type ZstdMultiError
- type ZstdValidationError
Constants ¶
This section is empty.
Variables ¶
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) 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) Validate ¶
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 ¶
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.