var ErrorLimitExceeded … type Limiter … // LimiterUnaryServerInterceptor returns a new unary server interceptors that performs request rate limiting. func LimiterUnaryServerInterceptor(limiter Limiter) grpc.UnaryServerInterceptor { … } // WithRateLimiter creates new rate limiter with unary interceptor. func WithRateLimiter(serviceName string, qps, burstTokens int32) grpc.ServerOption { … }