Versions in this module Expand all Collapse all v0 v0.9.82 Jan 31, 2021 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 (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 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 + OverallCode RateLimitResponse_Code + 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 (x *RateLimitResponse) GetOverallCode() RateLimitResponse_Code + 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 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 + func (*RateLimitResponse_DescriptorStatus) Descriptor() ([]byte, []int) + func (*RateLimitResponse_DescriptorStatus) ProtoMessage() + func (m *RateLimitResponse_DescriptorStatus) Validate() 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) ProtoReflect() protoreflect.Message + func (x *RateLimitResponse_DescriptorStatus) Reset() + func (x *RateLimitResponse_DescriptorStatus) String() 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_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 (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_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)