GAE Go Json-RPC调用示例

huangapple go评论89阅读模式
英文:

GAE Go Json-RPC call example

问题

我正在尝试理解如何在Google Go中使用Json-RPC调用,这将用于Google App Engine应用程序。到目前为止,我了解到我应该以某种方式调用rpc.Client.Dial,但我不明白"network"和"address"参数应该是什么。有人可以提供一个演示如何在Go中使用Json-RPC的示例工作代码吗?

英文:

I'm trying to understand how to use Json-RPC calls in Google Go that would be used in a Google App Engine app. So far I understand that I somehow should call rpc.Client.Dial, but I don't understand what the "network" and "address" parameters should be. Can anyone provide a sample, working code that demonstrates how to use Json-RPC in Go?

答案1

得分: 2

我已经在go-nuts小组中回答了你的问题,但为了完整起见,这里是答案:

> Go的jsonrpc包目前还不兼容GAE。

参考:https://groups.google.com/d/msg/google-appengine-go/uQ0cv0m9j0E/H3VCrFgEWvcJ

最好阅读完整的讨论线程,因为它很好地描述了GAE的限制,并链接到了一个有很多解决方法的修补库... 这个问题已经被知晓,但尚未解决。

英文:

I have already written an answer to your question on the go-nuts group, but for completeness, here it is:

> Go's jsonrpc package isn't compatible with GAE yet.

Reference: https://groups.google.com/d/msg/google-appengine-go/uQ0cv0m9j0E/H3VCrFgEWvcJ

It's probably a good idea to read the full thread there, since it describes the limitations on GAE nicely and links to a patched library with lots of workarounds... The issue is already known, but has not been solved yet.

huangapple
  • 本文由 发表于 2012年1月13日 09:09:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/8844658.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定