Documentation ¶
Index ¶
- func NewOffLedgerProvider(identifierProvider collcommon.IdentifierProvider, ...) olapi.StoreProvider
- type StoreProvider
- func (sp *StoreProvider) Close()
- func (sp *StoreProvider) Initialize(tDataProvider tdapi.StoreProvider, olProvider olapi.StoreProvider) *StoreProvider
- func (sp *StoreProvider) OpenStore(channelID string) (storeapi.Store, error)
- func (sp *StoreProvider) StoreForChannel(channelID string) storeapi.Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOffLedgerProvider ¶ added in v0.1.1
func NewOffLedgerProvider(identifierProvider collcommon.IdentifierProvider, idDProvider collcommon.IdentityDeserializerProvider, collConfigProvider collcommon.CollectionConfigProvider) olapi.StoreProvider
NewOffLedgerProvider creates a new off-ledger store provider that supports DCAS
Types ¶
type StoreProvider ¶
StoreProvider is a store provider that creates delegating stores. A delegating store delegates requests to collection-specific store. For example, transient data store, Off-ledger store, etc.
func (*StoreProvider) Initialize ¶ added in v0.1.1
func (sp *StoreProvider) Initialize(tDataProvider tdapi.StoreProvider, olProvider olapi.StoreProvider) *StoreProvider
Initialize is called at startup by the resource manager
func (*StoreProvider) OpenStore ¶
func (sp *StoreProvider) OpenStore(channelID string) (storeapi.Store, error)
OpenStore opens the store for the given channel
func (*StoreProvider) StoreForChannel ¶
func (sp *StoreProvider) StoreForChannel(channelID string) storeapi.Store
StoreForChannel returns the store for the given channel
Click to show internal directories.
Click to hide internal directories.