示例#1
0
 def GetServerInfo(
         self, request: testing_api_pb2.ServerInfoRequest,
         context: grpc.ServicerContext
 ) -> testing_api_pb2.ServerInfoResponse:
     """Generates a keyset."""
     return testing_api_pb2.ServerInfoResponse(language='python')
示例#2
0
文件: services.py 项目: luomoxu/tink
 def GetServerInfo(
         self, request: testing_api_pb2.ServerInfoRequest,
         context: grpc.ServicerContext
 ) -> testing_api_pb2.ServerInfoResponse:
     """Returns information about the server."""
     return testing_api_pb2.ServerInfoResponse(language='python')