package decompressorv3

import "github.com/envoyproxy/go-control-plane/envoy/extensions/compression/brotli/decompressor/v3"

Index

Variables

var File_envoy_extensions_compression_brotli_decompressor_v3_brotli_proto protoreflect.FileDescriptor

Types

type Brotli

type Brotli struct {

	// If true, disables "canny" ring buffer allocation strategy.
	// Ring buffer is allocated according to window size, despite the real size of the content.
	DisableRingBufferReallocation bool `protobuf:"varint,1,opt,name=disable_ring_buffer_reallocation,json=disableRingBufferReallocation,proto3" json:"disable_ring_buffer_reallocation,omitempty"`
	// Value for decompressor's next output buffer. If not set, defaults to 4096.
	ChunkSize *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"`
	// contains filtered or unexported fields
}

func (*Brotli) Descriptor

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

Deprecated: Use Brotli.ProtoReflect.Descriptor instead.

func (*Brotli) GetChunkSize

func (x *Brotli) GetChunkSize() *wrapperspb.UInt32Value

func (*Brotli) GetDisableRingBufferReallocation

func (x *Brotli) GetDisableRingBufferReallocation() bool

func (*Brotli) ProtoMessage

func (*Brotli) ProtoMessage()

func (*Brotli) ProtoReflect

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

func (*Brotli) Reset

func (x *Brotli) Reset()

func (*Brotli) String

func (x *Brotli) String() string

func (*Brotli) Validate

func (m *Brotli) Validate() error

Validate checks the field values on Brotli 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 (*Brotli) ValidateAll

func (m *Brotli) ValidateAll() error

ValidateAll checks the field values on Brotli 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 BrotliMultiError, or nil if none found.

type BrotliMultiError

type BrotliMultiError []error

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

func (BrotliMultiError) AllErrors

func (m BrotliMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BrotliMultiError) Error

func (m BrotliMultiError) Error() string

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

type BrotliValidationError

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

BrotliValidationError is the validation error returned by Brotli.Validate if the designated constraints aren't met.

func (BrotliValidationError) Cause

func (e BrotliValidationError) Cause() error

Cause function returns cause value.

func (BrotliValidationError) Error

func (e BrotliValidationError) Error() string

Error satisfies the builtin error interface

func (BrotliValidationError) ErrorName

func (e BrotliValidationError) ErrorName() string

ErrorName returns error name.

func (BrotliValidationError) Field

func (e BrotliValidationError) Field() string

Field function returns field value.

func (BrotliValidationError) Key

func (e BrotliValidationError) Key() bool

Key function returns key value.

func (BrotliValidationError) Reason

func (e BrotliValidationError) Reason() string

Reason function returns reason value.

Source Files

brotli.pb.go brotli.pb.validate.go

Version
v1.32.4 (latest)
Published
Feb 3, 2025
Platform
linux/amd64
Imports
19 packages
Last checked
3 hours ago

Tools for package owners.