wangxw666 opened a new issue #1461:
URL: https://github.com/apache/dubbo-go/issues/1461


   grpc:
   
   ```
   // UnimplementedSpecialServer can be embedded to have forward compatible 
implementations.
   type UnimplementedSpecialServer struct {
   }
   
   func (*UnimplementedSpecialServer) GetName(context.Context, *SpecialRequest) 
(*SpecialReply, error) {
        return nil, status.Errorf(codes.Unimplemented, "method GetName not 
implemented")
   }
   func (*UnimplementedSpecialServer) SayHello(context.Context, 
*SpecialRequest) (*SpecialReply, error) {
        return nil, status.Errorf(codes.Unimplemented, "method SayHello not 
implemented")
   }
   ```
   
   dubbbo-go:
   
   ```
   type SpecialProviderBase struct {
        proxyImpl protocol.Invoker
   }
   ``` 
   
   xxxProviderBase 也默认的实现下接口的方法,不然业务代码需要把接口放方法全部实现 
   
   


-- 
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]

Reply via email to