Documentation ¶
Index ¶
- func TestConnectivity(ctx context.Context, px0, px1 *Peer) error
- type Peer
- func (p *Peer) Close()
- func (p *Peer) GetInproc() *inproc.Inproc
- func (p *Peer) GetLogger() *logrus.Entry
- func (p *Peer) GetPeerID() bp.ID
- func (p *Peer) GetPeerPriv() crypto.PrivKey
- func (p *Peer) GetTestbed() *testbed.Testbed
- func (p *Peer) GetTransportController() *transport_controller.Controller
- type Simulator
- type SimulatorOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Peer ¶
type Peer struct {
// contains filtered or unexported fields
}
Peer holds state about an executing Peer
func (*Peer) GetPeerPriv ¶
GetPeerPriv returns the Peer private key.
func (*Peer) GetTestbed ¶
GetTestbed returns the testbed.
func (*Peer) GetTransportController ¶
func (p *Peer) GetTransportController() *transport_controller.Controller
GetTransportController returns the transport controller.
type Simulator ¶
type Simulator struct {
// contains filtered or unexported fields
}
Simulator manages state for all simulated machines.
type SimulatorOption ¶ added in v0.20.3
SimulatorOption is an option passed to NewSimulator.
func WithVerbose ¶ added in v0.20.3
func WithVerbose() SimulatorOption
WithVerbose enables verbose logging.
Click to show internal directories.
Click to hide internal directories.