Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCCUpgradeHandler ¶
func AddCCUpgradeHandler(chainName string, handler gossipapi.ChaincodeUpgradeHandler)
AddCCUpgradeHandler adds chaincode upgrade handler to blockpublisher
func Register ¶
func Register(channelID string, db statedb.VersionedDB, qep QueryExecutorProvider)
Register registers a state database for a given channel
Types ¶
type QueryExecutorProvider ¶
type QueryExecutorProvider interface { // NewQueryExecutor returns a query executor that first acquires a commit read lock. // Done() must be called when finished using it. NewQueryExecutor() (ledger.QueryExecutor, error) // NewQueryExecutorNoLock returns a query executor that does not acquire a commit read lock. // Done() must NOT be called. NewQueryExecutorNoLock() (ledger.QueryExecutor, error) }
QueryExecutorProvider provides a query executor with and without a commit lock
Click to show internal directories.
Click to hide internal directories.