Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type BlockRetriever
- type BlockVerifier
- type ChainPuller
- type ChannelLister
- type ClusterClient
- type Communicator
- type Dispatcher
- type Handler
- type LedgerFactory
- type LedgerWriter
- type MetricsProvider
- type SecureDialer
- type SignerSerializer
- func (fake *SignerSerializer) Invocations() map[string][][]interface{}
- func (fake *SignerSerializer) Serialize() ([]byte, error)
- func (fake *SignerSerializer) SerializeCallCount() int
- func (fake *SignerSerializer) SerializeCalls(stub func() ([]byte, error))
- func (fake *SignerSerializer) SerializeReturns(result1 []byte, result2 error)
- func (fake *SignerSerializer) SerializeReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *SignerSerializer) Sign(arg1 []byte) ([]byte, error)
- func (fake *SignerSerializer) SignArgsForCall(i int) []byte
- func (fake *SignerSerializer) SignCallCount() int
- func (fake *SignerSerializer) SignCalls(stub func([]byte) ([]byte, error))
- func (fake *SignerSerializer) SignReturns(result1 []byte, result2 error)
- func (fake *SignerSerializer) SignReturnsOnCall(i int, result1 []byte, result2 error)
- type StepClient
- func (_m *StepClient) CloseSend() error
- func (_m *StepClient) Context() context.Context
- func (_m *StepClient) Header() (metadata.MD, error)
- func (_m *StepClient) Recv() (*orderer.StepResponse, error)
- func (_m *StepClient) RecvMsg(m interface{}) error
- func (_m *StepClient) Send(_a0 *orderer.StepRequest) error
- func (_m *StepClient) SendMsg(m interface{}) error
- func (_m *StepClient) Trailer() metadata.MD
- type StepStream
- func (_m *StepStream) Context() context.Context
- func (_m *StepStream) Recv() (*orderer.StepRequest, error)
- func (_m *StepStream) RecvMsg(m interface{}) error
- func (_m *StepStream) Send(response *orderer.StepResponse) error
- func (_m *StepStream) SendHeader(_a0 metadata.MD) error
- func (_m *StepStream) SendMsg(m interface{}) error
- func (_m *StepStream) SetHeader(_a0 metadata.MD) error
- func (_m *StepStream) SetTrailer(_a0 metadata.MD)
- type VerifierFactory
- type VerifierRetriever
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockRetriever ¶
BlockRetriever is an autogenerated mock type for the BlockRetriever type
type BlockVerifier ¶
BlockVerifier is an autogenerated mock type for the BlockVerifier type
func (*BlockVerifier) VerifyBlockSignature ¶
func (_m *BlockVerifier) VerifyBlockSignature(sd []*protoutil.SignedData, config *common.ConfigEnvelope) error
VerifyBlockSignature provides a mock function with given fields: sd, config
type ChainPuller ¶
ChainPuller is an autogenerated mock type for the ChainPuller type
func (*ChainPuller) Close ¶
func (_m *ChainPuller) Close()
Close provides a mock function with given fields:
func (*ChainPuller) HeightsByEndpoints ¶
func (_m *ChainPuller) HeightsByEndpoints() (map[string]uint64, error)
HeightsByEndpoints provides a mock function with given fields:
type ChannelLister ¶
ChannelLister is an autogenerated mock type for the ChannelLister type
func (*ChannelLister) Channels ¶
func (_m *ChannelLister) Channels() []cluster.ChannelGenesisBlock
Channels provides a mock function with given fields:
func (*ChannelLister) Close ¶
func (_m *ChannelLister) Close()
Close provides a mock function with given fields:
type ClusterClient ¶
ClusterClient is an autogenerated mock type for the ClusterClient type
func (*ClusterClient) Step ¶
func (_m *ClusterClient) Step(ctx context.Context, opts ...grpc.CallOption) (orderer.Cluster_StepClient, error)
Step provides a mock function with given fields: ctx, opts
type Communicator ¶
Communicator is an autogenerated mock type for the Communicator type
func (*Communicator) Configure ¶
func (_m *Communicator) Configure(channel string, members []cluster.RemoteNode)
Configure provides a mock function with given fields: channel, members
func (*Communicator) Remote ¶
func (_m *Communicator) Remote(channel string, id uint64) (*cluster.RemoteContext, error)
Remote provides a mock function with given fields: channel, id
func (*Communicator) Shutdown ¶
func (_m *Communicator) Shutdown()
Shutdown provides a mock function with given fields:
type Dispatcher ¶
Dispatcher is an autogenerated mock type for the Dispatcher type
func (*Dispatcher) DispatchConsensus ¶
func (_m *Dispatcher) DispatchConsensus(ctx context.Context, request *orderer.ConsensusRequest) error
DispatchConsensus provides a mock function with given fields: ctx, request
func (*Dispatcher) DispatchSubmit ¶
func (_m *Dispatcher) DispatchSubmit(ctx context.Context, request *orderer.SubmitRequest) error
DispatchSubmit provides a mock function with given fields: ctx, request
type Handler ¶
Handler is an autogenerated mock type for the Handler type
func (*Handler) OnConsensus ¶
OnConsensus provides a mock function with given fields: channel, sender, req
type LedgerFactory ¶
LedgerFactory is an autogenerated mock type for the LedgerFactory type
func (*LedgerFactory) GetOrCreate ¶
func (_m *LedgerFactory) GetOrCreate(chainID string) (cluster.LedgerWriter, error)
GetOrCreate provides a mock function with given fields: chainID
type LedgerWriter ¶
LedgerWriter is an autogenerated mock type for the LedgerWriter type
func (*LedgerWriter) Append ¶
func (_m *LedgerWriter) Append(block *common.Block) error
Append provides a mock function with given fields: block
func (*LedgerWriter) Height ¶
func (_m *LedgerWriter) Height() uint64
Height provides a mock function with given fields:
type MetricsProvider ¶
MetricsProvider is an autogenerated mock type for the MetricsProvider type
func (*MetricsProvider) NewCounter ¶
func (_m *MetricsProvider) NewCounter(opts metrics.CounterOpts) metrics.Counter
NewCounter provides a mock function with given fields: opts
func (*MetricsProvider) NewGauge ¶
func (_m *MetricsProvider) NewGauge(opts metrics.GaugeOpts) metrics.Gauge
NewGauge provides a mock function with given fields: opts
func (*MetricsProvider) NewHistogram ¶
func (_m *MetricsProvider) NewHistogram(opts metrics.HistogramOpts) metrics.Histogram
NewHistogram provides a mock function with given fields: opts
type SecureDialer ¶
SecureDialer is an autogenerated mock type for the SecureDialer type
func (*SecureDialer) Dial ¶
func (_m *SecureDialer) Dial(address string, verifyFunc cluster.RemoteVerifier) (*grpc.ClientConn, error)
Dial provides a mock function with given fields: address, verifyFunc
type SignerSerializer ¶
type SignerSerializer struct { SerializeStub func() ([]byte, error) SignStub func([]byte) ([]byte, error) // contains filtered or unexported fields }
func (*SignerSerializer) Invocations ¶
func (fake *SignerSerializer) Invocations() map[string][][]interface{}
func (*SignerSerializer) Serialize ¶
func (fake *SignerSerializer) Serialize() ([]byte, error)
func (*SignerSerializer) SerializeCallCount ¶
func (fake *SignerSerializer) SerializeCallCount() int
func (*SignerSerializer) SerializeCalls ¶
func (fake *SignerSerializer) SerializeCalls(stub func() ([]byte, error))
func (*SignerSerializer) SerializeReturns ¶
func (fake *SignerSerializer) SerializeReturns(result1 []byte, result2 error)
func (*SignerSerializer) SerializeReturnsOnCall ¶
func (fake *SignerSerializer) SerializeReturnsOnCall(i int, result1 []byte, result2 error)
func (*SignerSerializer) SignArgsForCall ¶
func (fake *SignerSerializer) SignArgsForCall(i int) []byte
func (*SignerSerializer) SignCallCount ¶
func (fake *SignerSerializer) SignCallCount() int
func (*SignerSerializer) SignCalls ¶
func (fake *SignerSerializer) SignCalls(stub func([]byte) ([]byte, error))
func (*SignerSerializer) SignReturns ¶
func (fake *SignerSerializer) SignReturns(result1 []byte, result2 error)
func (*SignerSerializer) SignReturnsOnCall ¶
func (fake *SignerSerializer) SignReturnsOnCall(i int, result1 []byte, result2 error)
type StepClient ¶
StepClient is an autogenerated mock type for the StepClient type
func (*StepClient) CloseSend ¶
func (_m *StepClient) CloseSend() error
CloseSend provides a mock function with given fields:
func (*StepClient) Context ¶
func (_m *StepClient) Context() context.Context
Context provides a mock function with given fields:
func (*StepClient) Header ¶
func (_m *StepClient) Header() (metadata.MD, error)
Header provides a mock function with given fields:
func (*StepClient) Recv ¶
func (_m *StepClient) Recv() (*orderer.StepResponse, error)
Recv provides a mock function with given fields:
func (*StepClient) RecvMsg ¶
func (_m *StepClient) RecvMsg(m interface{}) error
RecvMsg provides a mock function with given fields: m
func (*StepClient) Send ¶
func (_m *StepClient) Send(_a0 *orderer.StepRequest) error
Send provides a mock function with given fields: _a0
func (*StepClient) SendMsg ¶
func (_m *StepClient) SendMsg(m interface{}) error
SendMsg provides a mock function with given fields: m
func (*StepClient) Trailer ¶
func (_m *StepClient) Trailer() metadata.MD
Trailer provides a mock function with given fields:
type StepStream ¶
StepStream is an autogenerated mock type for the StepStream type
func (*StepStream) Context ¶
func (_m *StepStream) Context() context.Context
Context provides a mock function with given fields:
func (*StepStream) Recv ¶
func (_m *StepStream) Recv() (*orderer.StepRequest, error)
Recv provides a mock function with given fields:
func (*StepStream) RecvMsg ¶
func (_m *StepStream) RecvMsg(m interface{}) error
RecvMsg provides a mock function with given fields: m
func (*StepStream) Send ¶
func (_m *StepStream) Send(response *orderer.StepResponse) error
Send provides a mock function with given fields: response
func (*StepStream) SendHeader ¶
func (_m *StepStream) SendHeader(_a0 metadata.MD) error
SendHeader provides a mock function with given fields: _a0
func (*StepStream) SendMsg ¶
func (_m *StepStream) SendMsg(m interface{}) error
SendMsg provides a mock function with given fields: m
func (*StepStream) SetHeader ¶
func (_m *StepStream) SetHeader(_a0 metadata.MD) error
SetHeader provides a mock function with given fields: _a0
func (*StepStream) SetTrailer ¶
func (_m *StepStream) SetTrailer(_a0 metadata.MD)
SetTrailer provides a mock function with given fields: _a0
type VerifierFactory ¶
VerifierFactory is an autogenerated mock type for the VerifierFactory type
func (*VerifierFactory) VerifierFromConfig ¶
func (_m *VerifierFactory) VerifierFromConfig(configuration *common.ConfigEnvelope, channel string) (cluster.BlockVerifier, error)
VerifierFromConfig provides a mock function with given fields: configuration, channel
type VerifierRetriever ¶
VerifierRetriever is an autogenerated mock type for the VerifierRetriever type
func (*VerifierRetriever) RetrieveVerifier ¶
func (_m *VerifierRetriever) RetrieveVerifier(channel string) cluster.BlockVerifier
RetrieveVerifier provides a mock function with given fields: channel