Versions in this module Expand all Collapse all v0 v0.1.0 Jan 18, 2019 Changes in this version + type MockChannelClient struct + ExecuteStub func(channel.Request, ...channel.RequestOption) (channel.Response, error) + QueryStub func(channel.Request, ...channel.RequestOption) (channel.Response, error) + func (fake *MockChannelClient) Execute(arg1 channel.Request, arg2 ...channel.RequestOption) (channel.Response, error) + func (fake *MockChannelClient) ExecuteArgsForCall(i int) (channel.Request, []channel.RequestOption) + func (fake *MockChannelClient) ExecuteCallCount() int + func (fake *MockChannelClient) ExecuteCalls(stub func(channel.Request, ...channel.RequestOption) (channel.Response, error)) + func (fake *MockChannelClient) ExecuteReturns(result1 channel.Response, result2 error) + func (fake *MockChannelClient) ExecuteReturnsOnCall(i int, result1 channel.Response, result2 error) + func (fake *MockChannelClient) Invocations() map[string][][]interface{} + func (fake *MockChannelClient) Query(arg1 channel.Request, arg2 ...channel.RequestOption) (channel.Response, error) + func (fake *MockChannelClient) QueryArgsForCall(i int) (channel.Request, []channel.RequestOption) + func (fake *MockChannelClient) QueryCallCount() int + func (fake *MockChannelClient) QueryCalls(stub func(channel.Request, ...channel.RequestOption) (channel.Response, error)) + func (fake *MockChannelClient) QueryReturns(result1 channel.Response, result2 error) + func (fake *MockChannelClient) QueryReturnsOnCall(i int, result1 channel.Response, result2 error) + type MockEthService struct + AccountsStub func(*http.Request, *string, *[]string) error + CallStub func(*http.Request, *fabproxy.EthArgs, *string) error + EstimateGasStub func(*http.Request, *fabproxy.EthArgs, *string) error + GetBalanceStub func(*http.Request, *[]string, *string) error + GetBlockByNumberStub func(*http.Request, *[]interface{}, *fabproxy.Block) error + GetCodeStub func(*http.Request, *string, *string) error + GetTransactionByHashStub func(*http.Request, *string, *fabproxy.Transaction) error + GetTransactionReceiptStub func(*http.Request, *string, *fabproxy.TxReceipt) error + SendTransactionStub func(*http.Request, *fabproxy.EthArgs, *string) error + func (fake *MockEthService) Accounts(arg1 *http.Request, arg2 *string, arg3 *[]string) error + func (fake *MockEthService) AccountsArgsForCall(i int) (*http.Request, *string, *[]string) + func (fake *MockEthService) AccountsCallCount() int + func (fake *MockEthService) AccountsCalls(stub func(*http.Request, *string, *[]string) error) + func (fake *MockEthService) AccountsReturns(result1 error) + func (fake *MockEthService) AccountsReturnsOnCall(i int, result1 error) + func (fake *MockEthService) Call(arg1 *http.Request, arg2 *fabproxy.EthArgs, arg3 *string) error + func (fake *MockEthService) CallArgsForCall(i int) (*http.Request, *fabproxy.EthArgs, *string) + func (fake *MockEthService) CallCallCount() int + func (fake *MockEthService) CallCalls(stub func(*http.Request, *fabproxy.EthArgs, *string) error) + func (fake *MockEthService) CallReturns(result1 error) + func (fake *MockEthService) CallReturnsOnCall(i int, result1 error) + func (fake *MockEthService) EstimateGas(arg1 *http.Request, arg2 *fabproxy.EthArgs, arg3 *string) error + func (fake *MockEthService) EstimateGasArgsForCall(i int) (*http.Request, *fabproxy.EthArgs, *string) + func (fake *MockEthService) EstimateGasCallCount() int + func (fake *MockEthService) EstimateGasCalls(stub func(*http.Request, *fabproxy.EthArgs, *string) error) + func (fake *MockEthService) EstimateGasReturns(result1 error) + func (fake *MockEthService) EstimateGasReturnsOnCall(i int, result1 error) + func (fake *MockEthService) GetBalance(arg1 *http.Request, arg2 *[]string, arg3 *string) error + func (fake *MockEthService) GetBalanceArgsForCall(i int) (*http.Request, *[]string, *string) + func (fake *MockEthService) GetBalanceCallCount() int + func (fake *MockEthService) GetBalanceCalls(stub func(*http.Request, *[]string, *string) error) + func (fake *MockEthService) GetBalanceReturns(result1 error) + func (fake *MockEthService) GetBalanceReturnsOnCall(i int, result1 error) + func (fake *MockEthService) GetBlockByNumber(arg1 *http.Request, arg2 *[]interface{}, arg3 *fabproxy.Block) error + func (fake *MockEthService) GetBlockByNumberArgsForCall(i int) (*http.Request, *[]interface{}, *fabproxy.Block) + func (fake *MockEthService) GetBlockByNumberCallCount() int + func (fake *MockEthService) GetBlockByNumberCalls(stub func(*http.Request, *[]interface{}, *fabproxy.Block) error) + func (fake *MockEthService) GetBlockByNumberReturns(result1 error) + func (fake *MockEthService) GetBlockByNumberReturnsOnCall(i int, result1 error) + func (fake *MockEthService) GetCode(arg1 *http.Request, arg2 *string, arg3 *string) error + func (fake *MockEthService) GetCodeArgsForCall(i int) (*http.Request, *string, *string) + func (fake *MockEthService) GetCodeCallCount() int + func (fake *MockEthService) GetCodeCalls(stub func(*http.Request, *string, *string) error) + func (fake *MockEthService) GetCodeReturns(result1 error) + func (fake *MockEthService) GetCodeReturnsOnCall(i int, result1 error) + func (fake *MockEthService) GetTransactionByHash(arg1 *http.Request, arg2 *string, arg3 *fabproxy.Transaction) error + func (fake *MockEthService) GetTransactionByHashArgsForCall(i int) (*http.Request, *string, *fabproxy.Transaction) + func (fake *MockEthService) GetTransactionByHashCallCount() int + func (fake *MockEthService) GetTransactionByHashCalls(stub func(*http.Request, *string, *fabproxy.Transaction) error) + func (fake *MockEthService) GetTransactionByHashReturns(result1 error) + func (fake *MockEthService) GetTransactionByHashReturnsOnCall(i int, result1 error) + func (fake *MockEthService) GetTransactionReceipt(arg1 *http.Request, arg2 *string, arg3 *fabproxy.TxReceipt) error + func (fake *MockEthService) GetTransactionReceiptArgsForCall(i int) (*http.Request, *string, *fabproxy.TxReceipt) + func (fake *MockEthService) GetTransactionReceiptCallCount() int + func (fake *MockEthService) GetTransactionReceiptCalls(stub func(*http.Request, *string, *fabproxy.TxReceipt) error) + func (fake *MockEthService) GetTransactionReceiptReturns(result1 error) + func (fake *MockEthService) GetTransactionReceiptReturnsOnCall(i int, result1 error) + func (fake *MockEthService) Invocations() map[string][][]interface{} + func (fake *MockEthService) SendTransaction(arg1 *http.Request, arg2 *fabproxy.EthArgs, arg3 *string) error + func (fake *MockEthService) SendTransactionArgsForCall(i int) (*http.Request, *fabproxy.EthArgs, *string) + func (fake *MockEthService) SendTransactionCallCount() int + func (fake *MockEthService) SendTransactionCalls(stub func(*http.Request, *fabproxy.EthArgs, *string) error) + func (fake *MockEthService) SendTransactionReturns(result1 error) + func (fake *MockEthService) SendTransactionReturnsOnCall(i int, result1 error) + type MockLedgerClient struct + QueryBlockByTxIDStub func(fab.TransactionID, ...ledger.RequestOption) (*common.Block, error) + QueryBlockStub func(uint64, ...ledger.RequestOption) (*common.Block, error) + QueryInfoStub func(...ledger.RequestOption) (*fab.BlockchainInfoResponse, error) + QueryTransactionStub func(fab.TransactionID, ...ledger.RequestOption) (*peer.ProcessedTransaction, error) + func (fake *MockLedgerClient) Invocations() map[string][][]interface{} + func (fake *MockLedgerClient) QueryBlock(arg1 uint64, arg2 ...ledger.RequestOption) (*common.Block, error) + func (fake *MockLedgerClient) QueryBlockArgsForCall(i int) (uint64, []ledger.RequestOption) + func (fake *MockLedgerClient) QueryBlockByTxID(arg1 fab.TransactionID, arg2 ...ledger.RequestOption) (*common.Block, error) + func (fake *MockLedgerClient) QueryBlockByTxIDArgsForCall(i int) (fab.TransactionID, []ledger.RequestOption) + func (fake *MockLedgerClient) QueryBlockByTxIDCallCount() int + func (fake *MockLedgerClient) QueryBlockByTxIDCalls(stub func(fab.TransactionID, ...ledger.RequestOption) (*common.Block, error)) + func (fake *MockLedgerClient) QueryBlockByTxIDReturns(result1 *common.Block, result2 error) + func (fake *MockLedgerClient) QueryBlockByTxIDReturnsOnCall(i int, result1 *common.Block, result2 error) + func (fake *MockLedgerClient) QueryBlockCallCount() int + func (fake *MockLedgerClient) QueryBlockCalls(stub func(uint64, ...ledger.RequestOption) (*common.Block, error)) + func (fake *MockLedgerClient) QueryBlockReturns(result1 *common.Block, result2 error) + func (fake *MockLedgerClient) QueryBlockReturnsOnCall(i int, result1 *common.Block, result2 error) + func (fake *MockLedgerClient) QueryInfo(arg1 ...ledger.RequestOption) (*fab.BlockchainInfoResponse, error) + func (fake *MockLedgerClient) QueryInfoArgsForCall(i int) []ledger.RequestOption + func (fake *MockLedgerClient) QueryInfoCallCount() int + func (fake *MockLedgerClient) QueryInfoCalls(stub func(...ledger.RequestOption) (*fab.BlockchainInfoResponse, error)) + func (fake *MockLedgerClient) QueryInfoReturns(result1 *fab.BlockchainInfoResponse, result2 error) + func (fake *MockLedgerClient) QueryInfoReturnsOnCall(i int, result1 *fab.BlockchainInfoResponse, result2 error) + func (fake *MockLedgerClient) QueryTransaction(arg1 fab.TransactionID, arg2 ...ledger.RequestOption) (*peer.ProcessedTransaction, error) + func (fake *MockLedgerClient) QueryTransactionArgsForCall(i int) (fab.TransactionID, []ledger.RequestOption) + func (fake *MockLedgerClient) QueryTransactionCallCount() int + func (fake *MockLedgerClient) QueryTransactionCalls(...) + func (fake *MockLedgerClient) QueryTransactionReturns(result1 *peer.ProcessedTransaction, result2 error) + func (fake *MockLedgerClient) QueryTransactionReturnsOnCall(i int, result1 *peer.ProcessedTransaction, result2 error)