grpc_method_paths_from_file_descriptor_sets

Function grpc_method_paths_from_file_descriptor_sets 

Source
pub fn grpc_method_paths_from_file_descriptor_sets(
    encoded_sets: &[&[u8]],
) -> Result<HashSet<String>, DecodeError>
Expand description

Decode one or more encoded FileDescriptorSet byte slices and return the set of /package.Service/Method paths they declare.

Intended to be called once at server startup with the same bytes that are registered with tonic_reflection, so the metrics allowlist stays in sync with the services actually exposed over gRPC.