ledger

package
v1.4.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockQueryExecutor

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

func NewMockQueryExecutor

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

func (*MockQueryExecutor) Done

func (m *MockQueryExecutor) Done()

func (*MockQueryExecutor) ExecuteQuery

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

func (*MockQueryExecutor) ExecuteQueryOnPrivateData

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

func (*MockQueryExecutor) ExecuteQueryWithMetadata

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

func (*MockQueryExecutor) GetPrivateData

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

func (*MockQueryExecutor) GetPrivateDataHash

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

func (*MockQueryExecutor) GetPrivateDataMetadata

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

func (*MockQueryExecutor) GetPrivateDataMetadataByHash

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

func (*MockQueryExecutor) GetPrivateDataMultipleKeys

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

func (*MockQueryExecutor) GetPrivateDataRangeScanIterator

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

func (*MockQueryExecutor) GetState

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

func (*MockQueryExecutor) GetStateMetadata

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

func (*MockQueryExecutor) GetStateMultipleKeys

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

func (*MockQueryExecutor) GetStateRangeScanIterator

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

func (*MockQueryExecutor) GetStateRangeScanIteratorWithMetadata

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL