14 """AsyncIO version of Channelz servicer."""
18 ChannelzServicer
as _SyncChannelzServicer
19 import grpc_channelz.v1.channelz_pb2
as _channelz_pb2
20 import grpc_channelz.v1.channelz_pb2_grpc
as _channelz_pb2_grpc
24 """AsyncIO servicer for handling RPCs for service statuses."""
28 request: _channelz_pb2.GetTopChannelsRequest,
29 context: aio.ServicerContext
30 ) -> _channelz_pb2.GetTopChannelsResponse:
31 return _SyncChannelzServicer.GetTopChannels(request, context)
35 request: _channelz_pb2.GetServersRequest,
36 context: aio.ServicerContext) -> _channelz_pb2.GetServersResponse:
37 return _SyncChannelzServicer.GetServers(request, context)
41 request: _channelz_pb2.GetServerRequest,
42 context: aio.ServicerContext) -> _channelz_pb2.GetServerResponse:
43 return _SyncChannelzServicer.GetServer(request, context)
46 async
def GetServerSockets(
47 request: _channelz_pb2.GetServerSocketsRequest,
48 context: aio.ServicerContext
49 ) -> _channelz_pb2.GetServerSocketsResponse:
50 return _SyncChannelzServicer.GetServerSockets(request, context)
54 request: _channelz_pb2.GetChannelRequest,
55 context: aio.ServicerContext) -> _channelz_pb2.GetChannelResponse:
56 return _SyncChannelzServicer.GetChannel(request, context)
59 async
def GetSubchannel(
60 request: _channelz_pb2.GetSubchannelRequest,
61 context: aio.ServicerContext
62 ) -> _channelz_pb2.GetSubchannelResponse:
63 return _SyncChannelzServicer.GetSubchannel(request, context)
67 request: _channelz_pb2.GetSocketRequest,
68 context: aio.ServicerContext) -> _channelz_pb2.GetSocketResponse:
69 return _SyncChannelzServicer.GetSocket(request, context)