pex

package
v0.0.0-...-2be76b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fuzz

func Fuzz(data []byte) int

Fuzz implements the fuzzing entry point

Types

type TestPeer

type TestPeer struct {
	*service.BaseService
	// contains filtered or unexported fields
}

TestPeer implements a mock peer for testing

func NewTestPeer

func NewTestPeer() *TestPeer

NewTestPeer creates a new test peer instance

func (*TestPeer) CloseConn

func (tp *TestPeer) CloseConn() error

func (*TestPeer) FlushStop

func (tp *TestPeer) FlushStop()

TestPeer implementation of p2p.Peer interface

func (*TestPeer) Get

func (tp *TestPeer) Get(key string) interface{}

func (*TestPeer) GetRemovalFailed

func (tp *TestPeer) GetRemovalFailed() bool

func (*TestPeer) ID

func (tp *TestPeer) ID() p2p.ID

func (*TestPeer) IsOutbound

func (tp *TestPeer) IsOutbound() bool

func (*TestPeer) IsPersistent

func (tp *TestPeer) IsPersistent() bool

func (*TestPeer) NodeInfo

func (tp *TestPeer) NodeInfo() p2p.NodeInfo

func (*TestPeer) RemoteAddr

func (tp *TestPeer) RemoteAddr() net.Addr

func (*TestPeer) RemoteIP

func (tp *TestPeer) RemoteIP() net.IP

func (*TestPeer) Send

func (tp *TestPeer) Send(_ byte, _ []byte) bool

func (*TestPeer) SendEnvelope

func (tp *TestPeer) SendEnvelope(e p2p.Envelope) bool

func (*TestPeer) Set

func (tp *TestPeer) Set(key string, value interface{})

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

func (*TestPeer) TrySend

func (tp *TestPeer) TrySend(_ byte, _ []byte) bool

func (*TestPeer) TrySendEnvelope

func (tp *TestPeer) TrySendEnvelope(e p2p.Envelope) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL