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) OpenStore ¶
func (c *PvtDataProvider) OpenStore(ledgerID string) (xstorageapi.PrivateDataStore, error)
OpenStore creates a pvt data store instance for the given ledger ID
type StoreEnv ¶
type StoreEnv struct { TestStoreProvider xstorageapi.PrivateDataProvider 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, couchDBConfig *ledger.CouchDBConfig) *StoreEnv
NewTestStoreEnv construct a StoreEnv for testing
func (*StoreEnv) CloseAndReopen ¶
func (env *StoreEnv) CloseAndReopen()
CloseAndReopen closes and opens the store provider
Click to show internal directories.
Click to hide internal directories.