Documentation ¶
Index ¶
- type Peer
- func (_m *Peer) CloseConn() error
- func (_m *Peer) FlushStop()
- func (_m *Peer) Get(key 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(e p2p.Envelope) bool
- func (_m *Peer) Set(key string, value interface{})
- func (_m *Peer) SetLogger(l 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(e 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 ¶
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. The first argument is typically a *testing.T value.
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: