Documentation ¶
Index ¶
- Variables
- type Gzip
- func (*Gzip) Descriptor() ([]byte, []int)deprecated
- func (x *Gzip) GetChunkSize() *wrappers.UInt32Value
- func (x *Gzip) GetCompressionLevel() Gzip_CompressionLevel_Enum
- func (x *Gzip) GetCompressionStrategy() Gzip_CompressionStrategy
- func (x *Gzip) GetCompressor() *v3.Compressor
- func (x *Gzip) GetMemoryLevel() *wrappers.UInt32Value
- func (x *Gzip) GetWindowBits() *wrappers.UInt32Value
- func (*Gzip) ProtoMessage()
- func (x *Gzip) ProtoReflect() protoreflect.Message
- func (x *Gzip) Reset()
- func (x *Gzip) String() string
- func (m *Gzip) Validate() error
- func (m *Gzip) ValidateAll() error
- type GzipMultiError
- type GzipValidationError
- type Gzip_CompressionLevel
- func (*Gzip_CompressionLevel) Descriptor() ([]byte, []int)deprecated
- func (*Gzip_CompressionLevel) ProtoMessage()
- func (x *Gzip_CompressionLevel) ProtoReflect() protoreflect.Message
- func (x *Gzip_CompressionLevel) Reset()
- func (x *Gzip_CompressionLevel) String() string
- func (m *Gzip_CompressionLevel) Validate() error
- func (m *Gzip_CompressionLevel) ValidateAll() error
- type Gzip_CompressionLevelMultiError
- type Gzip_CompressionLevelValidationError
- func (e Gzip_CompressionLevelValidationError) Cause() error
- func (e Gzip_CompressionLevelValidationError) Error() string
- func (e Gzip_CompressionLevelValidationError) ErrorName() string
- func (e Gzip_CompressionLevelValidationError) Field() string
- func (e Gzip_CompressionLevelValidationError) Key() bool
- func (e Gzip_CompressionLevelValidationError) Reason() string
- type Gzip_CompressionLevel_Enum
- func (Gzip_CompressionLevel_Enum) Descriptor() protoreflect.EnumDescriptor
- func (x Gzip_CompressionLevel_Enum) Enum() *Gzip_CompressionLevel_Enum
- func (Gzip_CompressionLevel_Enum) EnumDescriptor() ([]byte, []int)deprecated
- func (x Gzip_CompressionLevel_Enum) Number() protoreflect.EnumNumber
- func (x Gzip_CompressionLevel_Enum) String() string
- func (Gzip_CompressionLevel_Enum) Type() protoreflect.EnumType
- type Gzip_CompressionStrategy
- func (Gzip_CompressionStrategy) Descriptor() protoreflect.EnumDescriptor
- func (x Gzip_CompressionStrategy) Enum() *Gzip_CompressionStrategy
- func (Gzip_CompressionStrategy) EnumDescriptor() ([]byte, []int)deprecated
- func (x Gzip_CompressionStrategy) Number() protoreflect.EnumNumber
- func (x Gzip_CompressionStrategy) String() string
- func (Gzip_CompressionStrategy) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( Gzip_CompressionStrategy_name = map[int32]string{ 0: "DEFAULT", 1: "FILTERED", 2: "HUFFMAN", 3: "RLE", } Gzip_CompressionStrategy_value = map[string]int32{ "DEFAULT": 0, "FILTERED": 1, "HUFFMAN": 2, "RLE": 3, } )
Enum value maps for Gzip_CompressionStrategy.
var ( Gzip_CompressionLevel_Enum_name = map[int32]string{ 0: "DEFAULT", 1: "BEST", 2: "SPEED", } Gzip_CompressionLevel_Enum_value = map[string]int32{ "DEFAULT": 0, "BEST": 1, "SPEED": 2, } )
Enum value maps for Gzip_CompressionLevel_Enum.
var File_envoy_extensions_filters_http_gzip_v3_gzip_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Gzip ¶
type Gzip struct { // Value from 1 to 9 that controls the amount of internal memory used by zlib. Higher values // use more memory, but are faster and produce better compression results. The default value is 5. MemoryLevel *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=memory_level,json=memoryLevel,proto3" json:"memory_level,omitempty"` // A value used for selecting the zlib compression level. This setting will affect speed and // amount of compression applied to the content. "BEST" provides higher compression at the cost of // higher latency, "SPEED" provides lower compression with minimum impact on response time. // "DEFAULT" provides an optimal result between speed and compression. This field will be set to // "DEFAULT" if not specified. CompressionLevel Gzip_CompressionLevel_Enum `` /* 180-byte string literal not displayed */ // A value used for selecting the zlib compression strategy which is directly related to the // characteristics of the content. Most of the time "DEFAULT" will be the best choice, though // there are situations which changing this parameter might produce better results. For example, // run-length encoding (RLE) is typically used when the content is known for having sequences // which same data occurs many consecutive times. For more information about each strategy, please // refer to zlib manual. CompressionStrategy Gzip_CompressionStrategy `` /* 187-byte string literal not displayed */ // Value from 9 to 15 that represents the base two logarithmic of the compressor's window size. // Larger window results in better compression at the expense of memory usage. The default is 12 // which will produce a 4096 bytes window. For more details about this parameter, please refer to // zlib manual > deflateInit2. WindowBits *wrappers.UInt32Value `protobuf:"bytes,9,opt,name=window_bits,json=windowBits,proto3" json:"window_bits,omitempty"` // Set of configuration parameters common for all compression filters. You can define // “content_length“, “content_type“ and other parameters in this field. Compressor *v3.Compressor `protobuf:"bytes,10,opt,name=compressor,proto3" json:"compressor,omitempty"` // Value for Zlib's next output buffer. If not set, defaults to 4096. // See https://www.zlib.net/manual.html for more details. Also see // https://github.com/envoyproxy/envoy/issues/8448 for context on this filter's performance. ChunkSize *wrappers.UInt32Value `protobuf:"bytes,11,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"` // contains filtered or unexported fields }
[#next-free-field: 12]
func (*Gzip) Descriptor
deprecated
func (*Gzip) GetChunkSize ¶
func (x *Gzip) GetChunkSize() *wrappers.UInt32Value
func (*Gzip) GetCompressionLevel ¶
func (x *Gzip) GetCompressionLevel() Gzip_CompressionLevel_Enum
func (*Gzip) GetCompressionStrategy ¶
func (x *Gzip) GetCompressionStrategy() Gzip_CompressionStrategy
func (*Gzip) GetCompressor ¶
func (x *Gzip) GetCompressor() *v3.Compressor
func (*Gzip) GetMemoryLevel ¶
func (x *Gzip) GetMemoryLevel() *wrappers.UInt32Value
func (*Gzip) GetWindowBits ¶
func (x *Gzip) GetWindowBits() *wrappers.UInt32Value
func (*Gzip) ProtoMessage ¶
func (*Gzip) ProtoMessage()
func (*Gzip) ProtoReflect ¶
func (x *Gzip) ProtoReflect() protoreflect.Message
func (*Gzip) Validate ¶
Validate checks the field values on Gzip 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 (*Gzip) ValidateAll ¶
ValidateAll checks the field values on Gzip 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 GzipMultiError, or nil if none found.
type GzipMultiError ¶
type GzipMultiError []error
GzipMultiError is an error wrapping multiple validation errors returned by Gzip.ValidateAll() if the designated constraints aren't met.
func (GzipMultiError) AllErrors ¶
func (m GzipMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GzipMultiError) Error ¶
func (m GzipMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GzipValidationError ¶
type GzipValidationError struct {
// contains filtered or unexported fields
}
GzipValidationError is the validation error returned by Gzip.Validate if the designated constraints aren't met.
func (GzipValidationError) Cause ¶
func (e GzipValidationError) Cause() error
Cause function returns cause value.
func (GzipValidationError) Error ¶
func (e GzipValidationError) Error() string
Error satisfies the builtin error interface
func (GzipValidationError) ErrorName ¶
func (e GzipValidationError) ErrorName() string
ErrorName returns error name.
func (GzipValidationError) Field ¶
func (e GzipValidationError) Field() string
Field function returns field value.
func (GzipValidationError) Key ¶
func (e GzipValidationError) Key() bool
Key function returns key value.
func (GzipValidationError) Reason ¶
func (e GzipValidationError) Reason() string
Reason function returns reason value.
type Gzip_CompressionLevel ¶
type Gzip_CompressionLevel struct {
// contains filtered or unexported fields
}
func (*Gzip_CompressionLevel) Descriptor
deprecated
func (*Gzip_CompressionLevel) Descriptor() ([]byte, []int)
Deprecated: Use Gzip_CompressionLevel.ProtoReflect.Descriptor instead.
func (*Gzip_CompressionLevel) ProtoMessage ¶
func (*Gzip_CompressionLevel) ProtoMessage()
func (*Gzip_CompressionLevel) ProtoReflect ¶
func (x *Gzip_CompressionLevel) ProtoReflect() protoreflect.Message
func (*Gzip_CompressionLevel) Reset ¶
func (x *Gzip_CompressionLevel) Reset()
func (*Gzip_CompressionLevel) String ¶
func (x *Gzip_CompressionLevel) String() string
func (*Gzip_CompressionLevel) Validate ¶
func (m *Gzip_CompressionLevel) Validate() error
Validate checks the field values on Gzip_CompressionLevel 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 (*Gzip_CompressionLevel) ValidateAll ¶
func (m *Gzip_CompressionLevel) ValidateAll() error
ValidateAll checks the field values on Gzip_CompressionLevel 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 Gzip_CompressionLevelMultiError, or nil if none found.
type Gzip_CompressionLevelMultiError ¶
type Gzip_CompressionLevelMultiError []error
Gzip_CompressionLevelMultiError is an error wrapping multiple validation errors returned by Gzip_CompressionLevel.ValidateAll() if the designated constraints aren't met.
func (Gzip_CompressionLevelMultiError) AllErrors ¶
func (m Gzip_CompressionLevelMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Gzip_CompressionLevelMultiError) Error ¶
func (m Gzip_CompressionLevelMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Gzip_CompressionLevelValidationError ¶
type Gzip_CompressionLevelValidationError struct {
// contains filtered or unexported fields
}
Gzip_CompressionLevelValidationError is the validation error returned by Gzip_CompressionLevel.Validate if the designated constraints aren't met.
func (Gzip_CompressionLevelValidationError) Cause ¶
func (e Gzip_CompressionLevelValidationError) Cause() error
Cause function returns cause value.
func (Gzip_CompressionLevelValidationError) Error ¶
func (e Gzip_CompressionLevelValidationError) Error() string
Error satisfies the builtin error interface
func (Gzip_CompressionLevelValidationError) ErrorName ¶
func (e Gzip_CompressionLevelValidationError) ErrorName() string
ErrorName returns error name.
func (Gzip_CompressionLevelValidationError) Field ¶
func (e Gzip_CompressionLevelValidationError) Field() string
Field function returns field value.
func (Gzip_CompressionLevelValidationError) Key ¶
func (e Gzip_CompressionLevelValidationError) Key() bool
Key function returns key value.
func (Gzip_CompressionLevelValidationError) Reason ¶
func (e Gzip_CompressionLevelValidationError) Reason() string
Reason function returns reason value.
type Gzip_CompressionLevel_Enum ¶
type Gzip_CompressionLevel_Enum int32
const ( Gzip_CompressionLevel_DEFAULT Gzip_CompressionLevel_Enum = 0 Gzip_CompressionLevel_BEST Gzip_CompressionLevel_Enum = 1 Gzip_CompressionLevel_SPEED Gzip_CompressionLevel_Enum = 2 )
func (Gzip_CompressionLevel_Enum) Descriptor ¶
func (Gzip_CompressionLevel_Enum) Descriptor() protoreflect.EnumDescriptor
func (Gzip_CompressionLevel_Enum) Enum ¶
func (x Gzip_CompressionLevel_Enum) Enum() *Gzip_CompressionLevel_Enum
func (Gzip_CompressionLevel_Enum) EnumDescriptor
deprecated
func (Gzip_CompressionLevel_Enum) EnumDescriptor() ([]byte, []int)
Deprecated: Use Gzip_CompressionLevel_Enum.Descriptor instead.
func (Gzip_CompressionLevel_Enum) Number ¶
func (x Gzip_CompressionLevel_Enum) Number() protoreflect.EnumNumber
func (Gzip_CompressionLevel_Enum) String ¶
func (x Gzip_CompressionLevel_Enum) String() string
func (Gzip_CompressionLevel_Enum) Type ¶
func (Gzip_CompressionLevel_Enum) Type() protoreflect.EnumType
type Gzip_CompressionStrategy ¶
type Gzip_CompressionStrategy int32
const ( Gzip_DEFAULT Gzip_CompressionStrategy = 0 Gzip_FILTERED Gzip_CompressionStrategy = 1 Gzip_HUFFMAN Gzip_CompressionStrategy = 2 Gzip_RLE Gzip_CompressionStrategy = 3 )
func (Gzip_CompressionStrategy) Descriptor ¶
func (Gzip_CompressionStrategy) Descriptor() protoreflect.EnumDescriptor
func (Gzip_CompressionStrategy) Enum ¶
func (x Gzip_CompressionStrategy) Enum() *Gzip_CompressionStrategy
func (Gzip_CompressionStrategy) EnumDescriptor
deprecated
func (Gzip_CompressionStrategy) EnumDescriptor() ([]byte, []int)
Deprecated: Use Gzip_CompressionStrategy.Descriptor instead.
func (Gzip_CompressionStrategy) Number ¶
func (x Gzip_CompressionStrategy) Number() protoreflect.EnumNumber
func (Gzip_CompressionStrategy) String ¶
func (x Gzip_CompressionStrategy) String() string
func (Gzip_CompressionStrategy) Type ¶
func (Gzip_CompressionStrategy) Type() protoreflect.EnumType