Versions in this module Expand all Collapse all v1 v1.4.4 Nov 14, 2019 Changes in this version + type MockQueryExecutor struct + State map[string]map[string][]byte + func NewMockQueryExecutor(state map[string]map[string][]byte) *MockQueryExecutor + func (m *MockQueryExecutor) Done() + func (m *MockQueryExecutor) ExecuteQuery(namespace, query string) (commonledger.ResultsIterator, error) + func (m *MockQueryExecutor) ExecuteQueryOnPrivateData(namespace, collection, query string) (commonledger.ResultsIterator, error) + func (m *MockQueryExecutor) ExecuteQueryWithMetadata(namespace, query string, metadata map[string]interface{}) (ledger.QueryResultsIterator, error) + func (m *MockQueryExecutor) GetPrivateData(namespace, collection, key string) ([]byte, error) + func (m *MockQueryExecutor) GetPrivateDataHash(namespace, collection, key string) ([]byte, error) + func (m *MockQueryExecutor) GetPrivateDataMetadata(namespace, collection, key string) (map[string][]byte, error) + func (m *MockQueryExecutor) GetPrivateDataMetadataByHash(namespace, collection string, keyhash []byte) (map[string][]byte, error) + func (m *MockQueryExecutor) GetPrivateDataMultipleKeys(namespace, collection string, keys []string) ([][]byte, error) + func (m *MockQueryExecutor) GetPrivateDataRangeScanIterator(namespace, collection, startKey, endKey string) (commonledger.ResultsIterator, error) + func (m *MockQueryExecutor) GetState(namespace string, key string) ([]byte, error) + func (m *MockQueryExecutor) GetStateMetadata(namespace, key string) (map[string][]byte, error) + func (m *MockQueryExecutor) GetStateMultipleKeys(namespace string, keys []string) ([][]byte, error) + func (m *MockQueryExecutor) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (commonledger.ResultsIterator, error) + func (m *MockQueryExecutor) GetStateRangeScanIteratorWithMetadata(namespace string, startKey, endKey string, metadata map[string]interface{}) (ledger.QueryResultsIterator, error)