ztelur commented on issue #321:
URL: https://github.com/apache/dubbo-go-pixiu/issues/321#issuecomment-991855064
refer to `dubbogo/protocol/dubbo/dubbo_protocl.openServer` function, Pixiu
can setup itself dubbo listener and handle rpcInvocation in network filter
```
// setup server
handler := func(invocation *invocation.RPCInvocation) protocol.RPCResult {
return doHandleRequest(invocation)
}
srv := remoting.NewExchangeServer(url, getty.NewServer(url, handler))
// invocation handler
func doHandleRequest(rpcInvocation *invocation.RPCInvocation)
protocol.RPCResult {
// pass it up to business service
}
```
--
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]