fabric: github.com/hyperledger/fabric/common/mocks/ledger Index | Files

package ledger

import "github.com/hyperledger/fabric/common/mocks/ledger"

Index

Package Files

queryexecutor.go

type MockQueryExecutor Uses

type MockQueryExecutor struct {
    // State keeps all namespaces
    State map[string]map[string][]byte
}

func NewMockQueryExecutor Uses

func NewMockQueryExecutor(state map[string]map[string][]byte) *MockQueryExecutor

func (*MockQueryExecutor) Done Uses

func (m *MockQueryExecutor) Done()

func (*MockQueryExecutor) ExecuteQuery Uses

func (m *MockQueryExecutor) ExecuteQuery(namespace, query string) (commonledger.ResultsIterator, error)

func (*MockQueryExecutor) ExecuteQueryOnPrivateData Uses

func (m *MockQueryExecutor) ExecuteQueryOnPrivateData(namespace, collection, query string) (commonledger.ResultsIterator, error)

func (*MockQueryExecutor) ExecuteQueryWithMetadata Uses

func (m *MockQueryExecutor) ExecuteQueryWithMetadata(namespace, query string, metadata map[string]interface{}) (ledger.QueryResultsIterator, error)

func (*MockQueryExecutor) GetPrivateData Uses

func (m *MockQueryExecutor) GetPrivateData(namespace, collection, key string) ([]byte, error)

func (*MockQueryExecutor) GetPrivateDataHash Uses

func (m *MockQueryExecutor) GetPrivateDataHash(namespace, collection, key string) ([]byte, error)

func (*MockQueryExecutor) GetPrivateDataMetadata Uses

func (m *MockQueryExecutor) GetPrivateDataMetadata(namespace, collection, key string) (map[string][]byte, error)

func (*MockQueryExecutor) GetPrivateDataMetadataByHash Uses

func (m *MockQueryExecutor) GetPrivateDataMetadataByHash(namespace, collection string, keyhash []byte) (map[string][]byte, error)

func (*MockQueryExecutor) GetPrivateDataMultipleKeys Uses

func (m *MockQueryExecutor) GetPrivateDataMultipleKeys(namespace, collection string, keys []string) ([][]byte, error)

func (*MockQueryExecutor) GetPrivateDataRangeScanIterator Uses

func (m *MockQueryExecutor) GetPrivateDataRangeScanIterator(namespace, collection, startKey, endKey string) (commonledger.ResultsIterator, error)

func (*MockQueryExecutor) GetState Uses

func (m *MockQueryExecutor) GetState(namespace string, key string) ([]byte, error)

func (*MockQueryExecutor) GetStateMetadata Uses

func (m *MockQueryExecutor) GetStateMetadata(namespace, key string) (map[string][]byte, error)

func (*MockQueryExecutor) GetStateMultipleKeys Uses

func (m *MockQueryExecutor) GetStateMultipleKeys(namespace string, keys []string) ([][]byte, error)

func (*MockQueryExecutor) GetStateRangeScanIterator Uses

func (m *MockQueryExecutor) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (commonledger.ResultsIterator, error)

func (*MockQueryExecutor) GetStateRangeScanIteratorWithMetadata Uses

func (m *MockQueryExecutor) GetStateRangeScanIteratorWithMetadata(namespace string, startKey, endKey string, metadata map[string]interface{}) (ledger.QueryResultsIterator, error)

Package ledger imports 3 packages (graph) and is imported by 1 packages. Updated 2019-08-13. Refresh now. Tools for package owners.