Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamServerInterceptor ¶
func StreamServerInterceptor(limiter Limiter, matchers ...selector.Matcher) grpc.StreamServerInterceptor
StreamServerInterceptor returns a new streaming server interceptor that performs rate limiting on the request. If no matchers are provided, the limiter will apply to all requests. If matchers are provided, the limiter will only apply to requests that match at least one of the matchers.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(limiter Limiter, matchers ...selector.Matcher) grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a new unary server interceptor that performs rate limiting on the request. If no matchers are provided, the limiter will apply to all requests. If matchers are provided, the limiter will only apply to requests that match at least one of the matchers.
Types ¶
Click to show internal directories.
Click to hide internal directories.