hyperf / hyperf

🚀 A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.

Home Page:https://www.hyperf.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

golang 的jsonrpc不能调用hyperf的jsonrpc服务 请问如何解决?

chenxi2015 opened this issue · comments

php的jsonrpc服务:
image
暴露的方法:
image

server.php配置
image

golang调用:
使用的是 "net/rpc/jsonrpc"
image

一直不通,也不报错
请问各位大佬有没有好的解决办法

版本不一样。Golang官方版本提供的 jsonrpc 是 1.0版本的,hyperf 使用的是 2.0 的。
需要一个能够支持 2.0 的库,或者自己实现。

版本

好的 我试试 谢谢

使用这个库 github.com/sourcegraph/jsonrpc2