BlockRetriever is an autogenerated mock type for the BlockRetriever type
type BlockRetriever struct { mock.Mock }
func (_m *BlockRetriever) Block(number uint64) *common.Block
Block provides a mock function with given fields: number
BlockVerifier is an autogenerated mock type for the BlockVerifier type
type BlockVerifier struct { mock.Mock }
func (_m *BlockVerifier) VerifyBlockSignature(sd []*common.SignedData, config *common.ConfigEnvelope) error
VerifyBlockSignature provides a mock function with given fields: sd, config
ChainPuller is an autogenerated mock type for the ChainPuller type
type ChainPuller struct { mock.Mock }
func (_m *ChainPuller) Close()
Close provides a mock function with given fields:
func (_m *ChainPuller) HeightsByEndpoints() (map[string]uint64, error)
HeightsByEndpoints provides a mock function with given fields:
func (_m *ChainPuller) PullBlock(seq uint64) *common.Block
PullBlock provides a mock function with given fields: seq
ChannelLister is an autogenerated mock type for the ChannelLister type
type ChannelLister struct { mock.Mock }
func (_m *ChannelLister) Channels() []cluster.ChannelGenesisBlock
Channels provides a mock function with given fields:
func (_m *ChannelLister) Close()
Close provides a mock function with given fields:
ClusterClient is an autogenerated mock type for the ClusterClient type
type ClusterClient struct { mock.Mock }
func (_m *ClusterClient) Step(ctx context.Context, opts ...grpc.CallOption) (orderer.Cluster_StepClient, error)
Step provides a mock function with given fields: ctx, opts
Communicator is an autogenerated mock type for the Communicator type
type Communicator struct { mock.Mock }
func (_m *Communicator) Configure(channel string, members []cluster.RemoteNode)
Configure provides a mock function with given fields: channel, members
func (_m *Communicator) Remote(channel string, id uint64) (*cluster.RemoteContext, error)
Remote provides a mock function with given fields: channel, id
func (_m *Communicator) Shutdown()
Shutdown provides a mock function with given fields:
Dispatcher is an autogenerated mock type for the Dispatcher type
type Dispatcher struct { mock.Mock }
func (_m *Dispatcher) DispatchConsensus(ctx context.Context, request *orderer.ConsensusRequest) error
DispatchConsensus provides a mock function with given fields: ctx, request
func (_m *Dispatcher) DispatchSubmit(ctx context.Context, request *orderer.SubmitRequest) error
DispatchSubmit provides a mock function with given fields: ctx, request
Handler is an autogenerated mock type for the Handler type
type Handler struct { mock.Mock }
func (_m *Handler) OnConsensus(channel string, sender uint64, req *orderer.ConsensusRequest) error
OnConsensus provides a mock function with given fields: channel, sender, req
func (_m *Handler) OnSubmit(channel string, sender uint64, req *orderer.SubmitRequest) error
OnSubmit provides a mock function with given fields: channel, sender, req
LedgerFactory is an autogenerated mock type for the LedgerFactory type
type LedgerFactory struct { mock.Mock }
func (_m *LedgerFactory) GetOrCreate(chainID string) (cluster.LedgerWriter, error)
GetOrCreate provides a mock function with given fields: chainID
LedgerWriter is an autogenerated mock type for the LedgerWriter type
type LedgerWriter struct { mock.Mock }
func (_m *LedgerWriter) Append(block *common.Block) error
Append provides a mock function with given fields: block
func (_m *LedgerWriter) Height() uint64
Height provides a mock function with given fields:
MetricsProvider is an autogenerated mock type for the MetricsProvider type
type MetricsProvider struct { mock.Mock }
func (_m *MetricsProvider) NewCounter(opts metrics.CounterOpts) metrics.Counter
NewCounter provides a mock function with given fields: opts
func (_m *MetricsProvider) NewGauge(opts metrics.GaugeOpts) metrics.Gauge
NewGauge provides a mock function with given fields: opts
func (_m *MetricsProvider) NewHistogram(opts metrics.HistogramOpts) metrics.Histogram
NewHistogram provides a mock function with given fields: opts
SecureDialer is an autogenerated mock type for the SecureDialer type
type SecureDialer struct { mock.Mock }
func (_m *SecureDialer) Dial(address string, verifyFunc cluster.RemoteVerifier) (*grpc.ClientConn, error)
Dial provides a mock function with given fields: address, verifyFunc
StepClient is an autogenerated mock type for the StepClient type
type StepClient struct { mock.Mock }
func (_m *StepClient) CloseSend() error
CloseSend provides a mock function with given fields:
func (_m *StepClient) Context() context.Context
Context provides a mock function with given fields:
func (_m *StepClient) Header() (metadata.MD, error)
Header provides a mock function with given fields:
func (_m *StepClient) Recv() (*orderer.StepResponse, error)
Recv provides a mock function with given fields:
func (_m *StepClient) RecvMsg(m interface{}) error
RecvMsg provides a mock function with given fields: m
func (_m *StepClient) Send(_a0 *orderer.StepRequest) error
Send provides a mock function with given fields: _a0
func (_m *StepClient) SendMsg(m interface{}) error
SendMsg provides a mock function with given fields: m
func (_m *StepClient) Trailer() metadata.MD
Trailer provides a mock function with given fields:
StepStream is an autogenerated mock type for the StepStream type
type StepStream struct { mock.Mock }
func (_m *StepStream) Context() context.Context
Context provides a mock function with given fields:
func (_m *StepStream) Recv() (*orderer.StepRequest, error)
Recv provides a mock function with given fields:
func (_m *StepStream) RecvMsg(m interface{}) error
RecvMsg provides a mock function with given fields: m
func (_m *StepStream) Send(response *orderer.StepResponse) error
Send provides a mock function with given fields: response
func (_m *StepStream) SendHeader(_a0 metadata.MD) error
SendHeader provides a mock function with given fields: _a0
func (_m *StepStream) SendMsg(m interface{}) error
SendMsg provides a mock function with given fields: m
func (_m *StepStream) SetHeader(_a0 metadata.MD) error
SetHeader provides a mock function with given fields: _a0
func (_m *StepStream) SetTrailer(_a0 metadata.MD)
SetTrailer provides a mock function with given fields: _a0
VerifierFactory is an autogenerated mock type for the VerifierFactory type
type VerifierFactory struct { mock.Mock }
func (_m *VerifierFactory) VerifierFromConfig(configuration *common.ConfigEnvelope, channel string) (cluster.BlockVerifier, error)
VerifierFromConfig provides a mock function with given fields: configuration, channel
VerifierRetriever is an autogenerated mock type for the VerifierRetriever type
type VerifierRetriever struct { mock.Mock }
func (_m *VerifierRetriever) RetrieveVerifier(channel string) cluster.BlockVerifier
RetrieveVerifier provides a mock function with given fields: channel