Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Retriever ¶
type Retriever interface {
// GetTransientData gets the value for the given transient data item
GetTransientData(ctxt context.Context, key *storeapi.Key) (*storeapi.ExpiringValue, error)
// GetTransientDataMultipleKeys gets the values for the multiple transient data items in a single call
GetTransientDataMultipleKeys(ctxt context.Context, key *storeapi.MultiKey) (storeapi.ExpiringValues, error)
}
Retriever retrieves transient data
type Store ¶
type Store interface {
// Persist stores the private write set of a transaction.
Persist(txID string, privateSimulationResultsWithConfig *proto.TxPvtReadWriteSetWithConfigInfo) error
// GetTransientData gets the value for the given transient data item
GetTransientData(key *storeapi.Key) (*storeapi.ExpiringValue, error)
// GetTransientDataMultipleKeys gets the values for the multiple transient data items in a single call
GetTransientDataMultipleKeys(key *storeapi.MultiKey) (storeapi.ExpiringValues, error)
// Close closes the store
Close()
}
Store manages the storage of transient data.
type StoreProvider ¶
type StoreProvider interface {
// OpenStore creates a handle to the transient data store for the given ledger ID
OpenStore(ledgerid string) (Store, error)
// Close cleans up the provider
Close()
}
StoreProvider is an interface to open/close a provider
Click to show internal directories.
Click to hide internal directories.