go-control-plane: github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/filters/ratelimit/v3 Index | Files

package envoy_extensions_filters_network_thrift_proxy_filters_ratelimit_v3

import "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/thrift_proxy/filters/ratelimit/v3"


Package Files

rate_limit.pb.go rate_limit.pb.validate.go


var File_envoy_extensions_filters_network_thrift_proxy_filters_ratelimit_v3_rate_limit_proto protoreflect.FileDescriptor

type RateLimit Uses

type RateLimit struct {

    // The rate limit domain to use in the rate limit service request.
    Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
    // Specifies the rate limit configuration stage. Each configured rate limit filter performs a
    // rate limit check using descriptors configured in the
    // :ref:`envoy_api_msg_extensions.filters.network.thrift_proxy.v3.RouteAction` for the request.
    // Only those entries with a matching stage number are used for a given filter. If not set, the
    // default stage number is 0.
    // .. note::
    //  The filter supports a range of 0 - 10 inclusively for stage numbers.
    Stage uint32 `protobuf:"varint,2,opt,name=stage,proto3" json:"stage,omitempty"`
    // The timeout in milliseconds for the rate limit service RPC. If not
    // set, this defaults to 20ms.
    Timeout *duration.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
    // The filter's behaviour in case the rate limiting service does
    // not respond back. When it is set to true, Envoy will not allow traffic in case of
    // communication failure between rate limiting service and the proxy.
    // Defaults to false.
    FailureModeDeny bool `protobuf:"varint,4,opt,name=failure_mode_deny,json=failureModeDeny,proto3" json:"failure_mode_deny,omitempty"`
    // Configuration for an external rate limit service provider. If not
    // specified, any calls to the rate limit service will immediately return
    // success.
    RateLimitService *v3.RateLimitServiceConfig `protobuf:"bytes,5,opt,name=rate_limit_service,json=rateLimitService,proto3" json:"rate_limit_service,omitempty"`
    // contains filtered or unexported fields

[#next-free-field: 6]

func (*RateLimit) Descriptor Uses

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

Deprecated: Use RateLimit.ProtoReflect.Descriptor instead.

func (*RateLimit) GetDomain Uses

func (x *RateLimit) GetDomain() string

func (*RateLimit) GetFailureModeDeny Uses

func (x *RateLimit) GetFailureModeDeny() bool

func (*RateLimit) GetRateLimitService Uses

func (x *RateLimit) GetRateLimitService() *v3.RateLimitServiceConfig

func (*RateLimit) GetStage Uses

func (x *RateLimit) GetStage() uint32

func (*RateLimit) GetTimeout Uses

func (x *RateLimit) GetTimeout() *duration.Duration

func (*RateLimit) ProtoMessage Uses

func (*RateLimit) ProtoMessage()

func (*RateLimit) ProtoReflect Uses

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

func (*RateLimit) Reset Uses

func (x *RateLimit) Reset()

func (*RateLimit) String Uses

func (x *RateLimit) String() string

func (*RateLimit) Validate Uses

func (m *RateLimit) Validate() error

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

type RateLimitValidationError Uses

type RateLimitValidationError struct {
    // contains filtered or unexported fields

RateLimitValidationError is the validation error returned by RateLimit.Validate if the designated constraints aren't met.

func (RateLimitValidationError) Cause Uses

func (e RateLimitValidationError) Cause() error

Cause function returns cause value.

func (RateLimitValidationError) Error Uses

func (e RateLimitValidationError) Error() string

Error satisfies the builtin error interface

func (RateLimitValidationError) ErrorName Uses

func (e RateLimitValidationError) ErrorName() string

ErrorName returns error name.

func (RateLimitValidationError) Field Uses

func (e RateLimitValidationError) Field() string

Field function returns field value.

func (RateLimitValidationError) Key Uses

func (e RateLimitValidationError) Key() bool

Key function returns key value.

func (RateLimitValidationError) Reason Uses

func (e RateLimitValidationError) Reason() string

Reason function returns reason value.

Package envoy_extensions_filters_network_thrift_proxy_filters_ratelimit_v3 imports 20 packages (graph) and is imported by 8 packages. Updated 2021-01-07. Refresh now. Tools for package owners.