Documentation ¶
Index ¶
- Variables
- type Brotli
- func (x *Brotli) ClearChunkSize()
- func (x *Brotli) ClearInputBlockBits()
- func (x *Brotli) ClearQuality()
- func (x *Brotli) ClearWindowBits()
- func (x *Brotli) GetChunkSize() *wrapperspb.UInt32Value
- func (x *Brotli) GetDisableLiteralContextModeling() bool
- func (x *Brotli) GetEncoderMode() Brotli_EncoderMode
- func (x *Brotli) GetInputBlockBits() *wrapperspb.UInt32Value
- func (x *Brotli) GetQuality() *wrapperspb.UInt32Value
- func (x *Brotli) GetWindowBits() *wrapperspb.UInt32Value
- func (x *Brotli) HasChunkSize() bool
- func (x *Brotli) HasInputBlockBits() bool
- func (x *Brotli) HasQuality() bool
- func (x *Brotli) HasWindowBits() bool
- func (*Brotli) ProtoMessage()
- func (x *Brotli) ProtoReflect() protoreflect.Message
- func (x *Brotli) Reset()
- func (x *Brotli) SetChunkSize(v *wrapperspb.UInt32Value)
- func (x *Brotli) SetDisableLiteralContextModeling(v bool)
- func (x *Brotli) SetEncoderMode(v Brotli_EncoderMode)
- func (x *Brotli) SetInputBlockBits(v *wrapperspb.UInt32Value)
- func (x *Brotli) SetQuality(v *wrapperspb.UInt32Value)
- func (x *Brotli) SetWindowBits(v *wrapperspb.UInt32Value)
- func (x *Brotli) String() string
- type Brotli_EncoderMode
- type Brotli_builder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Brotli_EncoderMode_name = map[int32]string{ 0: "DEFAULT", 1: "GENERIC", 2: "TEXT", 3: "FONT", } Brotli_EncoderMode_value = map[string]int32{ "DEFAULT": 0, "GENERIC": 1, "TEXT": 2, "FONT": 3, } )
Enum value maps for Brotli_EncoderMode.
View Source
var File_envoy_extensions_compression_brotli_compressor_v3_brotli_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Brotli ¶
type Brotli struct { // Value from 0 to 11 that controls the main compression speed-density lever. // The higher quality, the slower compression. The default value is 3. Quality *wrapperspb.UInt32Value `protobuf:"bytes,1,opt,name=quality,proto3" json:"quality,omitempty"` // A value used to tune encoder for specific input. For more information about modes, // please refer to brotli manual: https://brotli.org/encode.html#aa6f // This field will be set to "DEFAULT" if not specified. EncoderMode Brotli_EncoderMode `` /* 169-byte string literal not displayed */ // Value from 10 to 24 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 18. // For more details about this parameter, please refer to brotli manual: // https://brotli.org/encode.html#a9a8 WindowBits *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=window_bits,json=windowBits,proto3" json:"window_bits,omitempty"` // Value from 16 to 24 that represents the base two logarithmic of the compressor's input block // size. Larger input block results in better compression at the expense of memory usage. The // default is 24. For more details about this parameter, please refer to brotli manual: // https://brotli.org/encode.html#a9a8 InputBlockBits *wrapperspb.UInt32Value `protobuf:"bytes,4,opt,name=input_block_bits,json=inputBlockBits,proto3" json:"input_block_bits,omitempty"` // Value for compressor's next output buffer. If not set, defaults to 4096. ChunkSize *wrapperspb.UInt32Value `protobuf:"bytes,5,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"` // If true, disables "literal context modeling" format feature. // This flag is a "decoding-speed vs compression ratio" trade-off. DisableLiteralContextModeling bool `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
[#next-free-field: 7]
func (*Brotli) GetChunkSize ¶
func (x *Brotli) GetChunkSize() *wrapperspb.UInt32Value
func (*Brotli) GetDisableLiteralContextModeling ¶
func (*Brotli) GetEncoderMode ¶
func (x *Brotli) GetEncoderMode() Brotli_EncoderMode
func (*Brotli) GetInputBlockBits ¶
func (x *Brotli) GetInputBlockBits() *wrapperspb.UInt32Value
func (*Brotli) GetQuality ¶
func (x *Brotli) GetQuality() *wrapperspb.UInt32Value
func (*Brotli) GetWindowBits ¶
func (x *Brotli) GetWindowBits() *wrapperspb.UInt32Value
func (*Brotli) ProtoReflect ¶
func (x *Brotli) ProtoReflect() protoreflect.Message
func (*Brotli) SetChunkSize ¶
func (x *Brotli) SetChunkSize(v *wrapperspb.UInt32Value)
func (*Brotli) SetDisableLiteralContextModeling ¶
func (*Brotli) SetEncoderMode ¶
func (x *Brotli) SetEncoderMode(v Brotli_EncoderMode)
func (*Brotli) SetInputBlockBits ¶
func (x *Brotli) SetInputBlockBits(v *wrapperspb.UInt32Value)
func (*Brotli) SetQuality ¶
func (x *Brotli) SetQuality(v *wrapperspb.UInt32Value)
func (*Brotli) SetWindowBits ¶
func (x *Brotli) SetWindowBits(v *wrapperspb.UInt32Value)
type Brotli_EncoderMode ¶
type Brotli_EncoderMode int32
const ( Brotli_DEFAULT Brotli_EncoderMode = 0 Brotli_GENERIC Brotli_EncoderMode = 1 Brotli_TEXT Brotli_EncoderMode = 2 Brotli_FONT Brotli_EncoderMode = 3 )
func (Brotli_EncoderMode) Descriptor ¶
func (Brotli_EncoderMode) Descriptor() protoreflect.EnumDescriptor
func (Brotli_EncoderMode) Enum ¶
func (x Brotli_EncoderMode) Enum() *Brotli_EncoderMode
func (Brotli_EncoderMode) Number ¶
func (x Brotli_EncoderMode) Number() protoreflect.EnumNumber
func (Brotli_EncoderMode) String ¶
func (x Brotli_EncoderMode) String() string
func (Brotli_EncoderMode) Type ¶
func (Brotli_EncoderMode) Type() protoreflect.EnumType
type Brotli_builder ¶
type Brotli_builder struct { // Value from 0 to 11 that controls the main compression speed-density lever. // The higher quality, the slower compression. The default value is 3. Quality *wrapperspb.UInt32Value // A value used to tune encoder for specific input. For more information about modes, // please refer to brotli manual: https://brotli.org/encode.html#aa6f // This field will be set to "DEFAULT" if not specified. EncoderMode Brotli_EncoderMode // Value from 10 to 24 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 18. // For more details about this parameter, please refer to brotli manual: // https://brotli.org/encode.html#a9a8 WindowBits *wrapperspb.UInt32Value // Value from 16 to 24 that represents the base two logarithmic of the compressor's input block // size. Larger input block results in better compression at the expense of memory usage. The // default is 24. For more details about this parameter, please refer to brotli manual: // https://brotli.org/encode.html#a9a8 InputBlockBits *wrapperspb.UInt32Value // Value for compressor's next output buffer. If not set, defaults to 4096. ChunkSize *wrapperspb.UInt32Value // If true, disables "literal context modeling" format feature. // This flag is a "decoding-speed vs compression ratio" trade-off. DisableLiteralContextModeling bool // contains filtered or unexported fields }
func (Brotli_builder) Build ¶
func (b0 Brotli_builder) Build() *Brotli
Click to show internal directories.
Click to hide internal directories.