Documentation ¶
Index ¶
- func StreamClientInterceptor(b int, timeout time.Duration) grpc.StreamClientInterceptor
- func StreamServerInterceptor(b int, timeout time.Duration) grpc.StreamServerInterceptor
- func UnaryClientInterceptor(b int, timeout time.Duration) grpc.UnaryClientInterceptor
- func UnaryServerInterceptor(b int, timeout time.Duration) grpc.UnaryServerInterceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamClientInterceptor ¶
func StreamClientInterceptor(b int, timeout time.Duration) grpc.StreamClientInterceptor
StreamClientInterceptor returns a new streaming client interceptor that performs burst limiting on the request. b bucket size, take effect if b > 0 timeout ResourceExhausted if cost more than timeout to get a token, take effect if timeout > 0
func StreamServerInterceptor ¶
func StreamServerInterceptor(b int, timeout time.Duration) grpc.StreamServerInterceptor
StreamServerInterceptor returns a new streaming server interceptor that performs burst limiting on the request. b bucket size, take effect if b > 0 timeout ResourceExhausted if cost more than timeout to get a token, take effect if timeout > 0
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(b int, timeout time.Duration) grpc.UnaryClientInterceptor
UnaryClientInterceptor returns a new unary client interceptor that performs request burst limiting. b bucket size, take effect if b > 0 timeout ResourceExhausted if cost more than timeout to get a token, take effect if timeout > 0
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(b int, timeout time.Duration) grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a new unary server interceptors that performs request burst limiting. b bucket size, take effect if b > 0 timeout ResourceExhausted if cost more than timeout to get a token, take effect if timeout > 0
Types ¶
This section is empty.