state

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVResultsIter

type KVResultsIter struct {
	// contains filtered or unexported fields
}

KVResultsIter is a key-value results iterator

func NewKVResultsIter

func NewKVResultsIter(it statedb.ResultsIterator) *KVResultsIter

NewKVResultsIter returns a new KVResultsIter

func (*KVResultsIter) Close

func (it *KVResultsIter) Close() error

Close closes the iterator

func (*KVResultsIter) HasNext

func (it *KVResultsIter) HasNext() bool

HasNext returns true if there are more items

func (*KVResultsIter) Next

func (it *KVResultsIter) Next() (*queryresult.KV, error)

Next returns the next item

type QERetrieverProvider

type QERetrieverProvider struct {
	// contains filtered or unexported fields
}

QERetrieverProvider is a RetrieverProvider using a QueryExecutor

func NewQERetrieverProvider

func NewQERetrieverProvider(stateDB extstatedb.StateDB) *QERetrieverProvider

NewQERetrieverProvider returns a new state qeRetriever provider

func (*QERetrieverProvider) GetStateRetriever

func (p *QERetrieverProvider) GetStateRetriever() (api.StateRetriever, error)

GetStateRetriever returns the state qeRetriever

type ShimStoreProvider

type ShimStoreProvider struct {
	// contains filtered or unexported fields
}

ShimStoreProvider is a RetrieverProvider which uses the chaincode stub to store and retrieve data

func NewShimStoreProvider

func NewShimStoreProvider(stub shim.ChaincodeStubInterface) *ShimStoreProvider

NewShimStoreProvider returns a new ShimStoreProvider

func (*ShimStoreProvider) GetStateRetriever

func (p *ShimStoreProvider) GetStateRetriever() (api.StateRetriever, error)

GetStateRetriever returns the state store

func (*ShimStoreProvider) GetStore

func (p *ShimStoreProvider) GetStore() (api.StateStore, error)

GetStore returns the state store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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