[英]Hyperledger fabric gRPC interaction
I've been messing around with gRPC
and I was looking into building my own simple and comprehensive hyperledger
fabric SDK
in rust.我一直在搞乱
gRPC
,我正在考虑在 rust 中构建自己的简单而全面的hyperledger
结构SDK
。
I've looked everywhere for any gRPC
spec of hyperledger
fabric to see how we can reproduce the functionality of interacting with the peers, stuff like managing channels and performing invokes and queries.我到处寻找任何
gRPC
规范的hyperledger
结构,看看我们如何重现与对等点交互的功能,比如管理通道和执行调用和查询。
(reproduce this behavior: https://hyperledger-fabric.readthedocs.io/en/release-1.4/commands/peerchannel.html ). (重现此行为: https://hyperledger-fabric.readthedocs.io/en/release-1.4/commands/peerchannel.html )。
Online, everyone says that the functionality is exposed over gRPC
, but that they recommend using an existing SDK.在网上,每个人都说该功能通过
gRPC
,但他们建议使用现有的 SDK。
I've inspected the nodeJS SDK
and looked for their.proto files, but there are barely any services ( https://github.com/hyperledger/fabric-sdk-node/tree/release-1.4/fabric-client/lib/protos )我检查了
nodeJS SDK
并寻找了他们的.proto 文件,但几乎没有任何服务( https://github.com/hyperledger/fabric-sdk-node/tree/release-1.4/fabric-client/lib/原型)
Is there any way to get their gRPC
spec?有没有办法获得他们的
gRPC
规范? is there a generic way to do this for gRPC
servers?有没有通用的方法来为
gRPC
服务器执行此操作? Why is it so hidden?为什么这么隐蔽?
Thanks!谢谢!
I believe the protos are recently relocated to https://github.com/hyperledger/fabric-protos for the master branch, which is not yet released.我相信原型最近被重新定位到https://github.com/hyperledger/fabric-protos的 master 分支,该分支尚未发布。
For an as current 1.4 based project, look at the protos/
directory in the main fabric repository.对于当前基于 1.4 的项目,请查看主结构存储库中的
protos/
目录。 https://github.com/hyperledger/fabric/tree/release-1.4/protos https://github.com/hyperledger/fabric/tree/release-1.4/protos
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.