Versions in this module Expand all Collapse all v0 v0.6.3 Nov 12, 2018 v0.6.2 Nov 6, 2018 v0.6.1 Oct 15, 2018 v0.6.0 Sep 25, 2018 Changes in this version type RateLimitResponse + Headers []*core.HeaderValue + func (m *RateLimitResponse) GetHeaders() []*core.HeaderValue v0.5.0 Aug 14, 2018 Changes in this version + var ErrIntOverflowRls = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthRls = fmt.Errorf("proto: negative length found during unmarshaling") + 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 []*ratelimit.RateLimitDescriptor + Domain string + HitsAddend uint32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RateLimitRequest) Descriptor() ([]byte, []int) + func (*RateLimitRequest) ProtoMessage() + func (dst *RateLimitRequest) XXX_Merge(src proto.Message) + func (m *RateLimitRequest) GetDescriptors() []*ratelimit.RateLimitDescriptor + func (m *RateLimitRequest) GetDomain() string + func (m *RateLimitRequest) GetHitsAddend() uint32 + func (m *RateLimitRequest) Marshal() (dAtA []byte, err error) + func (m *RateLimitRequest) MarshalTo(dAtA []byte) (int, error) + func (m *RateLimitRequest) Reset() + func (m *RateLimitRequest) Size() (n int) + func (m *RateLimitRequest) String() string + func (m *RateLimitRequest) Unmarshal(dAtA []byte) error + func (m *RateLimitRequest) Validate() error + func (m *RateLimitRequest) XXX_DiscardUnknown() + func (m *RateLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RateLimitRequest) XXX_Size() int + func (m *RateLimitRequest) XXX_Unmarshal(b []byte) error + type RateLimitRequestValidationError struct + Cause error + Field string + Key bool + Reason string + func (e RateLimitRequestValidationError) Error() string + type RateLimitResponse struct + OverallCode RateLimitResponse_Code + Statuses []*RateLimitResponse_DescriptorStatus + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RateLimitResponse) Descriptor() ([]byte, []int) + func (*RateLimitResponse) ProtoMessage() + func (dst *RateLimitResponse) XXX_Merge(src proto.Message) + func (m *RateLimitResponse) GetOverallCode() RateLimitResponse_Code + func (m *RateLimitResponse) GetStatuses() []*RateLimitResponse_DescriptorStatus + func (m *RateLimitResponse) Marshal() (dAtA []byte, err error) + func (m *RateLimitResponse) MarshalTo(dAtA []byte) (int, error) + func (m *RateLimitResponse) Reset() + func (m *RateLimitResponse) Size() (n int) + func (m *RateLimitResponse) String() string + func (m *RateLimitResponse) Unmarshal(dAtA []byte) error + func (m *RateLimitResponse) Validate() error + func (m *RateLimitResponse) XXX_DiscardUnknown() + func (m *RateLimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RateLimitResponse) XXX_Size() int + func (m *RateLimitResponse) XXX_Unmarshal(b []byte) error + type RateLimitResponseValidationError struct + Cause error + Field string + Key bool + Reason string + func (e RateLimitResponseValidationError) Error() string + type RateLimitResponse_Code int32 + const RateLimitResponse_OK + const RateLimitResponse_OVER_LIMIT + const RateLimitResponse_UNKNOWN + func (RateLimitResponse_Code) EnumDescriptor() ([]byte, []int) + func (x RateLimitResponse_Code) String() string + type RateLimitResponse_DescriptorStatus struct + Code RateLimitResponse_Code + CurrentLimit *RateLimitResponse_RateLimit + LimitRemaining uint32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RateLimitResponse_DescriptorStatus) Descriptor() ([]byte, []int) + func (*RateLimitResponse_DescriptorStatus) ProtoMessage() + func (dst *RateLimitResponse_DescriptorStatus) XXX_Merge(src proto.Message) + func (m *RateLimitResponse_DescriptorStatus) GetCode() RateLimitResponse_Code + func (m *RateLimitResponse_DescriptorStatus) GetCurrentLimit() *RateLimitResponse_RateLimit + func (m *RateLimitResponse_DescriptorStatus) GetLimitRemaining() uint32 + func (m *RateLimitResponse_DescriptorStatus) Marshal() (dAtA []byte, err error) + func (m *RateLimitResponse_DescriptorStatus) MarshalTo(dAtA []byte) (int, error) + func (m *RateLimitResponse_DescriptorStatus) Reset() + func (m *RateLimitResponse_DescriptorStatus) Size() (n int) + func (m *RateLimitResponse_DescriptorStatus) String() string + func (m *RateLimitResponse_DescriptorStatus) Unmarshal(dAtA []byte) error + func (m *RateLimitResponse_DescriptorStatus) Validate() error + func (m *RateLimitResponse_DescriptorStatus) XXX_DiscardUnknown() + func (m *RateLimitResponse_DescriptorStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RateLimitResponse_DescriptorStatus) XXX_Size() int + func (m *RateLimitResponse_DescriptorStatus) XXX_Unmarshal(b []byte) error + type RateLimitResponse_DescriptorStatusValidationError struct + Cause error + Field string + Key bool + Reason string + func (e RateLimitResponse_DescriptorStatusValidationError) Error() string + type RateLimitResponse_RateLimit struct + RequestsPerUnit uint32 + Unit RateLimitResponse_RateLimit_Unit + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RateLimitResponse_RateLimit) Descriptor() ([]byte, []int) + func (*RateLimitResponse_RateLimit) ProtoMessage() + func (dst *RateLimitResponse_RateLimit) XXX_Merge(src proto.Message) + func (m *RateLimitResponse_RateLimit) GetRequestsPerUnit() uint32 + func (m *RateLimitResponse_RateLimit) GetUnit() RateLimitResponse_RateLimit_Unit + func (m *RateLimitResponse_RateLimit) Marshal() (dAtA []byte, err error) + func (m *RateLimitResponse_RateLimit) MarshalTo(dAtA []byte) (int, error) + func (m *RateLimitResponse_RateLimit) Reset() + func (m *RateLimitResponse_RateLimit) Size() (n int) + func (m *RateLimitResponse_RateLimit) String() string + func (m *RateLimitResponse_RateLimit) Unmarshal(dAtA []byte) error + func (m *RateLimitResponse_RateLimit) Validate() error + func (m *RateLimitResponse_RateLimit) XXX_DiscardUnknown() + func (m *RateLimitResponse_RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RateLimitResponse_RateLimit) XXX_Size() int + func (m *RateLimitResponse_RateLimit) XXX_Unmarshal(b []byte) error + type RateLimitResponse_RateLimitValidationError struct + Cause error + Field string + Key bool + Reason string + func (e RateLimitResponse_RateLimitValidationError) Error() 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) EnumDescriptor() ([]byte, []int) + 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.ClientConn) RateLimitServiceClient + type RateLimitServiceServer interface + ShouldRateLimit func(context.Context, *RateLimitRequest) (*RateLimitResponse, error)