Open Sidebar
Close Sidebar
grpc
main
CrystalGrpcCodeGenerator
GRPC
BackoffConfig
BidiCall
BidiStreamServerCall
CallInfo
Channel
ClientTransportFactory
ClientContext
ClientInterceptor
ClientStream
ClientStreamServerCall
Codec
ConnectionError
Endpoint
EndpointConfig
Health
Registry
Reporter
Service
Interceptors
KeepaliveParams
LiveBidiStreamClientCall
LiveClientStreamClientCall
Marshaller
Metadata
Value
ProtoMarshaller
RateLimitConfig
RawBidiCall
RawClientCall
RawRequestStream
RawResponseStream
RawServerStream
Reflection
DescriptorIndex
Request
Service
Wire
RequestEnvelope
RequestStream
ResponseEnvelope
ResponseStream
RPCKind
Server
ServerTransportFactory
ServerContext
ServerInterceptor
ServerStream
ServerStreamClientCall
ServerStreamServerCall
Service
Status
StatusCode
StatusError
Transport
ClientTransport
GrpcDeframer
FrameHeader
GrpcStatusInterpreter
Http2ClientConnection
Http2Connection
Http2ServerConnection
LiveRequestState
LiveSendBuffer
PendingCall
PendingStream
ResponseContext
SendBuffer
ServerTransport
StreamData
StreamHeaderState
StreamTerminalState
TrailerCodec
UnaryClientCall
UnaryResponse
UnaryServerCall
Grpc
Health
V1
Health
Client
Service
HealthCheckRequest
HealthCheckResponse
ServingStatus
HealthListRequest
HealthListResponse
StatusesEntry
MethodDescriptor
PluginCodeGeneratorRequest
ProtoFileDescriptor
ServiceDescriptor
class
GRPC::
RateLimitConfig
GRPC::RateLimitConfig
Reference
Object
Overview
RateLimitConfig limits request starts to
limit
per
period
.
Defined in:
grpc/endpoint.cr
Constructors
.new
(limit : UInt64, period : Time::Span)
Instance Method Summary
#limit
: UInt64
#limit=
(limit : UInt64)
#period
: Time::Span
#period=
(period : Time::Span)
Constructor Detail
def self.
new
(limit : UInt64, period : Time::Span)
#
[
View source
]
Instance Method Detail
def
limit
: UInt64
#
[
View source
]
def
limit=
(limit : UInt64)
#
[
View source
]
def
period
: Time::Span
#
[
View source
]
def
period=
(period : Time::Span)
#
[
View source
]