package
0.41.0
Repository: https://github.com/libp2p/go-libp2p.git
Documentation: pkg.go.dev

# Constants

Added means that the address is new and was not present prior to the event.
Maintained means that the address was not altered between the current and previous states.
Removed means that the address was removed from the Host.
Unknown means that the event producer was unable to determine why the address is in the current state.

# Variables

WildcardSubscription is the type to subscribe to receive all events emitted in the eventbus.

# Structs

EvtAutoRelayAddrsUpdated is sent by the autorelay when the node's relay addresses are updated.
EvtLocalAddressesUpdated should be emitted when the set of listen addresses for the local host changes.
EvtLocalProtocolsUpdated should be emitted when stream handlers are attached or detached from the local host.
EvtLocalReachabilityChanged is an event struct to be emitted when the local's node reachability changes state.
EvtNATDeviceTypeChanged is an event struct to be emitted when the type of the NAT device changes for a Transport Protocol.
EvtPeerConnectednessChanged should be emitted every time the "connectedness" to a given peer changes.
EvtPeerIdentificationCompleted is emitted when the initial identification round for a peer is completed.
EvtPeerIdentificationFailed is emitted when the initial identification round for a peer failed.
EvtPeerProtocolsUpdated should be emitted when a peer we're connected to adds or removes protocols from their stack.
GenericDHTEvent is a type that encapsulates an actual DHT event by carrying its raw JSON.
UpdatedAddress is used in the EvtLocalAddressesUpdated event to convey address change information.

# Interfaces

Bus is an interface for a type-based event delivery system.
Emitter represents an actor that emits events onto the eventbus.
Subscription represents a subscription to one or multiple event types.

# Type aliases

AddrAction represents an action taken on one of a Host's listen addresses.
CancelFunc closes a subscriber.
EmitterOpt represents an emitter option.
RawJSON is a type that contains a raw JSON string.
SubscriptionOpt represents a subscriber option.