Exemplo n.º 1
0
    def add_channelz_servicer(server):

        if isinstance(server, grpc.experimental.aio.Server):
            _channelz_pb2_grpc.add_ChannelzServicer_to_server(
                aio.ChannelzServicer(), server)
        else:
            _channelz_pb2_grpc.add_ChannelzServicer_to_server(
                ChannelzServicer(), server)
Exemplo n.º 2
0
 async def GetSocket(
         request: _channelz_pb2.GetSocketRequest,
         context: aio.ServicerContext) -> _channelz_pb2.GetSocketResponse:
     return _SyncChannelzServicer.GetSocket(request, context)
Exemplo n.º 3
0
 def add_channelz_servicer(server):
     _channelz_pb2_grpc.add_ChannelzServicer_to_server(
         ChannelzServicer(), server)