Documentation
¶
Index ¶
- func NewLimiter(count int) grpc_ratelimit.Limiter
- func StreamClientInterceptor(limiter grpc_ratelimit.Limiter) grpc.StreamClientInterceptor
- func StreamServerInterceptor(limiter grpc_ratelimit.Limiter) grpc.StreamServerInterceptor
- func UnaryClientInterceptor(limiter grpc_ratelimit.Limiter) grpc.UnaryClientInterceptor
- func UnaryServerInterceptor(limiter grpc_ratelimit.Limiter) grpc.UnaryServerInterceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLimiter ¶
func NewLimiter(count int) grpc_ratelimit.Limiter
NewLimiter return new go-grpc Limiter, specified the number of requests you want to limit as a counts per second.
func StreamClientInterceptor ¶
func StreamClientInterceptor(limiter grpc_ratelimit.Limiter) grpc.StreamClientInterceptor
StreamServerInterceptor return stream server unary interceptor that limit requests.
func StreamServerInterceptor ¶
func StreamServerInterceptor(limiter grpc_ratelimit.Limiter) grpc.StreamServerInterceptor
StreamServerInterceptor return stream server unary interceptor that limit requests.
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(limiter grpc_ratelimit.Limiter) grpc.UnaryClientInterceptor
UnaryServerInterceptor return server unary interceptor that limit requests.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(limiter grpc_ratelimit.Limiter) grpc.UnaryServerInterceptor
UnaryServerInterceptor return server unary interceptor that limit requests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.