Versions in this module Expand all Collapse all v1 v1.0.0 Jul 8, 2019 Changes in this version + const DefaultBaseURL + func Changeinfo(stub shim.ChaincodeStubInterface, TableModel string, row_key []string, ...) error + func CheckChaincodeFunctionCallWellFormedness(args []string, expected_arg_count int) error + func Createdata(stub shim.ChaincodeStubInterface, TableModel string, row_key []string, ...) error + func DeleteTableRow(stub shim.ChaincodeStubInterface, table_name string, row_keys []string, ...) (rowWasFound bool, err error) + func GetAllData(stub shim.ChaincodeStubInterface, data interface{}, ModelTable string) pb.Response + func GetDataByID(stub shim.ChaincodeStubInterface, DataID string, data interface{}, ...) pb.Response + func GetDataByRowKeys(stub shim.ChaincodeStubInterface, rowKeys []string, data interface{}, ...) pb.Response + func GetTableRow(stub shim.ChaincodeStubInterface, table_name string, row_keys []string, ...) (rowWasFound bool, err error) + func GetTableRows(stub shim.ChaincodeStubInterface, table_name string, row_keys []string) (chan []byte, error) + func Getalldata(stub shim.ChaincodeStubInterface, MODELTABLE string) (chan []byte, error) + func Getdatabyid(stub shim.ChaincodeStubInterface, ID string, MODELTABLE string) (interface{}, error) + func Getdatabyrowkeys(stub shim.ChaincodeStubInterface, rowKeys []string, MODELTABLE string) (interface{}, error) + func InsertTableRow(stub shim.ChaincodeStubInterface, table_name string, row_keys []string, ...) (rowWasFound bool, err error) + func InterfaceIsNilOrIsZeroOfUnderlyingType(x interface{}) bool + func MakeErrorRetval(error_message string, args ...interface{}) ([]byte, error) + func MockInitTransaction(t *testing.T, stub *MockStubExtend, args [][]byte) string + func MockInvokeTransaction(t *testing.T, stub *MockStubExtend, args [][]byte) string + func MockQueryTransaction(t *testing.T, stub *MockStubExtend, args [][]byte) string + func NewMockFilterQueryIterator(stub *MockStubExtend, keys *list.List) *mockFilterQueryIterator + type CouchDBHandler struct + CouchDatabase *couchdb.CouchDatabase + func NewCouchDBHandler(dbName string, isDrop bool) (*CouchDBHandler, error) + func (handler *CouchDBHandler) QueryDocument(query string) ([]*couchdb.QueryResult, error) + func (handler *CouchDBHandler) SaveDocument(key string, value []byte) (string, error) + func (handler *CouchDBHandler) UpdateDocument(key string, value []byte) error + type GetTableRow_FailureOption bool + const DONT_FAIL_IF_MISSING + const FAIL_IF_MISSING + type InsertTableRow_FailureOption uint8 + const DONT_FAIL_UPON_OVERWRITE + const FAIL_BEFORE_OVERWRITE + const FAIL_UNLESS_OVERWRITE + type MockStateQueryIterator struct + Closed bool + Current *list.Element + Data *map[string][]byte + type MockStubExtend struct + CouchDB bool + DbHandler *CouchDBHandler + func NewMockStubExtend(stub *MockStub, c Chaincode) *MockStubExtend + func (stub *MockStubExtend) GetFunctionAndParameters() (function string, params []string) + func (stub *MockStubExtend) GetQueryResult(query string) (StateQueryIteratorInterface, error) + func (stub *MockStubExtend) GetStringArgs() []string + func (stub *MockStubExtend) MockInit(uuid string, args [][]byte) pb.Response + func (stub *MockStubExtend) MockInvoke(uuid string, args [][]byte) pb.Response + func (stub *MockStubExtend) PutState(key string, value []byte) error + func (stub *MockStubExtend) SetCouchDBConfiguration(handler *CouchDBHandler)