Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/go/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Rest golang垫片接口中的补片功能_Rest_Go_Hyperledger Fabric_Shim_Glide Golang - Fatal编程技术网

Rest golang垫片接口中的补片功能

Rest golang垫片接口中的补片功能,rest,go,hyperledger-fabric,shim,glide-golang,Rest,Go,Hyperledger Fabric,Shim,Glide Golang,我正在通过golang和shim软件包使用hyperledger结构服务 它有GetState、PutState、DelState。 Get用于检索链接到键的数据。 Put用于创建/更新链接到键的数据体 我想问,我将如何使用补丁REST API来实现同样的功能?没有类似补丁的动词来对密钥的值进行部分更新。。。要么全是,要么全是。因此,基本上我们只能对hyperledger结构使用POST、PUT、GET、DELETE?您可以使用PutState(创建/更新)或GetState(获取)。还有一些其

我正在通过golang和shim软件包使用hyperledger结构服务

它有GetState、PutState、DelState。 Get用于检索链接到键的数据。 Put用于创建/更新链接到键的数据体


我想问,我将如何使用补丁REST API来实现同样的功能?

没有类似补丁的动词来对密钥的值进行部分更新。。。要么全是,要么全是。

因此,基本上我们只能对hyperledger结构使用POST、PUT、GET、DELETE?您可以使用PutState(创建/更新)或GetState(获取)。还有一些其他动词用于查询数据(范围查询等)。感谢您的帮助:)