Versions in this module Expand all Collapse all v0 v0.10.5 Jan 12, 2023 Changes in this version + var File_envoy_service_ratelimit_v3_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 + func RegisterRateLimitServiceServer(s *grpc.Server, srv RateLimitServiceServer) + type RateLimitRequest struct + Descriptors []*v3.RateLimitDescriptor + Domain string + HitsAddend uint32 + func (*RateLimitRequest) Descriptor() ([]byte, []int) + func (*RateLimitRequest) ProtoMessage() + func (m *RateLimitRequest) Validate() error + func (m *RateLimitRequest) ValidateAll() error + func (x *RateLimitRequest) GetDescriptors() []*v3.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 RateLimitRequestMultiError []error + func (m RateLimitRequestMultiError) AllErrors() []error + func (m RateLimitRequestMultiError) Error() string + type RateLimitRequestValidationError struct + func (e RateLimitRequestValidationError) Cause() error + func (e RateLimitRequestValidationError) Error() string + func (e RateLimitRequestValidationError) ErrorName() string + func (e RateLimitRequestValidationError) Field() string + func (e RateLimitRequestValidationError) Key() bool + func (e RateLimitRequestValidationError) Reason() string + type RateLimitResponse struct + DynamicMetadata *_struct.Struct + OverallCode RateLimitResponse_Code + Quota *RateLimitResponse_Quota + RawBody []byte + RequestHeadersToAdd []*v31.HeaderValue + ResponseHeadersToAdd []*v31.HeaderValue + Statuses []*RateLimitResponse_DescriptorStatus + func (*RateLimitResponse) Descriptor() ([]byte, []int) + func (*RateLimitResponse) ProtoMessage() + func (m *RateLimitResponse) Validate() error + func (m *RateLimitResponse) ValidateAll() error + func (x *RateLimitResponse) GetDynamicMetadata() *_struct.Struct + func (x *RateLimitResponse) GetOverallCode() RateLimitResponse_Code + func (x *RateLimitResponse) GetQuota() *RateLimitResponse_Quota + func (x *RateLimitResponse) GetRawBody() []byte + func (x *RateLimitResponse) GetRequestHeadersToAdd() []*v31.HeaderValue + func (x *RateLimitResponse) GetResponseHeadersToAdd() []*v31.HeaderValue + func (x *RateLimitResponse) GetStatuses() []*RateLimitResponse_DescriptorStatus + func (x *RateLimitResponse) ProtoReflect() protoreflect.Message + func (x *RateLimitResponse) Reset() + func (x *RateLimitResponse) String() string + type RateLimitResponseMultiError []error + func (m RateLimitResponseMultiError) AllErrors() []error + func (m RateLimitResponseMultiError) Error() string + type RateLimitResponseValidationError struct + func (e RateLimitResponseValidationError) Cause() error + func (e RateLimitResponseValidationError) Error() string + func (e RateLimitResponseValidationError) ErrorName() string + func (e RateLimitResponseValidationError) Field() string + func (e RateLimitResponseValidationError) Key() bool + func (e RateLimitResponseValidationError) Reason() 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 + DurationUntilReset *duration.Duration + LimitRemaining uint32 + Quota *RateLimitResponse_Quota + func (*RateLimitResponse_DescriptorStatus) Descriptor() ([]byte, []int) + func (*RateLimitResponse_DescriptorStatus) ProtoMessage() + func (m *RateLimitResponse_DescriptorStatus) Validate() error + func (m *RateLimitResponse_DescriptorStatus) ValidateAll() error + func (x *RateLimitResponse_DescriptorStatus) GetCode() RateLimitResponse_Code + func (x *RateLimitResponse_DescriptorStatus) GetCurrentLimit() *RateLimitResponse_RateLimit + func (x *RateLimitResponse_DescriptorStatus) GetDurationUntilReset() *duration.Duration + func (x *RateLimitResponse_DescriptorStatus) GetLimitRemaining() uint32 + func (x *RateLimitResponse_DescriptorStatus) GetQuota() *RateLimitResponse_Quota + func (x *RateLimitResponse_DescriptorStatus) ProtoReflect() protoreflect.Message + func (x *RateLimitResponse_DescriptorStatus) Reset() + func (x *RateLimitResponse_DescriptorStatus) String() string + type RateLimitResponse_DescriptorStatusMultiError []error + func (m RateLimitResponse_DescriptorStatusMultiError) AllErrors() []error + func (m RateLimitResponse_DescriptorStatusMultiError) Error() string + type RateLimitResponse_DescriptorStatusValidationError struct + func (e RateLimitResponse_DescriptorStatusValidationError) Cause() error + func (e RateLimitResponse_DescriptorStatusValidationError) Error() string + func (e RateLimitResponse_DescriptorStatusValidationError) ErrorName() string + func (e RateLimitResponse_DescriptorStatusValidationError) Field() string + func (e RateLimitResponse_DescriptorStatusValidationError) Key() bool + func (e RateLimitResponse_DescriptorStatusValidationError) Reason() string + type RateLimitResponse_Quota struct + ExpirationSpecifier isRateLimitResponse_Quota_ExpirationSpecifier + Id string + Requests uint32 + func (*RateLimitResponse_Quota) Descriptor() ([]byte, []int) + func (*RateLimitResponse_Quota) ProtoMessage() + func (m *RateLimitResponse_Quota) GetExpirationSpecifier() isRateLimitResponse_Quota_ExpirationSpecifier + func (m *RateLimitResponse_Quota) Validate() error + func (m *RateLimitResponse_Quota) ValidateAll() error + func (x *RateLimitResponse_Quota) GetId() string + func (x *RateLimitResponse_Quota) GetRequests() uint32 + func (x *RateLimitResponse_Quota) GetValidUntil() *timestamp.Timestamp + func (x *RateLimitResponse_Quota) ProtoReflect() protoreflect.Message + func (x *RateLimitResponse_Quota) Reset() + func (x *RateLimitResponse_Quota) String() string + type RateLimitResponse_QuotaMultiError []error + func (m RateLimitResponse_QuotaMultiError) AllErrors() []error + func (m RateLimitResponse_QuotaMultiError) Error() string + type RateLimitResponse_QuotaValidationError struct + func (e RateLimitResponse_QuotaValidationError) Cause() error + func (e RateLimitResponse_QuotaValidationError) Error() string + func (e RateLimitResponse_QuotaValidationError) ErrorName() string + func (e RateLimitResponse_QuotaValidationError) Field() string + func (e RateLimitResponse_QuotaValidationError) Key() bool + func (e RateLimitResponse_QuotaValidationError) Reason() string + type RateLimitResponse_Quota_ValidUntil struct + ValidUntil *timestamp.Timestamp + type RateLimitResponse_RateLimit struct + Name string + RequestsPerUnit uint32 + Unit RateLimitResponse_RateLimit_Unit + func (*RateLimitResponse_RateLimit) Descriptor() ([]byte, []int) + func (*RateLimitResponse_RateLimit) ProtoMessage() + func (m *RateLimitResponse_RateLimit) Validate() error + func (m *RateLimitResponse_RateLimit) ValidateAll() error + 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_RateLimitMultiError []error + func (m RateLimitResponse_RateLimitMultiError) AllErrors() []error + func (m RateLimitResponse_RateLimitMultiError) Error() string + type RateLimitResponse_RateLimitValidationError struct + func (e RateLimitResponse_RateLimitValidationError) Cause() error + func (e RateLimitResponse_RateLimitValidationError) Error() string + func (e RateLimitResponse_RateLimitValidationError) ErrorName() string + func (e RateLimitResponse_RateLimitValidationError) Field() string + func (e RateLimitResponse_RateLimitValidationError) Key() bool + func (e RateLimitResponse_RateLimitValidationError) Reason() 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)