transientstore

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: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrStoreEmpty = errors.New("Transient store is empty")

ErrStoreEmpty is used to indicate that there are no entries in transient store

Functions

This section is empty.

Types

type Provider

type Provider struct {
}

Provider represents a trasientstore provider

func NewStoreProvider

func NewStoreProvider() *Provider

NewStoreProvider instantiates a transient data storage provider backed by Memory

func (*Provider) Close

func (p *Provider) Close()

Close cleans up the provider

func (*Provider) OpenStore

func (p *Provider) OpenStore(ledgerid string) (storageapi.TransientStore, error)

OpenStore creates a handle to the transient data store for the given ledger ID

type RwsetScanner

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

RwsetScanner provides an iterator for EndorserPvtSimulationResults from transientstore

func (*RwsetScanner) Close

func (scanner *RwsetScanner) Close()

Close releases resource held by the iterator

func (*RwsetScanner) Next

Next moves the iterator to the next key/value pair with configs. It returns whether the iterator is exhausted.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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