Documentation ¶
Index ¶
- func DelLedger(stub shim.ChaincodeStubInterface, objectType string, keys []string) error
- func GetStateByPartialCompositeKeys(stub shim.ChaincodeStubInterface, objectType string, keys []string) (results [][]byte, err error)
- func GetStateByPartialCompositeKeys2(stub shim.ChaincodeStubInterface, objectType string, keys []string) (results [][]byte, err error)
- func WriteLedger(obj interface{}, stub shim.ChaincodeStubInterface, objectType string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelLedger ¶
func DelLedger(stub shim.ChaincodeStubInterface, objectType string, keys []string) error
DelLedger 删除账本
func GetStateByPartialCompositeKeys ¶
func GetStateByPartialCompositeKeys(stub shim.ChaincodeStubInterface, objectType string, keys []string) (results [][]byte, err error)
GetStateByPartialCompositeKeys 根据复合主键查询数据(适合获取全部,多个,单个数据) 将keys拆分查询
func GetStateByPartialCompositeKeys2 ¶
func GetStateByPartialCompositeKeys2(stub shim.ChaincodeStubInterface, objectType string, keys []string) (results [][]byte, err error)
GetStateByPartialCompositeKeys2 根据复合主键查询数据(适合获取全部或指定的数据)
func WriteLedger ¶
func WriteLedger(obj interface{}, stub shim.ChaincodeStubInterface, objectType string, keys []string) error
WriteLedger 写入账本
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.