pvtdatastorage

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PvtDataProvider

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

PvtDataProvider encapsulates the storage and cache providers in addition to the missing data index provider

func NewProvider

func NewProvider(conf *pvtdatastorage.PrivateDataConfig, ledgerconfig *ledger.Config) (*PvtDataProvider, error)

NewProvider creates a new PvtDataStoreProvider that combines a cache provider and a backing storage provider

func (*PvtDataProvider) Close

func (c *PvtDataProvider) Close()

Close cleans up the Provider

func (*PvtDataProvider) OpenStore

func (c *PvtDataProvider) OpenStore(ledgerID string) (pvtdatastorage.Store, error)

OpenStore creates a pvt data store instance for the given ledger ID

type StoreEnv

type StoreEnv struct {
	TestStoreProvider pvtdatastorage.Provider
	TestStore         pvtdatastorage.Store
	// contains filtered or unexported fields
}

StoreEnv provides the store env for testing

func NewTestStoreEnv

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

NewTestStoreEnv construct a StoreEnv for testing

func (*StoreEnv) Cleanup

func (env *StoreEnv) Cleanup(ledgerid string)

Cleanup env test

func (*StoreEnv) CloseAndReopen

func (env *StoreEnv) CloseAndReopen()

CloseAndReopen closes and opens the store provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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