Documentation ¶
Overview ¶
伪造者生成的代码。不要编辑。
伪造者生成的代码。不要编辑。
Index ¶
- type ChainGetter
- type Configurator
- type FakeBlockPuller
- func (fake *FakeBlockPuller) Close()
- func (fake *FakeBlockPuller) CloseCallCount() int
- func (fake *FakeBlockPuller) Invocations() map[string][][]interface{}
- func (fake *FakeBlockPuller) PullBlock(seq uint64) *common.Block
- func (fake *FakeBlockPuller) PullBlockArgsForCall(i int) uint64
- func (fake *FakeBlockPuller) PullBlockCallCount() int
- func (fake *FakeBlockPuller) PullBlockReturns(result1 *common.Block)
- func (fake *FakeBlockPuller) PullBlockReturnsOnCall(i int, result1 *common.Block)
- type FakeRPC
- func (fake *FakeRPC) Invocations() map[string][][]interface{}
- func (fake *FakeRPC) SendSubmit(dest uint64, request *orderer.SubmitRequest) error
- func (fake *FakeRPC) SendSubmitArgsForCall(i int) (uint64, *orderer.SubmitRequest)
- func (fake *FakeRPC) SendSubmitCallCount() int
- func (fake *FakeRPC) SendSubmitReturns(result1 error)
- func (fake *FakeRPC) SendSubmitReturnsOnCall(i int, result1 error)
- func (fake *FakeRPC) Step(dest uint64, msg *orderer.StepRequest) (*orderer.StepResponse, error)
- func (fake *FakeRPC) StepArgsForCall(i int) (uint64, *orderer.StepRequest)
- func (fake *FakeRPC) StepCallCount() int
- func (fake *FakeRPC) StepReturns(result1 *orderer.StepResponse, result2 error)
- func (fake *FakeRPC) StepReturnsOnCall(i int, result1 *orderer.StepResponse, result2 error)
- type MessageReceiver
- type ReceiverGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainGetter ¶
chainegetter是为chainegetter类型自动生成的模拟类型
func (*ChainGetter) GetChain ¶
func (_m *ChainGetter) GetChain(chainID string) *multichannel.ChainSupport
getchain提供具有给定字段的模拟函数:chainID
type Configurator ¶
配置器是为配置器类型自动生成的模拟类型
func (*Configurator) Configure ¶
func (_m *Configurator) Configure(channel string, newNodes []cluster.RemoteNode)
configure提供了一个具有给定字段的模拟函数:channel、newnodes
type FakeBlockPuller ¶
type FakeBlockPuller struct { PullBlockStub func(seq uint64) *common.Block CloseStub func() // contains filtered or unexported fields }
func (*FakeBlockPuller) Close ¶
func (fake *FakeBlockPuller) Close()
func (*FakeBlockPuller) CloseCallCount ¶
func (fake *FakeBlockPuller) CloseCallCount() int
func (*FakeBlockPuller) Invocations ¶
func (fake *FakeBlockPuller) Invocations() map[string][][]interface{}
func (*FakeBlockPuller) PullBlock ¶
func (fake *FakeBlockPuller) PullBlock(seq uint64) *common.Block
func (*FakeBlockPuller) PullBlockArgsForCall ¶
func (fake *FakeBlockPuller) PullBlockArgsForCall(i int) uint64
func (*FakeBlockPuller) PullBlockCallCount ¶
func (fake *FakeBlockPuller) PullBlockCallCount() int
func (*FakeBlockPuller) PullBlockReturns ¶
func (fake *FakeBlockPuller) PullBlockReturns(result1 *common.Block)
func (*FakeBlockPuller) PullBlockReturnsOnCall ¶
func (fake *FakeBlockPuller) PullBlockReturnsOnCall(i int, result1 *common.Block)
type FakeRPC ¶
type FakeRPC struct { StepStub func(dest uint64, msg *orderer.StepRequest) (*orderer.StepResponse, error) SendSubmitStub func(dest uint64, request *orderer.SubmitRequest) error // contains filtered or unexported fields }
func (*FakeRPC) Invocations ¶
func (*FakeRPC) SendSubmit ¶
func (fake *FakeRPC) SendSubmit(dest uint64, request *orderer.SubmitRequest) error
func (*FakeRPC) SendSubmitArgsForCall ¶
func (fake *FakeRPC) SendSubmitArgsForCall(i int) (uint64, *orderer.SubmitRequest)
func (*FakeRPC) SendSubmitCallCount ¶
func (*FakeRPC) SendSubmitReturns ¶
func (*FakeRPC) SendSubmitReturnsOnCall ¶
func (*FakeRPC) Step ¶
func (fake *FakeRPC) Step(dest uint64, msg *orderer.StepRequest) (*orderer.StepResponse, error)
func (*FakeRPC) StepArgsForCall ¶
func (fake *FakeRPC) StepArgsForCall(i int) (uint64, *orderer.StepRequest)
func (*FakeRPC) StepCallCount ¶
func (*FakeRPC) StepReturns ¶
func (fake *FakeRPC) StepReturns(result1 *orderer.StepResponse, result2 error)
func (*FakeRPC) StepReturnsOnCall ¶
func (fake *FakeRPC) StepReturnsOnCall(i int, result1 *orderer.StepResponse, result2 error)
type MessageReceiver ¶
messagereceiver是为messagereceiver类型自动生成的模拟类型
func (*MessageReceiver) Step ¶
func (_m *MessageReceiver) Step(req *orderer.StepRequest, sender uint64) error
步骤为给定字段提供模拟函数:req,sender
func (*MessageReceiver) Submit ¶
func (_m *MessageReceiver) Submit(req *orderer.SubmitRequest, sender uint64) error
Submit提供了一个具有给定字段的模拟函数:req,sender
type ReceiverGetter ¶
Receivergetter是为Receivergetter类型自动生成的模拟类型
func (*ReceiverGetter) ReceiverByChain ¶
func (_m *ReceiverGetter) ReceiverByChain(channelID string) etcdraft.MessageReceiver
ReceiverByChain提供了一个具有给定字段的模拟函数:channelID
Click to show internal directories.
Click to hide internal directories.