for root, dirs, files in os.walk(path):```
for file in files:
if '.proto' in file:
try:
_proto, _services = grpc.protos_and_services(file)
except Exception as e:
logger.error("Error: grpc.protos_and_services error {}, proto file {}".format(e, file))
raise e
service_list = inspect.getmembers(_services, inspect.isfunction)
for (module_name, module_instance) in inspect.getmembers(_services, inspect.isclass):
if 'Servicer' in module_name:
service_dict[module_name.split("Servicer")[0]] = (
_services, module_instance, [x[1] for x in service_list if module_name in x[0]][0],
_proto)
return service_dict
enum ClarityLiveMode {
...
Virtual = 5;
}
service Virtual {
rpc ...}
本邮件仅为指定收件人使用并可能包含保密信息,若您误收到本邮件,敬请通知发件人,并立即删除本邮件及所有副本。您不得擅自传播、转发、保存或复制此邮件(含附件)。感谢您的理解与配合。
This message may contain confidential information, and is intended only for the use of the addressee(s) named above. If you have received this message in error, please contact the sender immediately and delete all copies from your system. You are hereby notified that any dissemination, distribution, preservation or copying of this message and/or attachments is strictly prohibited. Thank you for your understanding and cooperation.