package
2.0.8+incompatible
Repository: https://github.com/etherzero-org/go-etherzero.git
Documentation: pkg.go.dev

# Functions

AddNodeWithMsgEvents sets the EnableMsgEvents option to NodeConfig.
AddNodeWithService specifies a service that should be started on a node.
New creates a new Simulation instance with new simulations.Network initialized with provided services.
NewPeerEventsFilter returns a new PeerEventsFilter instance.

# Variables

BucketKeyKademlia is the key to be used for storing the kademlia instance for particuar node, usually inside the ServiceFunc function.
Package defaults.
Common errors that are returned by functions in this package.
Common errors that are returned by functions in this package.

# Structs

PeerEvent is the type of the channel returned by Simulation.PeerEvents.
PeerEventsFilter defines a filter on PeerEvents to exclude messages with defined properties.
Result is the returned value of Simulation.Run method.
Simulation provides methods on network, nodes and services to manage them.

# Type aliases

AddNodeOption defines the option that can be passed to Simulation.AddNode method.
BucketKey is the type that should be used for keys in simulation buckets.
RunFunc is the function that will be called on Simulation.Run method call.
ServiceFunc is used in New to declare new service constructor.