Versions in this module Expand all Collapse all v1 v1.9.23 Oct 10, 2021 Changes in this version + func Wrap(msg interface{}) interface + type Disconnect struct + Error error + Peer enode.ID + type Exchange struct + Expects []Expect + Label string + Timeout time.Duration + Triggers []Trigger + type Expect struct + Code uint64 + Msg interface{} + Peer enode.ID + Timeout time.Duration + type ProtocolSession struct + Nodes []*enode.Node + Server *p2p.Server + func (s *ProtocolSession) TestDisconnected(disconnects ...*Disconnect) error + func (s *ProtocolSession) TestExchanges(exchanges ...Exchange) error + type ProtocolTester struct + func NewProtocolTester(prvkey *ecdsa.PrivateKey, nodeCount int, ...) *ProtocolTester + func (t *ProtocolTester) Connect(selfID enode.ID, peers ...*adapters.NodeConfig) + func (t *ProtocolTester) Stop() + type TestPeer interface + Drop func() + ID func() enode.ID + type TestPeerPool struct + func NewTestPeerPool() *TestPeerPool + func (p *TestPeerPool) Add(peer TestPeer) + func (p *TestPeerPool) Get(id enode.ID) TestPeer + func (p *TestPeerPool) Has(id enode.ID) bool + func (p *TestPeerPool) Remove(peer TestPeer) + type Trigger struct + Code uint64 + Msg interface{} + Peer enode.ID + Timeout time.Duration + type WrappedMsg struct + Context []byte + Payload []byte + Size uint32 v1.9.22-eco Oct 10, 2021