statedb

package
v0.0.0-...-bfcd41d Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

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