doumengwei0138 2014-09-24 08:53
浏览 182
已采纳

通过HTTP进行JSON RPC v2

In the Go world is there any project implements the JSON RPC 2.0 (HTTP), especially the feature of batched query?

Some background that is, I know there's a Go built-in one but it's not over HTTP, and Gorilla looks to supports V2 (in the v2 folder, however I can't find documentation with it), but as I tested it response empty result for a combined request like "[{valid_request...},{valid_request...}]". Maybe it hasn't implemented the batched one. (Have I missed anything to get it right?)

  • 写回答

1条回答 默认 最新

  • doutizhou5312 2014-09-26 04:21
    关注

    Since I can't find a ready Go server support for JsonRpc 2.0 for now, I modified the gorilla JsonRPC 2.0 to support the batched query. The forked repo is at https://github.com/jason-xxl/rpc . Just need to change the import path from "gorilla/rpc/v2" to "jason-xxl/rpc/v2_batch" to get a testable batched query enabled server. (Please let me know if I missed any one that already support 2.0 batch.)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来