Documentation
¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type BlockPublisher
- func (m *BlockPublisher) AddCCEventHandler(handler api.ChaincodeEventHandler)
- func (m *BlockPublisher) AddCCUpgradeHandler(handler api.ChaincodeUpgradeHandler)
- func (m *BlockPublisher) AddCollHashReadHandler(handler api.CollHashReadHandler)
- func (m *BlockPublisher) AddCollHashWriteHandler(handler api.CollHashWriteHandler)
- func (m *BlockPublisher) AddConfigUpdateHandler(handler api.ConfigUpdateHandler)
- func (m *BlockPublisher) AddLSCCWriteHandler(handler api.LSCCWriteHandler)
- func (m *BlockPublisher) AddReadHandler(handler api.ReadHandler)
- func (m *BlockPublisher) AddWriteHandler(handler api.WriteHandler)
- func (m *BlockPublisher) LedgerHeight() uint64
- func (m *BlockPublisher) Publish(block *cb.Block, pvtData ledger.TxPvtDataMap)
- type GossipServiceMediator
- func (fake *GossipServiceMediator) Gossip(msg *proto.GossipMessage)
- func (fake *GossipServiceMediator) GossipArgsForCall(i int) *proto.GossipMessage
- func (fake *GossipServiceMediator) GossipCallCount() int
- func (fake *GossipServiceMediator) Invocations() map[string][][]interface{}
- func (fake *GossipServiceMediator) PeersOfChannel(arg1 common2.ChannelID) []discovery.NetworkMember
- func (fake *GossipServiceMediator) PeersOfChannelArgsForCall(i int) common2.ChannelID
- func (fake *GossipServiceMediator) PeersOfChannelCallCount() int
- func (fake *GossipServiceMediator) PeersOfChannelReturns(result1 []discovery.NetworkMember)
- func (fake *GossipServiceMediator) PeersOfChannelReturnsOnCall(i int, result1 []discovery.NetworkMember)
- func (fake *GossipServiceMediator) VerifyBlock(channelID common2.ChannelID, seqNum uint64, signedBlock *common.Block) error
- func (fake *GossipServiceMediator) VerifyBlockArgsForCall(i int) (common2.ChannelID, uint64, *common.Block)
- func (fake *GossipServiceMediator) VerifyBlockCallCount() int
- func (fake *GossipServiceMediator) VerifyBlockReturns(result1 error)
- func (fake *GossipServiceMediator) VerifyBlockReturnsOnCall(i int, result1 error)
- type ValidationContextProvider
- func (fake *ValidationContextProvider) CancelBlockValidation(channelID string, blockNum uint64)
- func (fake *ValidationContextProvider) CancelBlockValidationArgsForCall(i int) (string, uint64)
- func (fake *ValidationContextProvider) CancelBlockValidationCallCount() int
- func (fake *ValidationContextProvider) Invocations() map[string][][]interface{}
- type ValidationProvider
- func (fake *ValidationProvider) Invocations() map[string][][]interface{}
- func (fake *ValidationProvider) SendValidationRequest(channelID string, req *vcommon.ValidationRequest)
- func (fake *ValidationProvider) SendValidationRequestArgsForCall(i int) (string, *vcommon.ValidationRequest)
- func (fake *ValidationProvider) SendValidationRequestCallCount() int
- func (fake *ValidationProvider) ValidatePending(channelID string, blockNum uint64)
- func (fake *ValidationProvider) ValidatePendingArgsForCall(i int) (string, uint64)
- func (fake *ValidationProvider) ValidatePendingCallCount() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockPublisher ¶
type BlockPublisher struct { }
BlockPublisher is a mock block publisher
func NewBlockPublisher ¶
func NewBlockPublisher() *BlockPublisher
NewBlockPublisher returns a new mock block publisher
func (*BlockPublisher) AddCCEventHandler ¶
func (m *BlockPublisher) AddCCEventHandler(handler api.ChaincodeEventHandler)
AddCCEventHandler adds a handler for chaincode events
func (*BlockPublisher) AddCCUpgradeHandler ¶
func (m *BlockPublisher) AddCCUpgradeHandler(handler api.ChaincodeUpgradeHandler)
AddCCUpgradeHandler adds a handler for chaincode upgrades
func (*BlockPublisher) AddCollHashReadHandler ¶
func (m *BlockPublisher) AddCollHashReadHandler(handler api.CollHashReadHandler)
AddCollHashReadHandler adds a handler for KV collection hash reads
func (*BlockPublisher) AddCollHashWriteHandler ¶
func (m *BlockPublisher) AddCollHashWriteHandler(handler api.CollHashWriteHandler)
AddCollHashWriteHandler adds a handler for KV collection hash writes
func (*BlockPublisher) AddConfigUpdateHandler ¶
func (m *BlockPublisher) AddConfigUpdateHandler(handler api.ConfigUpdateHandler)
AddConfigUpdateHandler adds a handler for config updates
func (*BlockPublisher) AddLSCCWriteHandler ¶
func (m *BlockPublisher) AddLSCCWriteHandler(handler api.LSCCWriteHandler)
AddLSCCWriteHandler adds a handler for KV writes
func (*BlockPublisher) AddReadHandler ¶
func (m *BlockPublisher) AddReadHandler(handler api.ReadHandler)
AddReadHandler adds a handler for KV reads
func (*BlockPublisher) AddWriteHandler ¶
func (m *BlockPublisher) AddWriteHandler(handler api.WriteHandler)
AddWriteHandler adds a handler for KV writes
func (*BlockPublisher) LedgerHeight ¶
func (m *BlockPublisher) LedgerHeight() uint64
LedgerHeight returns ledger height based on last block published
func (*BlockPublisher) Publish ¶
func (m *BlockPublisher) Publish(block *cb.Block, pvtData ledger.TxPvtDataMap)
Publish traverses the block and invokes all applicable handlers
type GossipServiceMediator ¶
type GossipServiceMediator struct { VerifyBlockStub func(channelID common2.ChannelID, seqNum uint64, signedBlock *common.Block) error PeersOfChannelStub func(common2.ChannelID) []discovery.NetworkMember GossipStub func(msg *proto.GossipMessage) // contains filtered or unexported fields }
func (*GossipServiceMediator) Gossip ¶
func (fake *GossipServiceMediator) Gossip(msg *proto.GossipMessage)
func (*GossipServiceMediator) GossipArgsForCall ¶
func (fake *GossipServiceMediator) GossipArgsForCall(i int) *proto.GossipMessage
func (*GossipServiceMediator) GossipCallCount ¶
func (fake *GossipServiceMediator) GossipCallCount() int
func (*GossipServiceMediator) Invocations ¶
func (fake *GossipServiceMediator) Invocations() map[string][][]interface{}
func (*GossipServiceMediator) PeersOfChannel ¶
func (fake *GossipServiceMediator) PeersOfChannel(arg1 common2.ChannelID) []discovery.NetworkMember
func (*GossipServiceMediator) PeersOfChannelArgsForCall ¶
func (fake *GossipServiceMediator) PeersOfChannelArgsForCall(i int) common2.ChannelID
func (*GossipServiceMediator) PeersOfChannelCallCount ¶
func (fake *GossipServiceMediator) PeersOfChannelCallCount() int
func (*GossipServiceMediator) PeersOfChannelReturns ¶
func (fake *GossipServiceMediator) PeersOfChannelReturns(result1 []discovery.NetworkMember)
func (*GossipServiceMediator) PeersOfChannelReturnsOnCall ¶
func (fake *GossipServiceMediator) PeersOfChannelReturnsOnCall(i int, result1 []discovery.NetworkMember)
func (*GossipServiceMediator) VerifyBlock ¶
func (*GossipServiceMediator) VerifyBlockArgsForCall ¶
func (*GossipServiceMediator) VerifyBlockCallCount ¶
func (fake *GossipServiceMediator) VerifyBlockCallCount() int
func (*GossipServiceMediator) VerifyBlockReturns ¶
func (fake *GossipServiceMediator) VerifyBlockReturns(result1 error)
func (*GossipServiceMediator) VerifyBlockReturnsOnCall ¶
func (fake *GossipServiceMediator) VerifyBlockReturnsOnCall(i int, result1 error)
type ValidationContextProvider ¶
type ValidationContextProvider struct { CancelBlockValidationStub func(channelID string, blockNum uint64) // contains filtered or unexported fields }
func (*ValidationContextProvider) CancelBlockValidation ¶
func (fake *ValidationContextProvider) CancelBlockValidation(channelID string, blockNum uint64)
func (*ValidationContextProvider) CancelBlockValidationArgsForCall ¶
func (fake *ValidationContextProvider) CancelBlockValidationArgsForCall(i int) (string, uint64)
func (*ValidationContextProvider) CancelBlockValidationCallCount ¶
func (fake *ValidationContextProvider) CancelBlockValidationCallCount() int
func (*ValidationContextProvider) Invocations ¶
func (fake *ValidationContextProvider) Invocations() map[string][][]interface{}
type ValidationProvider ¶
type ValidationProvider struct { SendValidationRequestStub func(channelID string, req *vcommon.ValidationRequest) ValidatePendingStub func(channelID string, blockNum uint64) // contains filtered or unexported fields }
func (*ValidationProvider) Invocations ¶
func (fake *ValidationProvider) Invocations() map[string][][]interface{}
func (*ValidationProvider) SendValidationRequest ¶
func (fake *ValidationProvider) SendValidationRequest(channelID string, req *vcommon.ValidationRequest)
func (*ValidationProvider) SendValidationRequestArgsForCall ¶
func (fake *ValidationProvider) SendValidationRequestArgsForCall(i int) (string, *vcommon.ValidationRequest)
func (*ValidationProvider) SendValidationRequestCallCount ¶
func (fake *ValidationProvider) SendValidationRequestCallCount() int
func (*ValidationProvider) ValidatePending ¶
func (fake *ValidationProvider) ValidatePending(channelID string, blockNum uint64)
func (*ValidationProvider) ValidatePendingArgsForCall ¶
func (fake *ValidationProvider) ValidatePendingArgsForCall(i int) (string, uint64)
func (*ValidationProvider) ValidatePendingCallCount ¶
func (fake *ValidationProvider) ValidatePendingCallCount() int