Yoda-wu commented on code in PR #727:
URL: https://github.com/apache/dubbo-go-samples/pull/727#discussion_r1527434336
##########
service_discovery/service/go-server/server.go:
##########
@@ -0,0 +1,65 @@
+package main
+
+import (
+ "context"
+
+ "dubbo.apache.org/dubbo-go/v3"
+ // "dubbo.apache.org/dubbo-go/v3/config"
+ _ "dubbo.apache.org/dubbo-go/v3/imports"
+
+ "dubbo.apache.org/dubbo-go/v3/protocol"
+ "dubbo.apache.org/dubbo-go/v3/registry"
+
+ greet
"github.com/apache/dubbo-go-samples/service_discovery/service/proto"
+ "github.com/dubbogo/gost/log/logger"
+)
+
+type GreetTripleServer struct {
+}
+
+func (svr *GreetTripleServer) Greet(ctx context.Context, req
*greet.GreetRequest) (*greet.GreetResponse, error) {
+ resp := &greet.GreetResponse{Greeting: req.Name}
+ return resp, nil
+}
+
+func (s *GreetTripleServer) MethodMapper() map[string]string {
Review Comment:
sorry, it turn out that java client can still invoke the go server. i made a
mistake. The reason why i add `MethodMapper` is
https://cn.dubbo.apache.org/zh-cn/overview/mannual/golang-sdk/tutorial/develop/interflow/call_java/#22-java-client---go-server
and i referenced the wrong part (Part2 Hessian2 serialize)
--
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]