Beispiel #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)
Beispiel #2
0
 async def GetSocket(
         request: _channelz_pb2.GetSocketRequest,
         context: aio.ServicerContext) -> _channelz_pb2.GetSocketResponse:
     return _SyncChannelzServicer.GetSocket(request, context)
Beispiel #3
0
 def add_channelz_servicer(server):
     _channelz_pb2_grpc.add_ChannelzServicer_to_server(
         ChannelzServicer(), server)