Documentation ¶
Index ¶
- type Peer
- func (_m *Peer) CloseConn() error
- func (_m *Peer) FlushStop()
- func (_m *Peer) Get(_a0 string) interface{}
- func (_m *Peer) GetRemovalFailed() bool
- func (_m *Peer) ID() p2p.ID
- func (_m *Peer) IsOutbound() bool
- func (_m *Peer) IsPersistent() bool
- func (_m *Peer) IsRunning() bool
- func (_m *Peer) NodeInfo() p2p.NodeInfo
- func (_m *Peer) OnReset() error
- func (_m *Peer) OnStart() error
- func (_m *Peer) OnStop()
- func (_m *Peer) Quit() <-chan struct{}
- func (_m *Peer) RemoteAddr() net.Addr
- func (_m *Peer) RemoteIP() net.IP
- func (_m *Peer) Reset() error
- func (_m *Peer) Send(_a0 byte, _a1 []byte) bool
- func (_m *Peer) Set(_a0 string, _a1 interface{})
- func (_m *Peer) SetLogger(_a0 log.Logger)
- func (_m *Peer) SetRemovalFailed()
- func (_m *Peer) SocketAddr() *p2p.NetAddress
- func (_m *Peer) Start() error
- func (_m *Peer) Status() conn.ConnectionStatus
- func (_m *Peer) Stop() error
- func (_m *Peer) String() string
- func (_m *Peer) TrySend(_a0 byte, _a1 []byte) bool
- type PeerEnvelopeSender
- func (_m *PeerEnvelopeSender) CloseConn() error
- func (_m *PeerEnvelopeSender) FlushStop()
- func (_m *PeerEnvelopeSender) Get(_a0 string) interface{}
- func (_m *PeerEnvelopeSender) GetRemovalFailed() bool
- func (_m *PeerEnvelopeSender) ID() p2p.ID
- func (_m *PeerEnvelopeSender) IsOutbound() bool
- func (_m *PeerEnvelopeSender) IsPersistent() bool
- func (_m *PeerEnvelopeSender) IsRunning() bool
- func (_m *PeerEnvelopeSender) NodeInfo() p2p.NodeInfo
- func (_m *PeerEnvelopeSender) OnReset() error
- func (_m *PeerEnvelopeSender) OnStart() error
- func (_m *PeerEnvelopeSender) OnStop()
- func (_m *PeerEnvelopeSender) Quit() <-chan struct{}
- func (_m *PeerEnvelopeSender) RemoteAddr() net.Addr
- func (_m *PeerEnvelopeSender) RemoteIP() net.IP
- func (_m *PeerEnvelopeSender) Reset() error
- func (_m *PeerEnvelopeSender) Send(_a0 byte, _a1 []byte) bool
- func (_m *PeerEnvelopeSender) SendEnvelope(_a0 p2p.Envelope) bool
- func (_m *PeerEnvelopeSender) Set(_a0 string, _a1 interface{})
- func (_m *PeerEnvelopeSender) SetLogger(_a0 log.Logger)
- func (_m *PeerEnvelopeSender) SetRemovalFailed()
- func (_m *PeerEnvelopeSender) SocketAddr() *p2p.NetAddress
- func (_m *PeerEnvelopeSender) Start() error
- func (_m *PeerEnvelopeSender) Status() conn.ConnectionStatus
- func (_m *PeerEnvelopeSender) Stop() error
- func (_m *PeerEnvelopeSender) String() string
- func (_m *PeerEnvelopeSender) TrySend(_a0 byte, _a1 []byte) bool
- func (_m *PeerEnvelopeSender) TrySendEnvelope(_a0 p2p.Envelope) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶
Peer is an autogenerated mock type for the Peer type
func NewPeer ¶
func NewPeer(t mockConstructorTestingTNewPeer) *Peer
NewPeer creates a new instance of Peer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Peer) FlushStop ¶
func (_m *Peer) FlushStop()
FlushStop provides a mock function with given fields:
func (*Peer) GetRemovalFailed ¶
GetRemovalFailed provides a mock function with given fields:
func (*Peer) IsOutbound ¶
IsOutbound provides a mock function with given fields:
func (*Peer) IsPersistent ¶
IsPersistent provides a mock function with given fields:
func (*Peer) Quit ¶
func (_m *Peer) Quit() <-chan struct{}
Quit provides a mock function with given fields:
func (*Peer) RemoteAddr ¶
RemoteAddr provides a mock function with given fields:
func (*Peer) SetRemovalFailed ¶
func (_m *Peer) SetRemovalFailed()
SetRemovalFailed provides a mock function with given fields:
func (*Peer) SocketAddr ¶
func (_m *Peer) SocketAddr() *p2p.NetAddress
SocketAddr provides a mock function with given fields:
func (*Peer) Status ¶
func (_m *Peer) Status() conn.ConnectionStatus
Status provides a mock function with given fields:
type PeerEnvelopeSender ¶
PeerEnvelopeSender is an autogenerated mock type for the PeerEnvelopeSender type
func NewPeerEnvelopeSender ¶
func NewPeerEnvelopeSender(t mockConstructorTestingTNewPeerEnvelopeSender) *PeerEnvelopeSender
NewPeerEnvelopeSender creates a new instance of PeerEnvelopeSender. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PeerEnvelopeSender) CloseConn ¶
func (_m *PeerEnvelopeSender) CloseConn() error
CloseConn provides a mock function with given fields:
func (*PeerEnvelopeSender) FlushStop ¶
func (_m *PeerEnvelopeSender) FlushStop()
FlushStop provides a mock function with given fields:
func (*PeerEnvelopeSender) Get ¶
func (_m *PeerEnvelopeSender) Get(_a0 string) interface{}
Get provides a mock function with given fields: _a0
func (*PeerEnvelopeSender) GetRemovalFailed ¶
func (_m *PeerEnvelopeSender) GetRemovalFailed() bool
GetRemovalFailed provides a mock function with given fields:
func (*PeerEnvelopeSender) ID ¶
func (_m *PeerEnvelopeSender) ID() p2p.ID
ID provides a mock function with given fields:
func (*PeerEnvelopeSender) IsOutbound ¶
func (_m *PeerEnvelopeSender) IsOutbound() bool
IsOutbound provides a mock function with given fields:
func (*PeerEnvelopeSender) IsPersistent ¶
func (_m *PeerEnvelopeSender) IsPersistent() bool
IsPersistent provides a mock function with given fields:
func (*PeerEnvelopeSender) IsRunning ¶
func (_m *PeerEnvelopeSender) IsRunning() bool
IsRunning provides a mock function with given fields:
func (*PeerEnvelopeSender) NodeInfo ¶
func (_m *PeerEnvelopeSender) NodeInfo() p2p.NodeInfo
NodeInfo provides a mock function with given fields:
func (*PeerEnvelopeSender) OnReset ¶
func (_m *PeerEnvelopeSender) OnReset() error
OnReset provides a mock function with given fields:
func (*PeerEnvelopeSender) OnStart ¶
func (_m *PeerEnvelopeSender) OnStart() error
OnStart provides a mock function with given fields:
func (*PeerEnvelopeSender) OnStop ¶
func (_m *PeerEnvelopeSender) OnStop()
OnStop provides a mock function with given fields:
func (*PeerEnvelopeSender) Quit ¶
func (_m *PeerEnvelopeSender) Quit() <-chan struct{}
Quit provides a mock function with given fields:
func (*PeerEnvelopeSender) RemoteAddr ¶
func (_m *PeerEnvelopeSender) RemoteAddr() net.Addr
RemoteAddr provides a mock function with given fields:
func (*PeerEnvelopeSender) RemoteIP ¶
func (_m *PeerEnvelopeSender) RemoteIP() net.IP
RemoteIP provides a mock function with given fields:
func (*PeerEnvelopeSender) Reset ¶
func (_m *PeerEnvelopeSender) Reset() error
Reset provides a mock function with given fields:
func (*PeerEnvelopeSender) Send ¶
func (_m *PeerEnvelopeSender) Send(_a0 byte, _a1 []byte) bool
Send provides a mock function with given fields: _a0, _a1
func (*PeerEnvelopeSender) SendEnvelope ¶
func (_m *PeerEnvelopeSender) SendEnvelope(_a0 p2p.Envelope) bool
SendEnvelope provides a mock function with given fields: _a0
func (*PeerEnvelopeSender) Set ¶
func (_m *PeerEnvelopeSender) Set(_a0 string, _a1 interface{})
Set provides a mock function with given fields: _a0, _a1
func (*PeerEnvelopeSender) SetLogger ¶
func (_m *PeerEnvelopeSender) SetLogger(_a0 log.Logger)
SetLogger provides a mock function with given fields: _a0
func (*PeerEnvelopeSender) SetRemovalFailed ¶
func (_m *PeerEnvelopeSender) SetRemovalFailed()
SetRemovalFailed provides a mock function with given fields:
func (*PeerEnvelopeSender) SocketAddr ¶
func (_m *PeerEnvelopeSender) SocketAddr() *p2p.NetAddress
SocketAddr provides a mock function with given fields:
func (*PeerEnvelopeSender) Start ¶
func (_m *PeerEnvelopeSender) Start() error
Start provides a mock function with given fields:
func (*PeerEnvelopeSender) Status ¶
func (_m *PeerEnvelopeSender) Status() conn.ConnectionStatus
Status provides a mock function with given fields:
func (*PeerEnvelopeSender) Stop ¶
func (_m *PeerEnvelopeSender) Stop() error
Stop provides a mock function with given fields:
func (*PeerEnvelopeSender) String ¶
func (_m *PeerEnvelopeSender) String() string
String provides a mock function with given fields:
func (*PeerEnvelopeSender) TrySend ¶
func (_m *PeerEnvelopeSender) TrySend(_a0 byte, _a1 []byte) bool
TrySend provides a mock function with given fields: _a0, _a1
func (*PeerEnvelopeSender) TrySendEnvelope ¶
func (_m *PeerEnvelopeSender) TrySendEnvelope(_a0 p2p.Envelope) bool
TrySendEnvelope provides a mock function with given fields: _a0