MCPcopy
hub / github.com/hyperledger/fabric / Query

Interface Query

core/cclifecycle/lifecycle.go:66–72  ·  view source on GitHub ↗

go:generate mockery -dir . -name Query -case underscore -output mocks/ Query queries the state

Source from the content-addressed store, hash-verified

64
65// Query queries the state
66type Query interface {
67 // GetState gets the value for given namespace and key. For a chaincode, the namespace corresponds to the chaincodeId
68 GetState(namespace string, key string) ([]byte, error)
69
70 // Done releases resources occupied by the QueryExecutor
71 Done()
72}
73
74//go:generate mockery -dir . -name QueryCreator -case underscore -output mocks/
75

Callers 16

DeployedChaincodesFunction · 0.65
retrieveChannelConfigFunction · 0.65
ValidationInfoMethod · 0.65
ChaincodeInfoMethod · 0.65
fetchCollConfigPkgFunction · 0.65
initializeMethod · 0.65
TestNewQueryFunction · 0.95
ShutdownMethod · 0.65
ValidateMethod · 0.65

Implementers 14

QueryExecutorcore/committer/txvalidator/mocks/query
QueryExecutorcore/committer/txvalidator/v20/mocks/q
mockQueryExecutorcore/committer/txvalidator/v14/validat
Querycore/cclifecycle/mocks/query.go
QueryExecutorcore/scc/lscc/mock/query_executor.go
TxSimulatorcore/chaincode/mock/tx_simulator.go
QueryExecutorcore/common/privdata/mock/query_execut
TxSimulatorcore/ledger/kvledger/txmgmt/validation
queryExecutorcore/ledger/kvledger/txmgmt/txmgr/quer
QueryExecutorcore/ledger/mock/query_executor.go
TxSimulatorcore/ledger/mock/tx_simulator.go
MockTxSimcore/endorser/mocks/txsim.go

Calls

no outgoing calls

Tested by

no test coverage detected