Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamServerInterceptor ¶
func StreamServerInterceptor(fn ThrottleFunc) grpc.StreamServerInterceptor
StreamServerInterceptor returns a new unary server interceptors that performs per-request throttling.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(fn ThrottleFunc) grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a new unary server interceptors that performs per-request throttling.
Types ¶
type SemaphoreMap ¶
type SemaphoreMap map[string]chan struct{}
SemaphoreMap its is map of FullMethod and Semaphore
Click to show internal directories.
Click to hide internal directories.