burstlimit

package
v1.1.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL