import "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/local_rate_limit/v2alpha"
local_rate_limit.pb.go local_rate_limit.pb.validate.go
var File_envoy_config_filter_network_local_rate_limit_v2alpha_local_rate_limit_proto protoreflect.FileDescriptor
type LocalRateLimit struct { // The prefix to use when emitting :ref:`statistics // <config_network_filters_local_rate_limit_stats>`. StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` // The token bucket configuration to use for rate limiting connections that are processed by the // filter's filter chain. Each incoming connection processed by the filter consumes a single // token. If the token is available, the connection will be allowed. If no tokens are available, // the connection will be immediately closed. // // .. note:: // In the current implementation each filter and filter chain has an independent rate limit. // // .. note:: // In the current implementation the token bucket's :ref:`fill_interval // <envoy_api_field_type.TokenBucket.fill_interval>` must be >= 50ms to avoid too aggressive // refills. TokenBucket *_type.TokenBucket `protobuf:"bytes,2,opt,name=token_bucket,json=tokenBucket,proto3" json:"token_bucket,omitempty"` // Runtime flag that controls whether the filter is enabled or not. If not specified, defaults // to enabled. RuntimeEnabled *core.RuntimeFeatureFlag `protobuf:"bytes,3,opt,name=runtime_enabled,json=runtimeEnabled,proto3" json:"runtime_enabled,omitempty"` // contains filtered or unexported fields }
func (*LocalRateLimit) Descriptor() ([]byte, []int)
Deprecated: Use LocalRateLimit.ProtoReflect.Descriptor instead.
func (x *LocalRateLimit) GetRuntimeEnabled() *core.RuntimeFeatureFlag
func (x *LocalRateLimit) GetStatPrefix() string
func (x *LocalRateLimit) GetTokenBucket() *_type.TokenBucket
func (*LocalRateLimit) ProtoMessage()
func (x *LocalRateLimit) ProtoReflect() protoreflect.Message
func (x *LocalRateLimit) Reset()
func (x *LocalRateLimit) String() string
func (m *LocalRateLimit) Validate() error
Validate checks the field values on LocalRateLimit with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type LocalRateLimitValidationError struct {
// contains filtered or unexported fields
}
LocalRateLimitValidationError is the validation error returned by LocalRateLimit.Validate if the designated constraints aren't met.
func (e LocalRateLimitValidationError) Cause() error
Cause function returns cause value.
func (e LocalRateLimitValidationError) Error() string
Error satisfies the builtin error interface
func (e LocalRateLimitValidationError) ErrorName() string
ErrorName returns error name.
func (e LocalRateLimitValidationError) Field() string
Field function returns field value.
func (e LocalRateLimitValidationError) Key() bool
Key function returns key value.
func (e LocalRateLimitValidationError) Reason() string
Reason function returns reason value.
Package envoy_config_filter_network_local_rate_limit_v2alpha imports 20 packages (graph) and is imported by 6 packages. Updated 2021-01-08. Refresh now. Tools for package owners.