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

package envoy_config_filter_network_rate_limit_v2

import "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/rate_limit/v2"

Index

Package Files

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

Variables

var File_envoy_config_filter_network_rate_limit_v2_rate_limit_proto protoreflect.FileDescriptor

type RateLimit Uses

type RateLimit struct {
    StatPrefix       string                           `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
    Domain           string                           `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
    Descriptors      []*ratelimit.RateLimitDescriptor `protobuf:"bytes,3,rep,name=descriptors,proto3" json:"descriptors,omitempty"`
    Timeout          *duration.Duration               `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"`
    FailureModeDeny  bool                             `protobuf:"varint,5,opt,name=failure_mode_deny,json=failureModeDeny,proto3" json:"failure_mode_deny,omitempty"`
    RateLimitService *v2.RateLimitServiceConfig       `protobuf:"bytes,6,opt,name=rate_limit_service,json=rateLimitService,proto3" json:"rate_limit_service,omitempty"`
    // contains filtered or unexported fields
}

func (*RateLimit) Descriptor Uses

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

Deprecated: Use RateLimit.ProtoReflect.Descriptor instead.

func (*RateLimit) GetDescriptors Uses

func (x *RateLimit) GetDescriptors() []*ratelimit.RateLimitDescriptor

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() *v2.RateLimitServiceConfig

func (*RateLimit) GetStatPrefix Uses

func (x *RateLimit) GetStatPrefix() string

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_config_filter_network_rate_limit_v2 imports 21 packages (graph) and is imported by 3 packages. Updated 2020-08-05. Refresh now. Tools for package owners.