Documentation ¶
Overview ¶
Package mock_clienttypes is a generated GoMock package.
Index ¶
- type MockInterfaceChains
- func (m *MockInterfaceChains) EXPECT() *MockInterfaceChainsMockRecorder
- func (m *MockInterfaceChains) GetBestBlocksHash() ([]byte, error)
- func (m *MockInterfaceChains) GetBestBlocksNumber() (*big.Int, error)
- func (m *MockInterfaceChains) GetBlockDataByHash(hash []byte) (*types4.StateBlock, error)
- func (m *MockInterfaceChains) GetGenesisHash() ([]byte, error)
- func (m *MockInterfaceChains) ImportBlock(block *types4.StateBlock) (bool, error)
- type MockInterfaceChainsMockRecorder
- func (mr *MockInterfaceChainsMockRecorder) GetBestBlocksHash() *gomock.Call
- func (mr *MockInterfaceChainsMockRecorder) GetBestBlocksNumber() *gomock.Call
- func (mr *MockInterfaceChainsMockRecorder) GetBlockDataByHash(hash interface{}) *gomock.Call
- func (mr *MockInterfaceChainsMockRecorder) GetGenesisHash() *gomock.Call
- func (mr *MockInterfaceChainsMockRecorder) ImportBlock(block interface{}) *gomock.Call
- type MockInterfaceMessage
- func (m *MockInterfaceMessage) Decode(bytes []byte) error
- func (m *MockInterfaceMessage) EXPECT() *MockInterfaceMessageMockRecorder
- func (m *MockInterfaceMessage) Encode() ([]byte, error)
- func (m *MockInterfaceMessage) GetHeader() *types4.Header
- func (m *MockInterfaceMessage) Kind() types.FuncEnum
- func (m *MockInterfaceMessage) MarshalJSON() ([]byte, error)
- func (m *MockInterfaceMessage) UnmarshalJSON(bytes []byte) error
- type MockInterfaceMessageMockRecorder
- func (mr *MockInterfaceMessageMockRecorder) Decode(bytes interface{}) *gomock.Call
- func (mr *MockInterfaceMessageMockRecorder) Encode() *gomock.Call
- func (mr *MockInterfaceMessageMockRecorder) GetHeader() *gomock.Call
- func (mr *MockInterfaceMessageMockRecorder) Kind() *gomock.Call
- func (mr *MockInterfaceMessageMockRecorder) MarshalJSON() *gomock.Call
- func (mr *MockInterfaceMessageMockRecorder) UnmarshalJSON(bytes interface{}) *gomock.Call
- type MockInterfaceP2P
- func (m *MockInterfaceP2P) Cfg() types4.ConfigClient
- func (m *MockInterfaceP2P) EXPECT() *MockInterfaceP2PMockRecorder
- func (m *MockInterfaceP2P) GetNumPeers() (uint, error)
- func (m *MockInterfaceP2P) GetSyncer() (types4.InterfaceSync, error)
- func (m *MockInterfaceP2P) IsStarted() bool
- func (m *MockInterfaceP2P) On(event types3.EventEnum, cb types4.EventCallback)
- func (m *MockInterfaceP2P) Start() error
- func (m *MockInterfaceP2P) Stop() error
- type MockInterfaceP2PMockRecorder
- func (mr *MockInterfaceP2PMockRecorder) Cfg() *gomock.Call
- func (mr *MockInterfaceP2PMockRecorder) GetNumPeers() *gomock.Call
- func (mr *MockInterfaceP2PMockRecorder) GetSyncer() *gomock.Call
- func (mr *MockInterfaceP2PMockRecorder) IsStarted() *gomock.Call
- func (mr *MockInterfaceP2PMockRecorder) On(event, cb interface{}) *gomock.Call
- func (mr *MockInterfaceP2PMockRecorder) Start() *gomock.Call
- func (mr *MockInterfaceP2PMockRecorder) Stop() *gomock.Call
- type MockInterfacePeer
- func (m *MockInterfacePeer) AddConnection(conn go_libp2p_net.Conn, isWritable bool) (uint, error)
- func (m *MockInterfacePeer) Cfg() types4.ConfigClient
- func (m *MockInterfacePeer) Disconnect() error
- func (m *MockInterfacePeer) EXPECT() *MockInterfacePeerMockRecorder
- func (m *MockInterfacePeer) GetBestNumber() *big.Int
- func (m *MockInterfacePeer) GetChain() (types4.InterfaceChains, error)
- func (m *MockInterfacePeer) GetID() string
- func (m *MockInterfacePeer) GetNextID() uint
- func (m *MockInterfacePeer) GetPeerInfo() go_libp2p_peerstore.PeerInfo
- func (m *MockInterfacePeer) GetShortID() string
- func (m *MockInterfacePeer) IsActive() (bool, error)
- func (m *MockInterfacePeer) IsWritable() (bool, error)
- func (m *MockInterfacePeer) On(event types0.EventEnum, cb types4.PeerEventCallback)
- func (m *MockInterfacePeer) Receive(stream go_libp2p_net.Stream) error
- func (m *MockInterfacePeer) Send(msg types4.InterfaceMessage) (bool, error)
- func (m *MockInterfacePeer) SetBest(blockNumber *big.Int, hash []byte) error
- type MockInterfacePeerMockRecorder
- func (mr *MockInterfacePeerMockRecorder) AddConnection(conn, isWritable interface{}) *gomock.Call
- func (mr *MockInterfacePeerMockRecorder) Cfg() *gomock.Call
- func (mr *MockInterfacePeerMockRecorder) Disconnect() *gomock.Call
- func (mr *MockInterfacePeerMockRecorder) GetBestNumber() *gomock.Call
- func (mr *MockInterfacePeerMockRecorder) GetChain() *gomock.Call
- func (mr *MockInterfacePeerMockRecorder) GetID() *gomock.Call
- func (mr *MockInterfacePeerMockRecorder) GetNextID() *gomock.Call
- func (mr *MockInterfacePeerMockRecorder) GetPeerInfo() *gomock.Call
- func (mr *MockInterfacePeerMockRecorder) GetShortID() *gomock.Call
- func (mr *MockInterfacePeerMockRecorder) IsActive() *gomock.Call
- func (mr *MockInterfacePeerMockRecorder) IsWritable() *gomock.Call
- func (mr *MockInterfacePeerMockRecorder) On(event, cb interface{}) *gomock.Call
- func (mr *MockInterfacePeerMockRecorder) Receive(stream interface{}) *gomock.Call
- func (mr *MockInterfacePeerMockRecorder) Send(msg interface{}) *gomock.Call
- func (mr *MockInterfacePeerMockRecorder) SetBest(blockNumber, hash interface{}) *gomock.Call
- type MockInterfacePeers
- func (m *MockInterfacePeers) Add(pi go_libp2p_peerstore.PeerInfo) (*types4.KnownPeer, error)
- func (m *MockInterfacePeers) Count() (uint, error)
- func (m *MockInterfacePeers) CountAll() (uint, error)
- func (m *MockInterfacePeers) EXPECT() *MockInterfacePeersMockRecorder
- func (m *MockInterfacePeers) Get(pi go_libp2p_peerstore.PeerInfo) (*types4.KnownPeer, error)
- func (m *MockInterfacePeers) GetFromID(id go_libp2p_peer.ID) (*types4.KnownPeer, error)
- func (m *MockInterfacePeers) KnownPeers() ([]*types4.KnownPeer, error)
- func (m *MockInterfacePeers) Log(event types1.EventEnum, iface interface{}) error
- func (m *MockInterfacePeers) On(event types1.EventEnum, cb types4.PeersEventCallback)
- type MockInterfacePeersMockRecorder
- func (mr *MockInterfacePeersMockRecorder) Add(pi interface{}) *gomock.Call
- func (mr *MockInterfacePeersMockRecorder) Count() *gomock.Call
- func (mr *MockInterfacePeersMockRecorder) CountAll() *gomock.Call
- func (mr *MockInterfacePeersMockRecorder) Get(pi interface{}) *gomock.Call
- func (mr *MockInterfacePeersMockRecorder) GetFromID(id interface{}) *gomock.Call
- func (mr *MockInterfacePeersMockRecorder) KnownPeers() *gomock.Call
- func (mr *MockInterfacePeersMockRecorder) Log(event, iface interface{}) *gomock.Call
- func (mr *MockInterfacePeersMockRecorder) On(event, cb interface{}) *gomock.Call
- type MockInterfaceRPC
- type MockInterfaceRPCMockRecorder
- type MockInterfaceSync
- func (m *MockInterfaceSync) EXPECT() *MockInterfaceSyncMockRecorder
- func (m *MockInterfaceSync) On(event types2.EventEnum, cb types4.EventCallback)
- func (m *MockInterfaceSync) PeerRequests(pr types4.InterfacePeer) (types4.Requests, error)
- func (m *MockInterfaceSync) ProvideBlocks(pr types4.InterfacePeer, request *types4.BlockRequest) error
- func (m *MockInterfaceSync) QueueBlocks(pr types4.InterfacePeer, response *types4.BlockResponse) error
- func (m *MockInterfaceSync) RequestBlocks(pr types4.InterfacePeer) error
- type MockInterfaceSyncMockRecorder
- func (mr *MockInterfaceSyncMockRecorder) On(event, cb interface{}) *gomock.Call
- func (mr *MockInterfaceSyncMockRecorder) PeerRequests(pr interface{}) *gomock.Call
- func (mr *MockInterfaceSyncMockRecorder) ProvideBlocks(pr, request interface{}) *gomock.Call
- func (mr *MockInterfaceSyncMockRecorder) QueueBlocks(pr, response interface{}) *gomock.Call
- func (mr *MockInterfaceSyncMockRecorder) RequestBlocks(pr interface{}) *gomock.Call
- type MockInterfaceTelemetry
- type MockInterfaceTelemetryMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterfaceChains ¶
type MockInterfaceChains struct {
// contains filtered or unexported fields
}
MockInterfaceChains is a mock of InterfaceChains interface
func NewMockInterfaceChains ¶
func NewMockInterfaceChains(ctrl *gomock.Controller) *MockInterfaceChains
NewMockInterfaceChains creates a new mock instance
func (*MockInterfaceChains) EXPECT ¶
func (m *MockInterfaceChains) EXPECT() *MockInterfaceChainsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInterfaceChains) GetBestBlocksHash ¶
func (m *MockInterfaceChains) GetBestBlocksHash() ([]byte, error)
GetBestBlocksHash mocks base method
func (*MockInterfaceChains) GetBestBlocksNumber ¶
func (m *MockInterfaceChains) GetBestBlocksNumber() (*big.Int, error)
GetBestBlocksNumber mocks base method
func (*MockInterfaceChains) GetBlockDataByHash ¶
func (m *MockInterfaceChains) GetBlockDataByHash(hash []byte) (*types4.StateBlock, error)
GetBlockDataByHash mocks base method
func (*MockInterfaceChains) GetGenesisHash ¶
func (m *MockInterfaceChains) GetGenesisHash() ([]byte, error)
GetGenesisHash mocks base method
func (*MockInterfaceChains) ImportBlock ¶
func (m *MockInterfaceChains) ImportBlock(block *types4.StateBlock) (bool, error)
ImportBlock mocks base method
type MockInterfaceChainsMockRecorder ¶
type MockInterfaceChainsMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceChainsMockRecorder is the mock recorder for MockInterfaceChains
func (*MockInterfaceChainsMockRecorder) GetBestBlocksHash ¶
func (mr *MockInterfaceChainsMockRecorder) GetBestBlocksHash() *gomock.Call
GetBestBlocksHash indicates an expected call of GetBestBlocksHash
func (*MockInterfaceChainsMockRecorder) GetBestBlocksNumber ¶
func (mr *MockInterfaceChainsMockRecorder) GetBestBlocksNumber() *gomock.Call
GetBestBlocksNumber indicates an expected call of GetBestBlocksNumber
func (*MockInterfaceChainsMockRecorder) GetBlockDataByHash ¶
func (mr *MockInterfaceChainsMockRecorder) GetBlockDataByHash(hash interface{}) *gomock.Call
GetBlockDataByHash indicates an expected call of GetBlockDataByHash
func (*MockInterfaceChainsMockRecorder) GetGenesisHash ¶
func (mr *MockInterfaceChainsMockRecorder) GetGenesisHash() *gomock.Call
GetGenesisHash indicates an expected call of GetGenesisHash
func (*MockInterfaceChainsMockRecorder) ImportBlock ¶
func (mr *MockInterfaceChainsMockRecorder) ImportBlock(block interface{}) *gomock.Call
ImportBlock indicates an expected call of ImportBlock
type MockInterfaceMessage ¶
type MockInterfaceMessage struct {
// contains filtered or unexported fields
}
MockInterfaceMessage is a mock of InterfaceMessage interface
func NewMockInterfaceMessage ¶
func NewMockInterfaceMessage(ctrl *gomock.Controller) *MockInterfaceMessage
NewMockInterfaceMessage creates a new mock instance
func (*MockInterfaceMessage) Decode ¶
func (m *MockInterfaceMessage) Decode(bytes []byte) error
Decode mocks base method
func (*MockInterfaceMessage) EXPECT ¶
func (m *MockInterfaceMessage) EXPECT() *MockInterfaceMessageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInterfaceMessage) Encode ¶
func (m *MockInterfaceMessage) Encode() ([]byte, error)
Encode mocks base method
func (*MockInterfaceMessage) GetHeader ¶
func (m *MockInterfaceMessage) GetHeader() *types4.Header
GetHeader mocks base method
func (*MockInterfaceMessage) Kind ¶
func (m *MockInterfaceMessage) Kind() types.FuncEnum
Kind mocks base method
func (*MockInterfaceMessage) MarshalJSON ¶
func (m *MockInterfaceMessage) MarshalJSON() ([]byte, error)
MarshalJSON mocks base method
func (*MockInterfaceMessage) UnmarshalJSON ¶
func (m *MockInterfaceMessage) UnmarshalJSON(bytes []byte) error
UnmarshalJSON mocks base method
type MockInterfaceMessageMockRecorder ¶
type MockInterfaceMessageMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMessageMockRecorder is the mock recorder for MockInterfaceMessage
func (*MockInterfaceMessageMockRecorder) Decode ¶
func (mr *MockInterfaceMessageMockRecorder) Decode(bytes interface{}) *gomock.Call
Decode indicates an expected call of Decode
func (*MockInterfaceMessageMockRecorder) Encode ¶
func (mr *MockInterfaceMessageMockRecorder) Encode() *gomock.Call
Encode indicates an expected call of Encode
func (*MockInterfaceMessageMockRecorder) GetHeader ¶
func (mr *MockInterfaceMessageMockRecorder) GetHeader() *gomock.Call
GetHeader indicates an expected call of GetHeader
func (*MockInterfaceMessageMockRecorder) Kind ¶
func (mr *MockInterfaceMessageMockRecorder) Kind() *gomock.Call
Kind indicates an expected call of Kind
func (*MockInterfaceMessageMockRecorder) MarshalJSON ¶
func (mr *MockInterfaceMessageMockRecorder) MarshalJSON() *gomock.Call
MarshalJSON indicates an expected call of MarshalJSON
func (*MockInterfaceMessageMockRecorder) UnmarshalJSON ¶
func (mr *MockInterfaceMessageMockRecorder) UnmarshalJSON(bytes interface{}) *gomock.Call
UnmarshalJSON indicates an expected call of UnmarshalJSON
type MockInterfaceP2P ¶
type MockInterfaceP2P struct {
// contains filtered or unexported fields
}
MockInterfaceP2P is a mock of InterfaceP2P interface
func NewMockInterfaceP2P ¶
func NewMockInterfaceP2P(ctrl *gomock.Controller) *MockInterfaceP2P
NewMockInterfaceP2P creates a new mock instance
func (*MockInterfaceP2P) Cfg ¶
func (m *MockInterfaceP2P) Cfg() types4.ConfigClient
Cfg mocks base method
func (*MockInterfaceP2P) EXPECT ¶
func (m *MockInterfaceP2P) EXPECT() *MockInterfaceP2PMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInterfaceP2P) GetNumPeers ¶
func (m *MockInterfaceP2P) GetNumPeers() (uint, error)
GetNumPeers mocks base method
func (*MockInterfaceP2P) GetSyncer ¶
func (m *MockInterfaceP2P) GetSyncer() (types4.InterfaceSync, error)
GetSyncer mocks base method
func (*MockInterfaceP2P) IsStarted ¶
func (m *MockInterfaceP2P) IsStarted() bool
IsStarted mocks base method
func (*MockInterfaceP2P) On ¶
func (m *MockInterfaceP2P) On(event types3.EventEnum, cb types4.EventCallback)
On mocks base method
type MockInterfaceP2PMockRecorder ¶
type MockInterfaceP2PMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceP2PMockRecorder is the mock recorder for MockInterfaceP2P
func (*MockInterfaceP2PMockRecorder) Cfg ¶
func (mr *MockInterfaceP2PMockRecorder) Cfg() *gomock.Call
Cfg indicates an expected call of Cfg
func (*MockInterfaceP2PMockRecorder) GetNumPeers ¶
func (mr *MockInterfaceP2PMockRecorder) GetNumPeers() *gomock.Call
GetNumPeers indicates an expected call of GetNumPeers
func (*MockInterfaceP2PMockRecorder) GetSyncer ¶
func (mr *MockInterfaceP2PMockRecorder) GetSyncer() *gomock.Call
GetSyncer indicates an expected call of GetSyncer
func (*MockInterfaceP2PMockRecorder) IsStarted ¶
func (mr *MockInterfaceP2PMockRecorder) IsStarted() *gomock.Call
IsStarted indicates an expected call of IsStarted
func (*MockInterfaceP2PMockRecorder) On ¶
func (mr *MockInterfaceP2PMockRecorder) On(event, cb interface{}) *gomock.Call
On indicates an expected call of On
func (*MockInterfaceP2PMockRecorder) Start ¶
func (mr *MockInterfaceP2PMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockInterfaceP2PMockRecorder) Stop ¶
func (mr *MockInterfaceP2PMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
type MockInterfacePeer ¶
type MockInterfacePeer struct {
// contains filtered or unexported fields
}
MockInterfacePeer is a mock of InterfacePeer interface
func NewMockInterfacePeer ¶
func NewMockInterfacePeer(ctrl *gomock.Controller) *MockInterfacePeer
NewMockInterfacePeer creates a new mock instance
func (*MockInterfacePeer) AddConnection ¶
func (m *MockInterfacePeer) AddConnection(conn go_libp2p_net.Conn, isWritable bool) (uint, error)
AddConnection mocks base method
func (*MockInterfacePeer) Cfg ¶
func (m *MockInterfacePeer) Cfg() types4.ConfigClient
Cfg mocks base method
func (*MockInterfacePeer) Disconnect ¶
func (m *MockInterfacePeer) Disconnect() error
Disconnect mocks base method
func (*MockInterfacePeer) EXPECT ¶
func (m *MockInterfacePeer) EXPECT() *MockInterfacePeerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInterfacePeer) GetBestNumber ¶
func (m *MockInterfacePeer) GetBestNumber() *big.Int
GetBestNumber mocks base method
func (*MockInterfacePeer) GetChain ¶
func (m *MockInterfacePeer) GetChain() (types4.InterfaceChains, error)
GetChain mocks base method
func (*MockInterfacePeer) GetID ¶
func (m *MockInterfacePeer) GetID() string
GetID mocks base method
func (*MockInterfacePeer) GetNextID ¶
func (m *MockInterfacePeer) GetNextID() uint
GetNextID mocks base method
func (*MockInterfacePeer) GetPeerInfo ¶
func (m *MockInterfacePeer) GetPeerInfo() go_libp2p_peerstore.PeerInfo
GetPeerInfo mocks base method
func (*MockInterfacePeer) GetShortID ¶
func (m *MockInterfacePeer) GetShortID() string
GetShortID mocks base method
func (*MockInterfacePeer) IsActive ¶
func (m *MockInterfacePeer) IsActive() (bool, error)
IsActive mocks base method
func (*MockInterfacePeer) IsWritable ¶
func (m *MockInterfacePeer) IsWritable() (bool, error)
IsWritable mocks base method
func (*MockInterfacePeer) On ¶
func (m *MockInterfacePeer) On(event types0.EventEnum, cb types4.PeerEventCallback)
On mocks base method
func (*MockInterfacePeer) Receive ¶
func (m *MockInterfacePeer) Receive(stream go_libp2p_net.Stream) error
Receive mocks base method
func (*MockInterfacePeer) Send ¶
func (m *MockInterfacePeer) Send(msg types4.InterfaceMessage) (bool, error)
Send mocks base method
type MockInterfacePeerMockRecorder ¶
type MockInterfacePeerMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfacePeerMockRecorder is the mock recorder for MockInterfacePeer
func (*MockInterfacePeerMockRecorder) AddConnection ¶
func (mr *MockInterfacePeerMockRecorder) AddConnection(conn, isWritable interface{}) *gomock.Call
AddConnection indicates an expected call of AddConnection
func (*MockInterfacePeerMockRecorder) Cfg ¶
func (mr *MockInterfacePeerMockRecorder) Cfg() *gomock.Call
Cfg indicates an expected call of Cfg
func (*MockInterfacePeerMockRecorder) Disconnect ¶
func (mr *MockInterfacePeerMockRecorder) Disconnect() *gomock.Call
Disconnect indicates an expected call of Disconnect
func (*MockInterfacePeerMockRecorder) GetBestNumber ¶
func (mr *MockInterfacePeerMockRecorder) GetBestNumber() *gomock.Call
GetBestNumber indicates an expected call of GetBestNumber
func (*MockInterfacePeerMockRecorder) GetChain ¶
func (mr *MockInterfacePeerMockRecorder) GetChain() *gomock.Call
GetChain indicates an expected call of GetChain
func (*MockInterfacePeerMockRecorder) GetID ¶
func (mr *MockInterfacePeerMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID
func (*MockInterfacePeerMockRecorder) GetNextID ¶
func (mr *MockInterfacePeerMockRecorder) GetNextID() *gomock.Call
GetNextID indicates an expected call of GetNextID
func (*MockInterfacePeerMockRecorder) GetPeerInfo ¶
func (mr *MockInterfacePeerMockRecorder) GetPeerInfo() *gomock.Call
GetPeerInfo indicates an expected call of GetPeerInfo
func (*MockInterfacePeerMockRecorder) GetShortID ¶
func (mr *MockInterfacePeerMockRecorder) GetShortID() *gomock.Call
GetShortID indicates an expected call of GetShortID
func (*MockInterfacePeerMockRecorder) IsActive ¶
func (mr *MockInterfacePeerMockRecorder) IsActive() *gomock.Call
IsActive indicates an expected call of IsActive
func (*MockInterfacePeerMockRecorder) IsWritable ¶
func (mr *MockInterfacePeerMockRecorder) IsWritable() *gomock.Call
IsWritable indicates an expected call of IsWritable
func (*MockInterfacePeerMockRecorder) On ¶
func (mr *MockInterfacePeerMockRecorder) On(event, cb interface{}) *gomock.Call
On indicates an expected call of On
func (*MockInterfacePeerMockRecorder) Receive ¶
func (mr *MockInterfacePeerMockRecorder) Receive(stream interface{}) *gomock.Call
Receive indicates an expected call of Receive
func (*MockInterfacePeerMockRecorder) Send ¶
func (mr *MockInterfacePeerMockRecorder) Send(msg interface{}) *gomock.Call
Send indicates an expected call of Send
func (*MockInterfacePeerMockRecorder) SetBest ¶
func (mr *MockInterfacePeerMockRecorder) SetBest(blockNumber, hash interface{}) *gomock.Call
SetBest indicates an expected call of SetBest
type MockInterfacePeers ¶
type MockInterfacePeers struct {
// contains filtered or unexported fields
}
MockInterfacePeers is a mock of InterfacePeers interface
func NewMockInterfacePeers ¶
func NewMockInterfacePeers(ctrl *gomock.Controller) *MockInterfacePeers
NewMockInterfacePeers creates a new mock instance
func (*MockInterfacePeers) Add ¶
func (m *MockInterfacePeers) Add(pi go_libp2p_peerstore.PeerInfo) (*types4.KnownPeer, error)
Add mocks base method
func (*MockInterfacePeers) Count ¶
func (m *MockInterfacePeers) Count() (uint, error)
Count mocks base method
func (*MockInterfacePeers) CountAll ¶
func (m *MockInterfacePeers) CountAll() (uint, error)
CountAll mocks base method
func (*MockInterfacePeers) EXPECT ¶
func (m *MockInterfacePeers) EXPECT() *MockInterfacePeersMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInterfacePeers) Get ¶
func (m *MockInterfacePeers) Get(pi go_libp2p_peerstore.PeerInfo) (*types4.KnownPeer, error)
Get mocks base method
func (*MockInterfacePeers) GetFromID ¶
func (m *MockInterfacePeers) GetFromID(id go_libp2p_peer.ID) (*types4.KnownPeer, error)
GetFromID mocks base method
func (*MockInterfacePeers) KnownPeers ¶
func (m *MockInterfacePeers) KnownPeers() ([]*types4.KnownPeer, error)
KnownPeers mocks base method
func (*MockInterfacePeers) Log ¶
func (m *MockInterfacePeers) Log(event types1.EventEnum, iface interface{}) error
Log mocks base method
func (*MockInterfacePeers) On ¶
func (m *MockInterfacePeers) On(event types1.EventEnum, cb types4.PeersEventCallback)
On mocks base method
type MockInterfacePeersMockRecorder ¶
type MockInterfacePeersMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfacePeersMockRecorder is the mock recorder for MockInterfacePeers
func (*MockInterfacePeersMockRecorder) Add ¶
func (mr *MockInterfacePeersMockRecorder) Add(pi interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockInterfacePeersMockRecorder) Count ¶
func (mr *MockInterfacePeersMockRecorder) Count() *gomock.Call
Count indicates an expected call of Count
func (*MockInterfacePeersMockRecorder) CountAll ¶
func (mr *MockInterfacePeersMockRecorder) CountAll() *gomock.Call
CountAll indicates an expected call of CountAll
func (*MockInterfacePeersMockRecorder) Get ¶
func (mr *MockInterfacePeersMockRecorder) Get(pi interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockInterfacePeersMockRecorder) GetFromID ¶
func (mr *MockInterfacePeersMockRecorder) GetFromID(id interface{}) *gomock.Call
GetFromID indicates an expected call of GetFromID
func (*MockInterfacePeersMockRecorder) KnownPeers ¶
func (mr *MockInterfacePeersMockRecorder) KnownPeers() *gomock.Call
KnownPeers indicates an expected call of KnownPeers
func (*MockInterfacePeersMockRecorder) Log ¶
func (mr *MockInterfacePeersMockRecorder) Log(event, iface interface{}) *gomock.Call
Log indicates an expected call of Log
func (*MockInterfacePeersMockRecorder) On ¶
func (mr *MockInterfacePeersMockRecorder) On(event, cb interface{}) *gomock.Call
On indicates an expected call of On
type MockInterfaceRPC ¶
type MockInterfaceRPC struct {
// contains filtered or unexported fields
}
MockInterfaceRPC is a mock of InterfaceRPC interface
func NewMockInterfaceRPC ¶
func NewMockInterfaceRPC(ctrl *gomock.Controller) *MockInterfaceRPC
NewMockInterfaceRPC creates a new mock instance
func (*MockInterfaceRPC) EXPECT ¶
func (m *MockInterfaceRPC) EXPECT() *MockInterfaceRPCMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockInterfaceRPCMockRecorder ¶
type MockInterfaceRPCMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceRPCMockRecorder is the mock recorder for MockInterfaceRPC
type MockInterfaceSync ¶
type MockInterfaceSync struct {
// contains filtered or unexported fields
}
MockInterfaceSync is a mock of InterfaceSync interface
func NewMockInterfaceSync ¶
func NewMockInterfaceSync(ctrl *gomock.Controller) *MockInterfaceSync
NewMockInterfaceSync creates a new mock instance
func (*MockInterfaceSync) EXPECT ¶
func (m *MockInterfaceSync) EXPECT() *MockInterfaceSyncMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInterfaceSync) On ¶
func (m *MockInterfaceSync) On(event types2.EventEnum, cb types4.EventCallback)
On mocks base method
func (*MockInterfaceSync) PeerRequests ¶
func (m *MockInterfaceSync) PeerRequests(pr types4.InterfacePeer) (types4.Requests, error)
PeerRequests mocks base method
func (*MockInterfaceSync) ProvideBlocks ¶
func (m *MockInterfaceSync) ProvideBlocks(pr types4.InterfacePeer, request *types4.BlockRequest) error
ProvideBlocks mocks base method
func (*MockInterfaceSync) QueueBlocks ¶
func (m *MockInterfaceSync) QueueBlocks(pr types4.InterfacePeer, response *types4.BlockResponse) error
QueueBlocks mocks base method
func (*MockInterfaceSync) RequestBlocks ¶
func (m *MockInterfaceSync) RequestBlocks(pr types4.InterfacePeer) error
RequestBlocks mocks base method
type MockInterfaceSyncMockRecorder ¶
type MockInterfaceSyncMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceSyncMockRecorder is the mock recorder for MockInterfaceSync
func (*MockInterfaceSyncMockRecorder) On ¶
func (mr *MockInterfaceSyncMockRecorder) On(event, cb interface{}) *gomock.Call
On indicates an expected call of On
func (*MockInterfaceSyncMockRecorder) PeerRequests ¶
func (mr *MockInterfaceSyncMockRecorder) PeerRequests(pr interface{}) *gomock.Call
PeerRequests indicates an expected call of PeerRequests
func (*MockInterfaceSyncMockRecorder) ProvideBlocks ¶
func (mr *MockInterfaceSyncMockRecorder) ProvideBlocks(pr, request interface{}) *gomock.Call
ProvideBlocks indicates an expected call of ProvideBlocks
func (*MockInterfaceSyncMockRecorder) QueueBlocks ¶
func (mr *MockInterfaceSyncMockRecorder) QueueBlocks(pr, response interface{}) *gomock.Call
QueueBlocks indicates an expected call of QueueBlocks
func (*MockInterfaceSyncMockRecorder) RequestBlocks ¶
func (mr *MockInterfaceSyncMockRecorder) RequestBlocks(pr interface{}) *gomock.Call
RequestBlocks indicates an expected call of RequestBlocks
type MockInterfaceTelemetry ¶
type MockInterfaceTelemetry struct {
// contains filtered or unexported fields
}
MockInterfaceTelemetry is a mock of InterfaceTelemetry interface
func NewMockInterfaceTelemetry ¶
func NewMockInterfaceTelemetry(ctrl *gomock.Controller) *MockInterfaceTelemetry
NewMockInterfaceTelemetry creates a new mock instance
func (*MockInterfaceTelemetry) EXPECT ¶
func (m *MockInterfaceTelemetry) EXPECT() *MockInterfaceTelemetryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockInterfaceTelemetryMockRecorder ¶
type MockInterfaceTelemetryMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceTelemetryMockRecorder is the mock recorder for MockInterfaceTelemetry