Help us shape the future of Go! Take the 2026 Go Developer Survey

ledger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

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 namepspaces
	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) (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)

Jump to

Keyboard shortcuts

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