Versions in this module Expand all Collapse all v1 v1.4.6 Feb 25, 2020 Changes in this version + type LedgerManager struct + GetLedgerReaderStub func(channel string) (ledger.LedgerReader, error) + func (fake *LedgerManager) GetLedgerReader(channel string) (ledger.LedgerReader, error) + func (fake *LedgerManager) GetLedgerReaderArgsForCall(i int) string + func (fake *LedgerManager) GetLedgerReaderCallCount() int + func (fake *LedgerManager) GetLedgerReaderReturns(result1 ledger.LedgerReader, result2 error) + func (fake *LedgerManager) GetLedgerReaderReturnsOnCall(i int, result1 ledger.LedgerReader, result2 error) + func (fake *LedgerManager) Invocations() map[string][][]interface{} + type LedgerReader struct + DoneStub func() + GetStateRangeScanIteratorStub func(namespace string, startKey string, endKey string) (ledgercommon.ResultsIterator, error) + GetStateStub func(namespace string, key string) ([]byte, error) + func (fake *LedgerReader) Done() + func (fake *LedgerReader) DoneCallCount() int + func (fake *LedgerReader) GetState(namespace string, key string) ([]byte, error) + func (fake *LedgerReader) GetStateArgsForCall(i int) (string, string) + func (fake *LedgerReader) GetStateCallCount() int + func (fake *LedgerReader) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (ledgercommon.ResultsIterator, error) + func (fake *LedgerReader) GetStateRangeScanIteratorArgsForCall(i int) (string, string, string) + func (fake *LedgerReader) GetStateRangeScanIteratorCallCount() int + func (fake *LedgerReader) GetStateRangeScanIteratorReturns(result1 ledgercommon.ResultsIterator, result2 error) + func (fake *LedgerReader) GetStateRangeScanIteratorReturnsOnCall(i int, result1 ledgercommon.ResultsIterator, result2 error) + func (fake *LedgerReader) GetStateReturns(result1 []byte, result2 error) + func (fake *LedgerReader) GetStateReturnsOnCall(i int, result1 []byte, result2 error) + func (fake *LedgerReader) Invocations() map[string][][]interface{} + type LedgerWriter struct + DoneStub func() + GetStateRangeScanIteratorStub func(namespace string, startKey string, endKey string) (ledgercommon.ResultsIterator, error) + GetStateStub func(namespace string, key string) ([]byte, error) + SetStateStub func(namespace string, key string, value []byte) error + func (fake *LedgerWriter) Done() + func (fake *LedgerWriter) DoneCallCount() int + func (fake *LedgerWriter) GetState(namespace string, key string) ([]byte, error) + func (fake *LedgerWriter) GetStateArgsForCall(i int) (string, string) + func (fake *LedgerWriter) GetStateCallCount() int + func (fake *LedgerWriter) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (ledgercommon.ResultsIterator, error) + func (fake *LedgerWriter) GetStateRangeScanIteratorArgsForCall(i int) (string, string, string) + func (fake *LedgerWriter) GetStateRangeScanIteratorCallCount() int + func (fake *LedgerWriter) GetStateRangeScanIteratorReturns(result1 ledgercommon.ResultsIterator, result2 error) + func (fake *LedgerWriter) GetStateRangeScanIteratorReturnsOnCall(i int, result1 ledgercommon.ResultsIterator, result2 error) + func (fake *LedgerWriter) GetStateReturns(result1 []byte, result2 error) + func (fake *LedgerWriter) GetStateReturnsOnCall(i int, result1 []byte, result2 error) + func (fake *LedgerWriter) Invocations() map[string][][]interface{} + func (fake *LedgerWriter) SetState(namespace string, key string, value []byte) error + func (fake *LedgerWriter) SetStateArgsForCall(i int) (string, string, []byte) + func (fake *LedgerWriter) SetStateCallCount() int + func (fake *LedgerWriter) SetStateReturns(result1 error) + func (fake *LedgerWriter) SetStateReturnsOnCall(i int, result1 error) + type ResultsIterator struct + CloseStub func() + NextStub func() (ledgercommon.QueryResult, error) + func (fake *ResultsIterator) Close() + func (fake *ResultsIterator) CloseCallCount() int + func (fake *ResultsIterator) Invocations() map[string][][]interface{} + func (fake *ResultsIterator) Next() (ledgercommon.QueryResult, error) + func (fake *ResultsIterator) NextCallCount() int + func (fake *ResultsIterator) NextReturns(result1 ledgercommon.QueryResult, result2 error) + func (fake *ResultsIterator) NextReturnsOnCall(i int, result1 ledgercommon.QueryResult, result2 error)