英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论