package
0.5.5
Repository: https://github.com/elitak/go-libp2p-core.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.

# Structs

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.
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.
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.
SubscriptionOpt represents a subscriber option.