go-control-plane: github.com/envoyproxy/go-control-plane/envoy/config/filter/http/compressor/v2 Index | Files

package envoy_config_filter_http_compressor_v2

import "github.com/envoyproxy/go-control-plane/envoy/config/filter/http/compressor/v2"


Package Files

compressor.pb.go compressor.pb.validate.go


var File_envoy_config_filter_http_compressor_v2_compressor_proto protoreflect.FileDescriptor

type Compressor Uses

type Compressor struct {

    // Minimum response length, in bytes, which will trigger compression. The default value is 30.
    ContentLength *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"`
    // Set of strings that allows specifying which mime-types yield compression; e.g.,
    // application/json, text/html, etc. When this field is not defined, compression will be applied
    // to the following mime-types: "application/javascript", "application/json",
    // "application/xhtml+xml", "image/svg+xml", "text/css", "text/html", "text/plain", "text/xml"
    // and their synonyms.
    ContentType []string `protobuf:"bytes,2,rep,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
    // If true, disables compression when the response contains an etag header. When it is false, the
    // filter will preserve weak etags and remove the ones that require strong validation.
    DisableOnEtagHeader bool `protobuf:"varint,3,opt,name=disable_on_etag_header,json=disableOnEtagHeader,proto3" json:"disable_on_etag_header,omitempty"`
    // If true, removes accept-encoding from the request headers before dispatching it to the upstream
    // so that responses do not get compressed before reaching the filter.
    // .. attention:
    //    To avoid interfering with other compression filters in the same chain use this option in
    //    the filter closest to the upstream.
    RemoveAcceptEncodingHeader bool `protobuf:"varint,4,opt,name=remove_accept_encoding_header,json=removeAcceptEncodingHeader,proto3" json:"remove_accept_encoding_header,omitempty"`
    // Runtime flag that controls whether the filter is enabled or not. If set to false, the
    // filter will operate as a pass-through filter. If not specified, defaults to enabled.
    RuntimeEnabled *core.RuntimeFeatureFlag `protobuf:"bytes,5,opt,name=runtime_enabled,json=runtimeEnabled,proto3" json:"runtime_enabled,omitempty"`
    // contains filtered or unexported fields

[#next-free-field: 6]

func (*Compressor) Descriptor Uses

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

Deprecated: Use Compressor.ProtoReflect.Descriptor instead.

func (*Compressor) GetContentLength Uses

func (x *Compressor) GetContentLength() *wrappers.UInt32Value

func (*Compressor) GetContentType Uses

func (x *Compressor) GetContentType() []string

func (*Compressor) GetDisableOnEtagHeader Uses

func (x *Compressor) GetDisableOnEtagHeader() bool

func (*Compressor) GetRemoveAcceptEncodingHeader Uses

func (x *Compressor) GetRemoveAcceptEncodingHeader() bool

func (*Compressor) GetRuntimeEnabled Uses

func (x *Compressor) GetRuntimeEnabled() *core.RuntimeFeatureFlag

func (*Compressor) ProtoMessage Uses

func (*Compressor) ProtoMessage()

func (*Compressor) ProtoReflect Uses

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

func (*Compressor) Reset Uses

func (x *Compressor) Reset()

func (*Compressor) String Uses

func (x *Compressor) String() string

func (*Compressor) Validate Uses

func (m *Compressor) Validate() error

Validate checks the field values on Compressor with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CompressorValidationError Uses

type CompressorValidationError struct {
    // contains filtered or unexported fields

CompressorValidationError is the validation error returned by Compressor.Validate if the designated constraints aren't met.

func (CompressorValidationError) Cause Uses

func (e CompressorValidationError) Cause() error

Cause function returns cause value.

func (CompressorValidationError) Error Uses

func (e CompressorValidationError) Error() string

Error satisfies the builtin error interface

func (CompressorValidationError) ErrorName Uses

func (e CompressorValidationError) ErrorName() string

ErrorName returns error name.

func (CompressorValidationError) Field Uses

func (e CompressorValidationError) Field() string

Field function returns field value.

func (CompressorValidationError) Key Uses

func (e CompressorValidationError) Key() bool

Key function returns key value.

func (CompressorValidationError) Reason Uses

func (e CompressorValidationError) Reason() string

Reason function returns reason value.

Package envoy_config_filter_http_compressor_v2 imports 19 packages (graph) and is imported by 7 packages. Updated 2021-01-07. Refresh now. Tools for package owners.