Documentation ¶
Overview ¶
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Code generated by mockery v1.0.0. DO NOT EDIT.
Index ¶
- type BlockVerifier
- type ChainPuller
- type ChannelLister
- type ClusterClient
- type Communicator
- type Dispatcher
- type Handler
- type LedgerFactory
- type LedgerWriter
- type SecureDialer
- type SubmitClient
- func (_m *SubmitClient) CloseSend() error
- func (_m *SubmitClient) Context() context.Context
- func (_m *SubmitClient) Header() (metadata.MD, error)
- func (_m *SubmitClient) Recv() (*orderer.SubmitResponse, error)
- func (_m *SubmitClient) RecvMsg(m interface{}) error
- func (_m *SubmitClient) Send(request *orderer.SubmitRequest) error
- func (_m *SubmitClient) SendMsg(m interface{}) error
- func (_m *SubmitClient) Trailer() metadata.MD
- type SubmitStream
- func (_m *SubmitStream) Context() context.Context
- func (_m *SubmitStream) Recv() (*orderer.SubmitRequest, error)
- func (_m *SubmitStream) RecvMsg(m interface{}) error
- func (_m *SubmitStream) Send(response *orderer.SubmitResponse) error
- func (_m *SubmitStream) SendHeader(_a0 metadata.MD) error
- func (_m *SubmitStream) SendMsg(m interface{}) error
- func (_m *SubmitStream) SetHeader(_a0 metadata.MD) error
- func (_m *SubmitStream) SetTrailer(_a0 metadata.MD)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockVerifier ¶ added in v1.4.0
BlockVerifier is an autogenerated mock type for the BlockVerifier type
func (*BlockVerifier) VerifyBlockSignature ¶ added in v1.4.0
func (_m *BlockVerifier) VerifyBlockSignature(sd []*common.SignedData, config *common.ConfigEnvelope) error
VerifyBlockSignature provides a mock function with given fields: sd, config
type ChainPuller ¶ added in v1.4.0
ChainPuller is an autogenerated mock type for the ChainPuller type
func (*ChainPuller) Close ¶ added in v1.4.0
func (_m *ChainPuller) Close()
Close provides a mock function with given fields:
func (*ChainPuller) HeightsByEndpoints ¶ added in v1.4.0
func (_m *ChainPuller) HeightsByEndpoints() map[string]uint64
HeightsByEndpoints provides a mock function with given fields:
type ChannelLister ¶ added in v1.4.0
ChannelLister is an autogenerated mock type for the ChannelLister type
func (*ChannelLister) Channels ¶ added in v1.4.0
func (_m *ChannelLister) Channels() []string
Channels provides a mock function with given fields:
func (*ChannelLister) Close ¶ added in v1.4.0
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, in *orderer.StepRequest, opts ...grpc.CallOption) (*orderer.StepResponse, error)
Step provides a mock function with given fields: ctx, in, opts
func (*ClusterClient) Submit ¶
func (_m *ClusterClient) Submit(ctx context.Context, opts ...grpc.CallOption) (orderer.Cluster_SubmitClient, error)
Submit provides a mock function with given fields: ctx, opts
type Communicator ¶ added in v1.4.0
Communicator is an autogenerated mock type for the Communicator type
func (*Communicator) Configure ¶ added in v1.4.0
func (_m *Communicator) Configure(channel string, members []cluster.RemoteNode)
Configure provides a mock function with given fields: channel, members
func (*Communicator) Remote ¶ added in v1.4.0
func (_m *Communicator) Remote(channel string, id uint64) (*cluster.RemoteContext, error)
Remote provides a mock function with given fields: channel, id
func (*Communicator) Shutdown ¶ added in v1.4.0
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) DispatchStep ¶
func (_m *Dispatcher) DispatchStep(ctx context.Context, request *orderer.StepRequest) (*orderer.StepResponse, error)
DispatchStep provides a mock function with given fields: ctx, request
func (*Dispatcher) DispatchSubmit ¶
func (_m *Dispatcher) DispatchSubmit(ctx context.Context, request *orderer.SubmitRequest) (*orderer.SubmitResponse, 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) OnStep ¶
func (_m *Handler) OnStep(channel string, sender uint64, req *orderer.StepRequest) (*orderer.StepResponse, error)
OnStep provides a mock function with given fields: channel, sender, req
func (*Handler) OnSubmit ¶
func (_m *Handler) OnSubmit(channel string, sender uint64, req *orderer.SubmitRequest) (*orderer.SubmitResponse, error)
OnSubmit provides a mock function with given fields: channel, sender, req
type LedgerFactory ¶ added in v1.4.0
LedgerFactory is an autogenerated mock type for the LedgerFactory type
func (*LedgerFactory) GetOrCreate ¶ added in v1.4.0
func (_m *LedgerFactory) GetOrCreate(chainID string) (cluster.LedgerWriter, error)
GetOrCreate provides a mock function with given fields: chainID
type LedgerWriter ¶ added in v1.4.0
LedgerWriter is an autogenerated mock type for the LedgerWriter type
func (*LedgerWriter) Append ¶ added in v1.4.0
func (_m *LedgerWriter) Append(block *common.Block) error
Append provides a mock function with given fields: block
func (*LedgerWriter) Height ¶ added in v1.4.0
func (_m *LedgerWriter) Height() uint64
Height provides a mock function with given fields:
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 SubmitClient ¶
SubmitClient is an autogenerated mock type for the SubmitClient type
func (*SubmitClient) CloseSend ¶
func (_m *SubmitClient) CloseSend() error
CloseSend provides a mock function with given fields:
func (*SubmitClient) Context ¶
func (_m *SubmitClient) Context() context.Context
Context provides a mock function with given fields:
func (*SubmitClient) Header ¶
func (_m *SubmitClient) Header() (metadata.MD, error)
Header provides a mock function with given fields:
func (*SubmitClient) Recv ¶
func (_m *SubmitClient) Recv() (*orderer.SubmitResponse, error)
Recv provides a mock function with given fields:
func (*SubmitClient) RecvMsg ¶
func (_m *SubmitClient) RecvMsg(m interface{}) error
RecvMsg provides a mock function with given fields: m
func (*SubmitClient) Send ¶
func (_m *SubmitClient) Send(request *orderer.SubmitRequest) error
Send provides a mock function with given fields: request
func (*SubmitClient) SendMsg ¶
func (_m *SubmitClient) SendMsg(m interface{}) error
SendMsg provides a mock function with given fields: m
func (*SubmitClient) Trailer ¶
func (_m *SubmitClient) Trailer() metadata.MD
Trailer provides a mock function with given fields:
type SubmitStream ¶
SubmitStream is an autogenerated mock type for the SubmitStream type
func (*SubmitStream) Context ¶
func (_m *SubmitStream) Context() context.Context
Context provides a mock function with given fields:
func (*SubmitStream) Recv ¶
func (_m *SubmitStream) Recv() (*orderer.SubmitRequest, error)
Recv provides a mock function with given fields:
func (*SubmitStream) RecvMsg ¶
func (_m *SubmitStream) RecvMsg(m interface{}) error
RecvMsg provides a mock function with given fields: m
func (*SubmitStream) Send ¶
func (_m *SubmitStream) Send(response *orderer.SubmitResponse) error
Send provides a mock function with given fields: response
func (*SubmitStream) SendHeader ¶
func (_m *SubmitStream) SendHeader(_a0 metadata.MD) error
SendHeader provides a mock function with given fields: _a0
func (*SubmitStream) SendMsg ¶
func (_m *SubmitStream) SendMsg(m interface{}) error
SendMsg provides a mock function with given fields: m
func (*SubmitStream) SetHeader ¶
func (_m *SubmitStream) SetHeader(_a0 metadata.MD) error
SetHeader provides a mock function with given fields: _a0
func (*SubmitStream) SetTrailer ¶
func (_m *SubmitStream) SetTrailer(_a0 metadata.MD)
SetTrailer provides a mock function with given fields: _a0