chickenlj opened a new issue, #2476: URL: https://github.com/apache/dubbo-go/issues/2476
``` 刘军:@王宇轩 咱们 dubbogo.yml 文件模式,使用方式还是这样的吧?这个SetProviderService还是必须设置一下 王宇轩:@刘军 使用老triple的生成代码,这样是没问题的,但是新triple的生成代码不太一样,元数据不通过GetDubboStub承载而是ClientInfo和ServerInfo了,所以SetProviderService除了接受用户逻辑,也需要接收这些元数据 王宇轩:那么就会有以下问题: 1. 假设有一个SetProviderServiceWithInfo,那么这个接口应该放在哪,config按照我们的打算是逐渐架空,那么比较合理的选择应该就是instance层或者server层,具体选哪个我们需要讨论下 2. 让用户直接调用SetProviderServiceWithInfo有点别扭,他们其实不太应该直接接触到这些info,那么是不是在triple的生成文件里提供一个SetProviderService(service common.RPCService),用户通过greetriple.SetProviderService(hdr)的方式调用 3. 根据第一点,使用新triple的生成代码结合dubbogo.yml,之前的config.Load应该在instance层有一个对应的函数,即dubbo.Load,读取dubbogo.yml并根据其中配置分派给client层和server层完成初始化以及invoker链的装配 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
