Versions in this module Expand all Collapse all v1 v1.0.2 Jun 30, 2021 v1.0.1 Jun 11, 2021 Changes in this version + type TarFileEntry struct + Body string + Name string v1.0.0 Apr 11, 2021 Changes in this version + const DefaultChannelName + 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 + type AkcQueryIterator struct + func FromResultsIterator(rit statedb.ResultsIterator) (*AkcQueryIterator, error) + func (it *AkcQueryIterator) Close() error + func (it *AkcQueryIterator) HasNext() bool + func (it *AkcQueryIterator) Length() int + func (it *AkcQueryIterator) Next() (*queryresult.KV, error) + type CouchDBHandler struct + func NewCouchDBHandler(isDrop bool, ccName string) (*CouchDBHandler, error) + func (handler *CouchDBHandler) ProcessIndexesForChaincodeDeploy(indexFileName string, path string) error + func (handler *CouchDBHandler) QueryDocument(query string) (statedb.ResultsIterator, error) + func (handler *CouchDBHandler) QueryDocumentByRange(startKey, endKey string) (statedb.ResultsIterator, error) + func (handler *CouchDBHandler) QueryDocumentWithPagination(query string, limit int32, bookmark string) (statedb.ResultsIterator, error) + func (handler *CouchDBHandler) ReadDocument(id string) ([]byte, error) + func (handler *CouchDBHandler) SaveDocument(key string, value []byte) error + type MockStubExtend struct + CouchDB bool + DbHandler *CouchDBHandler + func NewMockStubExtend(stub *shimtest.MockStub, cc shim.Chaincode, configPath string) *MockStubExtend + func (stub *MockStubExtend) GetFunctionAndParameters() (function string, params []string) + func (stub *MockStubExtend) GetQueryResult(query string) (shim.StateQueryIteratorInterface, error) + func (stub *MockStubExtend) GetQueryResultWithPagination(query string, pageSize int32, bookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error) + func (stub *MockStubExtend) GetState(key string) ([]byte, error) + func (stub *MockStubExtend) GetStateByPartialCompositeKey(objectType string, attributes []string) (shim.StateQueryIteratorInterface, error) + func (stub *MockStubExtend) GetStateOriginal(key string) ([]byte, 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)