cachedpvtdatastore

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider added in v0.1.4

type Provider struct {
}

Provider creates in-memory private data stores

func NewProvider

func NewProvider() *Provider

NewProvider instantiates a private data storage Provider backed by cache

func (*Provider) Create added in v0.1.4

func (p *Provider) Create(ledgerID string, lastCommittedBlockNum uint64) common.StoreExt

Create creates a new cache store

type StoreEnv

type StoreEnv struct {
	TestStoreProvider *Provider
	TestStore         xstorageapi.PrivateDataStore
	// contains filtered or unexported fields
}

StoreEnv provides the store env for testing

func NewTestStoreEnv

func NewTestStoreEnv(t *testing.T, ledgerid string, btlPolicy pvtdatapolicy.BTLPolicy) *StoreEnv

NewTestStoreEnv construct a StoreEnv for testing

func (*StoreEnv) CloseAndReopen

func (env *StoreEnv) CloseAndReopen()

CloseAndReopen closes and opens the store Provider

Jump to

Keyboard shortcuts

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