(ctx context.Context)
| 40 | } |
| 41 | |
| 42 | func grpcIsClusterAuthCall(ctx context.Context) bool { |
| 43 | return rpcmetadata.FromIncomingContext(ctx).AuthType == clusterauth.AuthType |
| 44 | } |
| 45 | |
| 46 | // UnaryServerInterceptor returns a gRPC unary server interceptor that rate limits incoming gRPC requests. |
| 47 | func UnaryServerInterceptor(limiter Interface) grpc.UnaryServerInterceptor { |
no test coverage detected