On Thu, Nov 9, 2017 at 1:14 AM, <[email protected]> wrote: > Hi. I am implementing automatic service discovery in one of my projects. > Currently in python. Problem is there is currently no *official* way that > I know of to get all HTTP handlers from the server object. Therefore If I > start a server I would like to enumerate the grpc.server to get all request > handlers (/Service.Name/Service.Method the GET path). > > I can hack the internal structure and read it from there but I am afraid > that might change in some future release >
Have you taken a look at the grpc_reflection <https://pypi.python.org/pypi/grpcio-reflection> package? It's sadly underdocumented <https://github.com/grpc/grpc/issues/13340> but the source is here <https://github.com/grpc/grpc/tree/master/src/python/grpcio_reflection/> and its tests <https://github.com/grpc/grpc/tree/master/src/python/grpcio_tests/tests/reflection> should illustrate its use. -N -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAEOYnASj9Ns9zXrJX4Pp-gTrgKw3DBDfJ5b0wVAFPNdPQcNrkw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME Cryptographic Signature
