Documentation ¶
Index ¶
- type MockQueryExecutor
- func (m *MockQueryExecutor) Done()
- func (m *MockQueryExecutor) ExecuteQuery(namespace, query string) (ledger.ResultsIterator, error)
- func (m *MockQueryExecutor) ExecuteQueryOnPrivateData(namespace, collection, query string) (ledger.ResultsIterator, error)
- func (m *MockQueryExecutor) GetPrivateData(namespace, collection, key string) ([]byte, error)
- func (m *MockQueryExecutor) GetPrivateDataMultipleKeys(namespace, collection string, keys []string) ([][]byte, error)
- func (m *MockQueryExecutor) GetPrivateDataRangeScanIterator(namespace, collection, startKey, endKey string) (ledger.ResultsIterator, error)
- func (m *MockQueryExecutor) GetState(namespace string, key string) ([]byte, error)
- func (m *MockQueryExecutor) GetStateMultipleKeys(namespace string, keys []string) ([][]byte, error)
- func (m *MockQueryExecutor) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (ledger.ResultsIterator, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockQueryExecutor ¶
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) (ledger.ResultsIterator, error)
func (*MockQueryExecutor) ExecuteQueryOnPrivateData ¶ added in v1.1.0
func (m *MockQueryExecutor) ExecuteQueryOnPrivateData(namespace, collection, query string) (ledger.ResultsIterator, error)
func (*MockQueryExecutor) GetPrivateData ¶ added in v1.1.0
func (m *MockQueryExecutor) GetPrivateData(namespace, collection, key string) ([]byte, error)
func (*MockQueryExecutor) GetPrivateDataMultipleKeys ¶ added in v1.1.0
func (m *MockQueryExecutor) GetPrivateDataMultipleKeys(namespace, collection string, keys []string) ([][]byte, error)
func (*MockQueryExecutor) GetPrivateDataRangeScanIterator ¶ added in v1.1.0
func (m *MockQueryExecutor) GetPrivateDataRangeScanIterator(namespace, collection, startKey, endKey string) (ledger.ResultsIterator, error)
func (*MockQueryExecutor) GetState ¶
func (m *MockQueryExecutor) GetState(namespace string, key 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) (ledger.ResultsIterator, error)
Click to show internal directories.
Click to hide internal directories.