Versions in this module Expand all Collapse all v1 v1.4.2 Jul 17, 2019 Changes in this version + type GetLedger struct + Stub func(string) ledger.PeerLedger + func (fake *GetLedger) ArgsForCall(i int) string + func (fake *GetLedger) CallCount() int + func (fake *GetLedger) Calls(stub func(string) ledger.PeerLedger) + func (fake *GetLedger) Invocations() map[string][][]interface{} + func (fake *GetLedger) Returns(result1 ledger.PeerLedger) + func (fake *GetLedger) ReturnsOnCall(i int, result1 ledger.PeerLedger) + func (fake *GetLedger) Spy(arg1 string) ledger.PeerLedger + type PeerLedger struct + CloseStub func() + CommitPvtDataOfOldBlocksStub func([]*ledger.BlockPvtData) ([]*ledger.PvtdataHashMismatch, error) + CommitWithPvtDataStub func(*ledger.BlockAndPvtData, *ledger.CommitOptions) error + DoesPvtDataInfoExistStub func(uint64) (bool, error) + GetBlockByHashStub func([]byte) (*common.Block, error) + GetBlockByNumberStub func(uint64) (*common.Block, error) + GetBlockByTxIDStub func(string) (*common.Block, error) + GetBlockchainInfoStub func() (*common.BlockchainInfo, error) + GetBlocksIteratorStub func(uint64) (ledgera.ResultsIterator, error) + GetConfigHistoryRetrieverStub func() (ledger.ConfigHistoryRetriever, error) + GetMissingPvtDataTrackerStub func() (ledger.MissingPvtDataTracker, error) + GetPvtDataAndBlockByNumStub func(uint64, ledger.PvtNsCollFilter) (*ledger.BlockAndPvtData, error) + GetPvtDataByNumStub func(uint64, ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error) + GetTransactionByIDStub func(string) (*peer.ProcessedTransaction, error) + GetTxValidationCodeByTxIDStub func(string) (peer.TxValidationCode, error) + NewHistoryQueryExecutorStub func() (ledger.HistoryQueryExecutor, error) + NewQueryExecutorStub func() (ledger.QueryExecutor, error) + NewTxSimulatorStub func(string) (ledger.TxSimulator, error) + PrivateDataMinBlockNumStub func() (uint64, error) + PruneStub func(ledgera.PrunePolicy) error + PurgePrivateDataStub func(uint64) error + func (fake *PeerLedger) Close() + func (fake *PeerLedger) CloseCallCount() int + func (fake *PeerLedger) CloseCalls(stub func()) + func (fake *PeerLedger) CommitPvtDataOfOldBlocks(arg1 []*ledger.BlockPvtData) ([]*ledger.PvtdataHashMismatch, error) + func (fake *PeerLedger) CommitPvtDataOfOldBlocksArgsForCall(i int) []*ledger.BlockPvtData + func (fake *PeerLedger) CommitPvtDataOfOldBlocksCallCount() int + func (fake *PeerLedger) CommitPvtDataOfOldBlocksCalls(stub func([]*ledger.BlockPvtData) ([]*ledger.PvtdataHashMismatch, error)) + func (fake *PeerLedger) CommitPvtDataOfOldBlocksReturns(result1 []*ledger.PvtdataHashMismatch, result2 error) + func (fake *PeerLedger) CommitPvtDataOfOldBlocksReturnsOnCall(i int, result1 []*ledger.PvtdataHashMismatch, result2 error) + func (fake *PeerLedger) CommitWithPvtData(arg1 *ledger.BlockAndPvtData, arg2 *ledger.CommitOptions) error + func (fake *PeerLedger) CommitWithPvtDataArgsForCall(i int) (*ledger.BlockAndPvtData, *ledger.CommitOptions) + func (fake *PeerLedger) CommitWithPvtDataCallCount() int + func (fake *PeerLedger) CommitWithPvtDataCalls(stub func(*ledger.BlockAndPvtData, *ledger.CommitOptions) error) + func (fake *PeerLedger) CommitWithPvtDataReturns(result1 error) + func (fake *PeerLedger) CommitWithPvtDataReturnsOnCall(i int, result1 error) + func (fake *PeerLedger) DoesPvtDataInfoExist(arg1 uint64) (bool, error) + func (fake *PeerLedger) DoesPvtDataInfoExistArgsForCall(i int) uint64 + func (fake *PeerLedger) DoesPvtDataInfoExistCallCount() int + func (fake *PeerLedger) DoesPvtDataInfoExistCalls(stub func(uint64) (bool, error)) + func (fake *PeerLedger) DoesPvtDataInfoExistReturns(result1 bool, result2 error) + func (fake *PeerLedger) DoesPvtDataInfoExistReturnsOnCall(i int, result1 bool, result2 error) + func (fake *PeerLedger) GetBlockByHash(arg1 []byte) (*common.Block, error) + func (fake *PeerLedger) GetBlockByHashArgsForCall(i int) []byte + func (fake *PeerLedger) GetBlockByHashCallCount() int + func (fake *PeerLedger) GetBlockByHashCalls(stub func([]byte) (*common.Block, error)) + func (fake *PeerLedger) GetBlockByHashReturns(result1 *common.Block, result2 error) + func (fake *PeerLedger) GetBlockByHashReturnsOnCall(i int, result1 *common.Block, result2 error) + func (fake *PeerLedger) GetBlockByNumber(arg1 uint64) (*common.Block, error) + func (fake *PeerLedger) GetBlockByNumberArgsForCall(i int) uint64 + func (fake *PeerLedger) GetBlockByNumberCallCount() int + func (fake *PeerLedger) GetBlockByNumberCalls(stub func(uint64) (*common.Block, error)) + func (fake *PeerLedger) GetBlockByNumberReturns(result1 *common.Block, result2 error) + func (fake *PeerLedger) GetBlockByNumberReturnsOnCall(i int, result1 *common.Block, result2 error) + func (fake *PeerLedger) GetBlockByTxID(arg1 string) (*common.Block, error) + func (fake *PeerLedger) GetBlockByTxIDArgsForCall(i int) string + func (fake *PeerLedger) GetBlockByTxIDCallCount() int + func (fake *PeerLedger) GetBlockByTxIDCalls(stub func(string) (*common.Block, error)) + func (fake *PeerLedger) GetBlockByTxIDReturns(result1 *common.Block, result2 error) + func (fake *PeerLedger) GetBlockByTxIDReturnsOnCall(i int, result1 *common.Block, result2 error) + func (fake *PeerLedger) GetBlockchainInfo() (*common.BlockchainInfo, error) + func (fake *PeerLedger) GetBlockchainInfoCallCount() int + func (fake *PeerLedger) GetBlockchainInfoCalls(stub func() (*common.BlockchainInfo, error)) + func (fake *PeerLedger) GetBlockchainInfoReturns(result1 *common.BlockchainInfo, result2 error) + func (fake *PeerLedger) GetBlockchainInfoReturnsOnCall(i int, result1 *common.BlockchainInfo, result2 error) + func (fake *PeerLedger) GetBlocksIterator(arg1 uint64) (ledgera.ResultsIterator, error) + func (fake *PeerLedger) GetBlocksIteratorArgsForCall(i int) uint64 + func (fake *PeerLedger) GetBlocksIteratorCallCount() int + func (fake *PeerLedger) GetBlocksIteratorCalls(stub func(uint64) (ledgera.ResultsIterator, error)) + func (fake *PeerLedger) GetBlocksIteratorReturns(result1 ledgera.ResultsIterator, result2 error) + func (fake *PeerLedger) GetBlocksIteratorReturnsOnCall(i int, result1 ledgera.ResultsIterator, result2 error) + func (fake *PeerLedger) GetConfigHistoryRetriever() (ledger.ConfigHistoryRetriever, error) + func (fake *PeerLedger) GetConfigHistoryRetrieverCallCount() int + func (fake *PeerLedger) GetConfigHistoryRetrieverCalls(stub func() (ledger.ConfigHistoryRetriever, error)) + func (fake *PeerLedger) GetConfigHistoryRetrieverReturns(result1 ledger.ConfigHistoryRetriever, result2 error) + func (fake *PeerLedger) GetConfigHistoryRetrieverReturnsOnCall(i int, result1 ledger.ConfigHistoryRetriever, result2 error) + func (fake *PeerLedger) GetMissingPvtDataTracker() (ledger.MissingPvtDataTracker, error) + func (fake *PeerLedger) GetMissingPvtDataTrackerCallCount() int + func (fake *PeerLedger) GetMissingPvtDataTrackerCalls(stub func() (ledger.MissingPvtDataTracker, error)) + func (fake *PeerLedger) GetMissingPvtDataTrackerReturns(result1 ledger.MissingPvtDataTracker, result2 error) + func (fake *PeerLedger) GetMissingPvtDataTrackerReturnsOnCall(i int, result1 ledger.MissingPvtDataTracker, result2 error) + func (fake *PeerLedger) GetPvtDataAndBlockByNum(arg1 uint64, arg2 ledger.PvtNsCollFilter) (*ledger.BlockAndPvtData, error) + func (fake *PeerLedger) GetPvtDataAndBlockByNumArgsForCall(i int) (uint64, ledger.PvtNsCollFilter) + func (fake *PeerLedger) GetPvtDataAndBlockByNumCallCount() int + func (fake *PeerLedger) GetPvtDataAndBlockByNumCalls(stub func(uint64, ledger.PvtNsCollFilter) (*ledger.BlockAndPvtData, error)) + func (fake *PeerLedger) GetPvtDataAndBlockByNumReturns(result1 *ledger.BlockAndPvtData, result2 error) + func (fake *PeerLedger) GetPvtDataAndBlockByNumReturnsOnCall(i int, result1 *ledger.BlockAndPvtData, result2 error) + func (fake *PeerLedger) GetPvtDataByNum(arg1 uint64, arg2 ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error) + func (fake *PeerLedger) GetPvtDataByNumArgsForCall(i int) (uint64, ledger.PvtNsCollFilter) + func (fake *PeerLedger) GetPvtDataByNumCallCount() int + func (fake *PeerLedger) GetPvtDataByNumCalls(stub func(uint64, ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error)) + func (fake *PeerLedger) GetPvtDataByNumReturns(result1 []*ledger.TxPvtData, result2 error) + func (fake *PeerLedger) GetPvtDataByNumReturnsOnCall(i int, result1 []*ledger.TxPvtData, result2 error) + func (fake *PeerLedger) GetTransactionByID(arg1 string) (*peer.ProcessedTransaction, error) + func (fake *PeerLedger) GetTransactionByIDArgsForCall(i int) string + func (fake *PeerLedger) GetTransactionByIDCallCount() int + func (fake *PeerLedger) GetTransactionByIDCalls(stub func(string) (*peer.ProcessedTransaction, error)) + func (fake *PeerLedger) GetTransactionByIDReturns(result1 *peer.ProcessedTransaction, result2 error) + func (fake *PeerLedger) GetTransactionByIDReturnsOnCall(i int, result1 *peer.ProcessedTransaction, result2 error) + func (fake *PeerLedger) GetTxValidationCodeByTxID(arg1 string) (peer.TxValidationCode, error) + func (fake *PeerLedger) GetTxValidationCodeByTxIDArgsForCall(i int) string + func (fake *PeerLedger) GetTxValidationCodeByTxIDCallCount() int + func (fake *PeerLedger) GetTxValidationCodeByTxIDCalls(stub func(string) (peer.TxValidationCode, error)) + func (fake *PeerLedger) GetTxValidationCodeByTxIDReturns(result1 peer.TxValidationCode, result2 error) + func (fake *PeerLedger) GetTxValidationCodeByTxIDReturnsOnCall(i int, result1 peer.TxValidationCode, result2 error) + func (fake *PeerLedger) Invocations() map[string][][]interface{} + func (fake *PeerLedger) NewHistoryQueryExecutor() (ledger.HistoryQueryExecutor, error) + func (fake *PeerLedger) NewHistoryQueryExecutorCallCount() int + func (fake *PeerLedger) NewHistoryQueryExecutorCalls(stub func() (ledger.HistoryQueryExecutor, error)) + func (fake *PeerLedger) NewHistoryQueryExecutorReturns(result1 ledger.HistoryQueryExecutor, result2 error) + func (fake *PeerLedger) NewHistoryQueryExecutorReturnsOnCall(i int, result1 ledger.HistoryQueryExecutor, result2 error) + func (fake *PeerLedger) NewQueryExecutor() (ledger.QueryExecutor, error) + func (fake *PeerLedger) NewQueryExecutorCallCount() int + func (fake *PeerLedger) NewQueryExecutorCalls(stub func() (ledger.QueryExecutor, error)) + func (fake *PeerLedger) NewQueryExecutorReturns(result1 ledger.QueryExecutor, result2 error) + func (fake *PeerLedger) NewQueryExecutorReturnsOnCall(i int, result1 ledger.QueryExecutor, result2 error) + func (fake *PeerLedger) NewTxSimulator(arg1 string) (ledger.TxSimulator, error) + func (fake *PeerLedger) NewTxSimulatorArgsForCall(i int) string + func (fake *PeerLedger) NewTxSimulatorCallCount() int + func (fake *PeerLedger) NewTxSimulatorCalls(stub func(string) (ledger.TxSimulator, error)) + func (fake *PeerLedger) NewTxSimulatorReturns(result1 ledger.TxSimulator, result2 error) + func (fake *PeerLedger) NewTxSimulatorReturnsOnCall(i int, result1 ledger.TxSimulator, result2 error) + func (fake *PeerLedger) PrivateDataMinBlockNum() (uint64, error) + func (fake *PeerLedger) PrivateDataMinBlockNumCallCount() int + func (fake *PeerLedger) PrivateDataMinBlockNumCalls(stub func() (uint64, error)) + func (fake *PeerLedger) PrivateDataMinBlockNumReturns(result1 uint64, result2 error) + func (fake *PeerLedger) PrivateDataMinBlockNumReturnsOnCall(i int, result1 uint64, result2 error) + func (fake *PeerLedger) Prune(arg1 ledgera.PrunePolicy) error + func (fake *PeerLedger) PruneArgsForCall(i int) ledgera.PrunePolicy + func (fake *PeerLedger) PruneCallCount() int + func (fake *PeerLedger) PruneCalls(stub func(ledgera.PrunePolicy) error) + func (fake *PeerLedger) PruneReturns(result1 error) + func (fake *PeerLedger) PruneReturnsOnCall(i int, result1 error) + func (fake *PeerLedger) PurgePrivateData(arg1 uint64) error + func (fake *PeerLedger) PurgePrivateDataArgsForCall(i int) uint64 + func (fake *PeerLedger) PurgePrivateDataCallCount() int + func (fake *PeerLedger) PurgePrivateDataCalls(stub func(uint64) error) + func (fake *PeerLedger) PurgePrivateDataReturns(result1 error) + func (fake *PeerLedger) PurgePrivateDataReturnsOnCall(i int, result1 error)