import "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ratelimit/v3"
rate_limit.pb.go rate_limit.pb.validate.go
var File_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto protoreflect.FileDescriptor
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 []*v3.RateLimitDescriptor `protobuf:"bytes,3,rep,name=descriptors,proto3" json:"descriptors,omitempty"` // The timeout in milliseconds for the rate limit service RPC. If not // set, this defaults to 20ms. Timeout *duration.Duration `protobuf:"bytes,4,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,5,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 *v31.RateLimitServiceConfig `protobuf:"bytes,6,opt,name=rate_limit_service,json=rateLimitService,proto3" json:"rate_limit_service,omitempty"` // contains filtered or unexported fields }
[#next-free-field: 7]
Deprecated: Use RateLimit.ProtoReflect.Descriptor instead.
func (x *RateLimit) GetDescriptors() []*v3.RateLimitDescriptor
func (x *RateLimit) GetRateLimitService() *v31.RateLimitServiceConfig
func (x *RateLimit) ProtoReflect() protoreflect.Message
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 struct {
// contains filtered or unexported fields
}
RateLimitValidationError is the validation error returned by RateLimit.Validate if the designated constraints aren't met.
func (e RateLimitValidationError) Cause() error
Cause function returns cause value.
func (e RateLimitValidationError) Error() string
Error satisfies the builtin error interface
func (e RateLimitValidationError) ErrorName() string
ErrorName returns error name.
func (e RateLimitValidationError) Field() string
Field function returns field value.
func (e RateLimitValidationError) Key() bool
Key function returns key value.
func (e RateLimitValidationError) Reason() string
Reason function returns reason value.
Package envoy_extensions_filters_network_ratelimit_v3 imports 21 packages (graph) and is imported by 6 packages. Updated 2021-01-08. Refresh now. Tools for package owners.