queryutil

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QECombiner

type QECombiner struct {
	QueryExecuters []QueryExecuter
}

func (*QECombiner) GetPrivateDataHash

func (c *QECombiner) GetPrivateDataHash(namespace, collection, key string) ([]byte, error)

func (*QECombiner) GetState

func (c *QECombiner) GetState(namespace string, key string) ([]byte, error)

func (*QECombiner) GetStateRangeScanIterator

func (c *QECombiner) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (commonledger.ResultsIterator, error)

type QueryExecuter

type QueryExecuter interface {
	GetState(namespace, key string) (*statedb.VersionedValue, error)
	GetStateRangeScanIterator(namespace, startKey, endKey string) (statedb.ResultsIterator, error)
	GetPrivateDataHash(namespace, collection, key string) (*statedb.VersionedValue, error)
}

type UpdateBatchBackedQueryExecuter

type UpdateBatchBackedQueryExecuter struct {
	UpdateBatch      *statedb.UpdateBatch
	HashUpdatesBatch *privacyenabledstate.HashedUpdateBatch
}

func (*UpdateBatchBackedQueryExecuter) GetPrivateDataHash

func (qe *UpdateBatchBackedQueryExecuter) GetPrivateDataHash(ns, coll, key string) (*statedb.VersionedValue, error)

func (*UpdateBatchBackedQueryExecuter) GetState

func (*UpdateBatchBackedQueryExecuter) GetStateRangeScanIterator

func (qe *UpdateBatchBackedQueryExecuter) GetStateRangeScanIterator(namespace, startKey, endKey string) (statedb.ResultsIterator, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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