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 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样