Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go 语言客户端访问motan怎么处理? #4

Open
hanzhihua opened this issue Nov 6, 2017 · 3 comments
Open

go 语言客户端访问motan怎么处理? #4

hanzhihua opened this issue Nov 6, 2017 · 3 comments

Comments

@hanzhihua
Copy link

hanzhihua commented Nov 6, 2017

服务提供者是java语言,客户端是go语言,怎么处理呢?请指条道路,谢谢

@rayzhang0603
Copy link
Contributor

可以参考main/clientdemo.go,其中的mclient2是和java的demo一致的,可以通过直连或者通过zk注册中心调通java demo中的server。
目前motan-go仅支持simple序列化方式,simple只支持null、string、map<string, string>以及byte[]几种对象序列化。后续会支持pb、hprose等其他跨语言序列化方式。

mclient2 := mccontext.GetClient("mytest-demo")

rayzhang0603 pushed a commit that referenced this issue Jan 4, 2018
@twdp
Copy link

twdp commented Dec 1, 2018

什么时候能够支持hprose呢?

@rayzhang0603
Copy link
Contributor

@twdp hprose的支持暂时不在排期中,欢迎PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants