Documentation ¶
Index ¶
- func Fuzz(data []byte) int
- type TestPeer
- func (tp *TestPeer) CloseConn() error
- func (tp *TestPeer) FlushStop()
- func (tp *TestPeer) Get(key string) interface{}
- func (tp *TestPeer) GetRemovalFailed() bool
- func (tp *TestPeer) ID() p2p.ID
- func (tp *TestPeer) IsOutbound() bool
- func (tp *TestPeer) IsPersistent() bool
- func (tp *TestPeer) NodeInfo() p2p.NodeInfo
- func (tp *TestPeer) RemoteAddr() net.Addr
- func (tp *TestPeer) RemoteIP() net.IP
- func (tp *TestPeer) Send(_ byte, _ []byte) bool
- func (tp *TestPeer) SendEnvelope(e p2p.Envelope) bool
- func (tp *TestPeer) Set(key string, value interface{})
- func (tp *TestPeer) SetRemovalFailed()
- func (tp *TestPeer) SocketAddr() *p2p.NetAddress
- func (tp *TestPeer) Status() p2p.ConnectionStatus
- func (tp *TestPeer) TrySend(_ byte, _ []byte) bool
- func (tp *TestPeer) TrySendEnvelope(e p2p.Envelope) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestPeer ¶
type TestPeer struct { *service.BaseService // contains filtered or unexported fields }
TestPeer implements a mock peer for testing
func (*TestPeer) FlushStop ¶
func (tp *TestPeer) FlushStop()
TestPeer implementation of p2p.Peer interface
func (*TestPeer) GetRemovalFailed ¶
func (*TestPeer) IsOutbound ¶
func (*TestPeer) IsPersistent ¶
func (*TestPeer) RemoteAddr ¶
func (*TestPeer) SetRemovalFailed ¶
func (tp *TestPeer) SetRemovalFailed()
func (*TestPeer) SocketAddr ¶
func (tp *TestPeer) SocketAddr() *p2p.NetAddress
func (*TestPeer) Status ¶
func (tp *TestPeer) Status() p2p.ConnectionStatus
Click to show internal directories.
Click to hide internal directories.