Documentation ¶
Overview ¶
Package v2 is a generated protocol buffer package.
It is generated from these files:
envoy/config/filter/network/rate_limit/v2/rate_limit.proto
It has these top-level messages:
RateLimit
Index ¶
- Variables
- type RateLimit
- func (*RateLimit) Descriptor() ([]byte, []int)
- func (m *RateLimit) GetDescriptors() []*envoy_api_v2_ratelimit.RateLimitDescriptor
- func (m *RateLimit) GetDomain() string
- func (m *RateLimit) GetStatPrefix() string
- func (m *RateLimit) GetTimeout() *time.Duration
- func (m *RateLimit) Marshal() (dAtA []byte, err error)
- func (m *RateLimit) MarshalTo(dAtA []byte) (int, error)
- func (*RateLimit) ProtoMessage()
- func (m *RateLimit) Reset()
- func (m *RateLimit) Size() (n int)
- func (m *RateLimit) String() string
- func (m *RateLimit) Unmarshal(dAtA []byte) error
- func (m *RateLimit) Validate() error
- type RateLimitValidationError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthRateLimit = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRateLimit = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type RateLimit ¶
type RateLimit struct { // The prefix to use when emitting :ref:`statistics <config_network_filters_rate_limit_stats>`. StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` // The rate limit domain to use in the rate limit service request. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // The rate limit descriptor list to use in the rate limit service request. Descriptors []*envoy_api_v2_ratelimit.RateLimitDescriptor `protobuf:"bytes,3,rep,name=descriptors" json:"descriptors,omitempty"` // The timeout in milliseconds for the rate limit service RPC. If not // set, this defaults to 20ms. Timeout *time.Duration `protobuf:"bytes,4,opt,name=timeout,stdduration" json:"timeout,omitempty"` }
func (*RateLimit) Descriptor ¶
func (*RateLimit) GetDescriptors ¶
func (m *RateLimit) GetDescriptors() []*envoy_api_v2_ratelimit.RateLimitDescriptor
func (*RateLimit) GetStatPrefix ¶
func (*RateLimit) GetTimeout ¶
func (*RateLimit) ProtoMessage ¶
func (*RateLimit) ProtoMessage()
type RateLimitValidationError ¶
RateLimitValidationError is the validation error returned by RateLimit.Validate if the designated constraints aren't met.
func (RateLimitValidationError) Error ¶
func (e RateLimitValidationError) Error() string
Error satisfies the builtin error interface
Click to show internal directories.
Click to hide internal directories.