Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type TxMgr
- func (fake *TxMgr) Commit() error
- func (fake *TxMgr) CommitCallCount() int
- func (fake *TxMgr) CommitCalls(stub func() error)
- func (fake *TxMgr) CommitLostBlock(arg1 *ledger.BlockAndPvtData) error
- func (fake *TxMgr) CommitLostBlockArgsForCall(i int) *ledger.BlockAndPvtData
- func (fake *TxMgr) CommitLostBlockCallCount() int
- func (fake *TxMgr) CommitLostBlockCalls(stub func(*ledger.BlockAndPvtData) error)
- func (fake *TxMgr) CommitLostBlockReturns(result1 error)
- func (fake *TxMgr) CommitLostBlockReturnsOnCall(i int, result1 error)
- func (fake *TxMgr) CommitReturns(result1 error)
- func (fake *TxMgr) CommitReturnsOnCall(i int, result1 error)
- func (fake *TxMgr) GetLastSavepoint() (*version.Height, error)
- func (fake *TxMgr) GetLastSavepointCallCount() int
- func (fake *TxMgr) GetLastSavepointCalls(stub func() (*version.Height, error))
- func (fake *TxMgr) GetLastSavepointReturns(result1 *version.Height, result2 error)
- func (fake *TxMgr) GetLastSavepointReturnsOnCall(i int, result1 *version.Height, result2 error)
- func (fake *TxMgr) Invocations() map[string][][]interface{}
- func (fake *TxMgr) Name() string
- func (fake *TxMgr) NameCallCount() int
- func (fake *TxMgr) NameCalls(stub func() string)
- func (fake *TxMgr) NameReturns(result1 string)
- func (fake *TxMgr) NameReturnsOnCall(i int, result1 string)
- func (fake *TxMgr) NewQueryExecutor(arg1 string) (ledger.QueryExecutor, error)
- func (fake *TxMgr) NewQueryExecutorArgsForCall(i int) string
- func (fake *TxMgr) NewQueryExecutorCallCount() int
- func (fake *TxMgr) NewQueryExecutorCalls(stub func(string) (ledger.QueryExecutor, error))
- func (fake *TxMgr) NewQueryExecutorReturns(result1 ledger.QueryExecutor, result2 error)
- func (fake *TxMgr) NewQueryExecutorReturnsOnCall(i int, result1 ledger.QueryExecutor, result2 error)
- func (fake *TxMgr) NewTxSimulator(arg1 string) (ledger.TxSimulator, error)
- func (fake *TxMgr) NewTxSimulatorArgsForCall(i int) string
- func (fake *TxMgr) NewTxSimulatorCallCount() int
- func (fake *TxMgr) NewTxSimulatorCalls(stub func(string) (ledger.TxSimulator, error))
- func (fake *TxMgr) NewTxSimulatorReturns(result1 ledger.TxSimulator, result2 error)
- func (fake *TxMgr) NewTxSimulatorReturnsOnCall(i int, result1 ledger.TxSimulator, result2 error)
- func (fake *TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocks(arg1 map[uint64][]*ledger.TxPvtData) error
- func (fake *TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksArgsForCall(i int) map[uint64][]*ledger.TxPvtData
- func (fake *TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksCallCount() int
- func (fake *TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksCalls(stub func(map[uint64][]*ledger.TxPvtData) error)
- func (fake *TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksReturns(result1 error)
- func (fake *TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksReturnsOnCall(i int, result1 error)
- func (fake *TxMgr) Rollback()
- func (fake *TxMgr) RollbackCallCount() int
- func (fake *TxMgr) RollbackCalls(stub func())
- func (fake *TxMgr) ShouldRecover(arg1 uint64) (bool, uint64, error)
- func (fake *TxMgr) ShouldRecoverArgsForCall(i int) uint64
- func (fake *TxMgr) ShouldRecoverCallCount() int
- func (fake *TxMgr) ShouldRecoverCalls(stub func(uint64) (bool, uint64, error))
- func (fake *TxMgr) ShouldRecoverReturns(result1 bool, result2 uint64, result3 error)
- func (fake *TxMgr) ShouldRecoverReturnsOnCall(i int, result1 bool, result2 uint64, result3 error)
- func (fake *TxMgr) Shutdown()
- func (fake *TxMgr) ShutdownCallCount() int
- func (fake *TxMgr) ShutdownCalls(stub func())
- func (fake *TxMgr) ValidateAndPrepare(arg1 *ledger.BlockAndPvtData, arg2 bool) ([]*txmgr.TxStatInfo, []byte, error)
- func (fake *TxMgr) ValidateAndPrepareArgsForCall(i int) (*ledger.BlockAndPvtData, bool)
- func (fake *TxMgr) ValidateAndPrepareCallCount() int
- func (fake *TxMgr) ValidateAndPrepareCalls(stub func(*ledger.BlockAndPvtData, bool) ([]*txmgr.TxStatInfo, []byte, error))
- func (fake *TxMgr) ValidateAndPrepareReturns(result1 []*txmgr.TxStatInfo, result2 []byte, result3 error)
- func (fake *TxMgr) ValidateAndPrepareReturnsOnCall(i int, result1 []*txmgr.TxStatInfo, result2 []byte, result3 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TxMgr ¶
type TxMgr struct { CommitStub func() error CommitLostBlockStub func(*ledger.BlockAndPvtData) error GetLastSavepointStub func() (*version.Height, error) NameStub func() string NewQueryExecutorStub func(string) (ledger.QueryExecutor, error) NewTxSimulatorStub func(string) (ledger.TxSimulator, error) RemoveStaleAndCommitPvtDataOfOldBlocksStub func(map[uint64][]*ledger.TxPvtData) error RollbackStub func() ShouldRecoverStub func(uint64) (bool, uint64, error) ShutdownStub func() ValidateAndPrepareStub func(*ledger.BlockAndPvtData, bool) ([]*txmgr.TxStatInfo, []byte, error) // contains filtered or unexported fields }
func (*TxMgr) CommitLostBlock ¶
func (fake *TxMgr) CommitLostBlock(arg1 *ledger.BlockAndPvtData) error
func (*TxMgr) CommitLostBlockArgsForCall ¶
func (fake *TxMgr) CommitLostBlockArgsForCall(i int) *ledger.BlockAndPvtData
func (*TxMgr) CommitLostBlockCalls ¶
func (fake *TxMgr) CommitLostBlockCalls(stub func(*ledger.BlockAndPvtData) error)
func (*TxMgr) CommitLostBlockReturnsOnCall ¶
func (*TxMgr) GetLastSavepointCalls ¶
func (*TxMgr) GetLastSavepointReturns ¶
func (*TxMgr) GetLastSavepointReturnsOnCall ¶
func (*TxMgr) NewQueryExecutor ¶
func (fake *TxMgr) NewQueryExecutor(arg1 string) (ledger.QueryExecutor, error)
func (*TxMgr) NewQueryExecutorArgsForCall ¶
func (*TxMgr) NewQueryExecutorCalls ¶
func (fake *TxMgr) NewQueryExecutorCalls(stub func(string) (ledger.QueryExecutor, error))
func (*TxMgr) NewQueryExecutorReturns ¶
func (fake *TxMgr) NewQueryExecutorReturns(result1 ledger.QueryExecutor, result2 error)
func (*TxMgr) NewQueryExecutorReturnsOnCall ¶
func (fake *TxMgr) NewQueryExecutorReturnsOnCall(i int, result1 ledger.QueryExecutor, result2 error)
func (*TxMgr) NewTxSimulator ¶
func (fake *TxMgr) NewTxSimulator(arg1 string) (ledger.TxSimulator, error)
func (*TxMgr) NewTxSimulatorArgsForCall ¶
func (*TxMgr) NewTxSimulatorCalls ¶
func (fake *TxMgr) NewTxSimulatorCalls(stub func(string) (ledger.TxSimulator, error))
func (*TxMgr) NewTxSimulatorReturns ¶
func (fake *TxMgr) NewTxSimulatorReturns(result1 ledger.TxSimulator, result2 error)
func (*TxMgr) NewTxSimulatorReturnsOnCall ¶
func (fake *TxMgr) NewTxSimulatorReturnsOnCall(i int, result1 ledger.TxSimulator, result2 error)
func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocks ¶
func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksArgsForCall ¶
func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksCallCount ¶
func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksCalls ¶
func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksReturns ¶
func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksReturnsOnCall ¶
func (*TxMgr) ShouldRecoverCalls ¶
func (*TxMgr) ShouldRecoverReturns ¶
func (*TxMgr) ShouldRecoverReturnsOnCall ¶
func (*TxMgr) ValidateAndPrepare ¶
func (fake *TxMgr) ValidateAndPrepare(arg1 *ledger.BlockAndPvtData, arg2 bool) ([]*txmgr.TxStatInfo, []byte, error)
func (*TxMgr) ValidateAndPrepareArgsForCall ¶
func (fake *TxMgr) ValidateAndPrepareArgsForCall(i int) (*ledger.BlockAndPvtData, bool)
func (*TxMgr) ValidateAndPrepareCalls ¶
func (fake *TxMgr) ValidateAndPrepareCalls(stub func(*ledger.BlockAndPvtData, bool) ([]*txmgr.TxStatInfo, []byte, error))
Click to show internal directories.
Click to hide internal directories.