This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from grpc_reflection.v1alpha import reflection | |
| def list_services(address): | |
| channel = grpc.secure_channel(address, get_client_credentials()) | |
| stub = reflection._reflection_pb2_grpc.ServerReflectionStub(channel) | |
| def gen(): | |
| yield reflection._reflection_pb2.ServerReflectionRequest(host=address, list_services='') |