package ratelimitv3

import "github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v3"

Index

Variables

var File_envoy_config_ratelimit_v3_rls_proto protoreflect.FileDescriptor

Types

type RateLimitServiceConfig

type RateLimitServiceConfig struct {

	// Specifies the gRPC service that hosts the rate limit service. The client
	// will connect to this cluster when it needs to make rate limit service
	// requests.
	GrpcService *v3.GrpcService `protobuf:"bytes,2,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"`
	// API version for rate limit transport protocol. This describes the rate limit gRPC endpoint and
	// version of messages used on the wire.
	TransportApiVersion v3.ApiVersion `protobuf:"varint,4,opt,name=transport_api_version,json=transportApiVersion,proto3,enum=envoy.config.core.v3.ApiVersion" json:"transport_api_version,omitempty"`
	// contains filtered or unexported fields
}

Rate limit :ref:`configuration overview <config_rate_limit_service>`.

func (*RateLimitServiceConfig) Descriptor

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

Deprecated: Use RateLimitServiceConfig.ProtoReflect.Descriptor instead.

func (*RateLimitServiceConfig) GetGrpcService

func (x *RateLimitServiceConfig) GetGrpcService() *v3.GrpcService

func (*RateLimitServiceConfig) GetTransportApiVersion

func (x *RateLimitServiceConfig) GetTransportApiVersion() v3.ApiVersion

func (*RateLimitServiceConfig) ProtoMessage

func (*RateLimitServiceConfig) ProtoMessage()

func (*RateLimitServiceConfig) ProtoReflect

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

func (*RateLimitServiceConfig) Reset

func (x *RateLimitServiceConfig) Reset()

func (*RateLimitServiceConfig) String

func (x *RateLimitServiceConfig) String() string

func (*RateLimitServiceConfig) Validate

func (m *RateLimitServiceConfig) Validate() error

Validate checks the field values on RateLimitServiceConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RateLimitServiceConfig) ValidateAll

func (m *RateLimitServiceConfig) ValidateAll() error

ValidateAll checks the field values on RateLimitServiceConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RateLimitServiceConfigMultiError, or nil if none found.

type RateLimitServiceConfigMultiError

type RateLimitServiceConfigMultiError []error

RateLimitServiceConfigMultiError is an error wrapping multiple validation errors returned by RateLimitServiceConfig.ValidateAll() if the designated constraints aren't met.

func (RateLimitServiceConfigMultiError) AllErrors

func (m RateLimitServiceConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RateLimitServiceConfigMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RateLimitServiceConfigValidationError

type RateLimitServiceConfigValidationError struct {
	// contains filtered or unexported fields
}

RateLimitServiceConfigValidationError is the validation error returned by RateLimitServiceConfig.Validate if the designated constraints aren't met.

func (RateLimitServiceConfigValidationError) Cause

Cause function returns cause value.

func (RateLimitServiceConfigValidationError) Error

Error satisfies the builtin error interface

func (RateLimitServiceConfigValidationError) ErrorName

ErrorName returns error name.

func (RateLimitServiceConfigValidationError) Field

Field function returns field value.

func (RateLimitServiceConfigValidationError) Key

Key function returns key value.

func (RateLimitServiceConfigValidationError) Reason

Reason function returns reason value.

Source Files

rls.pb.go rls.pb.validate.go

Version
v1.32.4 (latest)
Published
Feb 3, 2025
Platform
linux/amd64
Imports
19 packages
Last checked
1 day ago

Tools for package owners.