Versions in this module Expand all Collapse all v0 v0.0.2 Aug 8, 2024 Changes in this version + const RateLimitService_ShouldRateLimit_FullMethodName + var File_envoy_service_ratelimit_v2_rls_proto protoreflect.FileDescriptor + var RateLimitResponse_Code_name = map[int32]string + var RateLimitResponse_Code_value = map[string]int32 + var RateLimitResponse_RateLimit_Unit_name = map[int32]string + var RateLimitResponse_RateLimit_Unit_value = map[string]int32 + var RateLimitService_ServiceDesc = grpc.ServiceDesc + func RegisterRateLimitServiceServer(s grpc.ServiceRegistrar, srv RateLimitServiceServer) + type RateLimitRequest struct + Descriptors []*ratelimit.RateLimitDescriptor + Domain string + HitsAddend uint32 + func (*RateLimitRequest) Descriptor() ([]byte, []int) + func (*RateLimitRequest) ProtoMessage() + func (x *RateLimitRequest) GetDescriptors() []*ratelimit.RateLimitDescriptor + func (x *RateLimitRequest) GetDomain() string + func (x *RateLimitRequest) GetHitsAddend() uint32 + func (x *RateLimitRequest) ProtoReflect() protoreflect.Message + func (x *RateLimitRequest) Reset() + func (x *RateLimitRequest) String() string + type RateLimitResponse struct + Headers []*core.HeaderValue + OverallCode RateLimitResponse_Code + RequestHeadersToAdd []*core.HeaderValue + Statuses []*RateLimitResponse_DescriptorStatus + func (*RateLimitResponse) Descriptor() ([]byte, []int) + func (*RateLimitResponse) ProtoMessage() + func (x *RateLimitResponse) GetHeaders() []*core.HeaderValue + func (x *RateLimitResponse) GetOverallCode() RateLimitResponse_Code + func (x *RateLimitResponse) GetRequestHeadersToAdd() []*core.HeaderValue + func (x *RateLimitResponse) GetStatuses() []*RateLimitResponse_DescriptorStatus + func (x *RateLimitResponse) ProtoReflect() protoreflect.Message + func (x *RateLimitResponse) Reset() + func (x *RateLimitResponse) String() string + type RateLimitResponse_Code int32 + const RateLimitResponse_OK + const RateLimitResponse_OVER_LIMIT + const RateLimitResponse_UNKNOWN + func (RateLimitResponse_Code) Descriptor() protoreflect.EnumDescriptor + func (RateLimitResponse_Code) EnumDescriptor() ([]byte, []int) + func (RateLimitResponse_Code) Type() protoreflect.EnumType + func (x RateLimitResponse_Code) Enum() *RateLimitResponse_Code + func (x RateLimitResponse_Code) Number() protoreflect.EnumNumber + func (x RateLimitResponse_Code) String() string + type RateLimitResponse_DescriptorStatus struct + Code RateLimitResponse_Code + CurrentLimit *RateLimitResponse_RateLimit + LimitRemaining uint32 + func (*RateLimitResponse_DescriptorStatus) Descriptor() ([]byte, []int) + func (*RateLimitResponse_DescriptorStatus) ProtoMessage() + func (x *RateLimitResponse_DescriptorStatus) GetCode() RateLimitResponse_Code + func (x *RateLimitResponse_DescriptorStatus) GetCurrentLimit() *RateLimitResponse_RateLimit + func (x *RateLimitResponse_DescriptorStatus) GetLimitRemaining() uint32 + func (x *RateLimitResponse_DescriptorStatus) ProtoReflect() protoreflect.Message + func (x *RateLimitResponse_DescriptorStatus) Reset() + func (x *RateLimitResponse_DescriptorStatus) String() string + type RateLimitResponse_RateLimit struct + Name string + RequestsPerUnit uint32 + Unit RateLimitResponse_RateLimit_Unit + func (*RateLimitResponse_RateLimit) Descriptor() ([]byte, []int) + func (*RateLimitResponse_RateLimit) ProtoMessage() + func (x *RateLimitResponse_RateLimit) GetName() string + func (x *RateLimitResponse_RateLimit) GetRequestsPerUnit() uint32 + func (x *RateLimitResponse_RateLimit) GetUnit() RateLimitResponse_RateLimit_Unit + func (x *RateLimitResponse_RateLimit) ProtoReflect() protoreflect.Message + func (x *RateLimitResponse_RateLimit) Reset() + func (x *RateLimitResponse_RateLimit) String() string + type RateLimitResponse_RateLimit_Unit int32 + const RateLimitResponse_RateLimit_DAY + const RateLimitResponse_RateLimit_HOUR + const RateLimitResponse_RateLimit_MINUTE + const RateLimitResponse_RateLimit_SECOND + const RateLimitResponse_RateLimit_UNKNOWN + func (RateLimitResponse_RateLimit_Unit) Descriptor() protoreflect.EnumDescriptor + func (RateLimitResponse_RateLimit_Unit) EnumDescriptor() ([]byte, []int) + func (RateLimitResponse_RateLimit_Unit) Type() protoreflect.EnumType + func (x RateLimitResponse_RateLimit_Unit) Enum() *RateLimitResponse_RateLimit_Unit + func (x RateLimitResponse_RateLimit_Unit) Number() protoreflect.EnumNumber + func (x RateLimitResponse_RateLimit_Unit) String() string + type RateLimitServiceClient interface + ShouldRateLimit func(ctx context.Context, in *RateLimitRequest, opts ...grpc.CallOption) (*RateLimitResponse, error) + func NewRateLimitServiceClient(cc grpc.ClientConnInterface) RateLimitServiceClient + type RateLimitServiceServer interface + ShouldRateLimit func(context.Context, *RateLimitRequest) (*RateLimitResponse, error) + type UnimplementedRateLimitServiceServer struct + func (UnimplementedRateLimitServiceServer) ShouldRateLimit(context.Context, *RateLimitRequest) (*RateLimitResponse, error) + type UnsafeRateLimitServiceServer interface