mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-01-31 05:00:08 +08:00
52a4260be5
* event: Add autonat events (#25) * add events for identify (#26) * implement caching for rsaKey.Bytes() * store marshalled protobuf in cache for RsaPublicKey.Bytes() * fix(crypto): fix build when openssl is enabled * add godocs to routability events. Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com> Co-authored-by: Whyrusleeping <why@ipfs.io> Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com> Co-authored-by: Steven Allen <steven@stebalien.com>
22 lines
861 B
Go
22 lines
861 B
Go
package event
|
|
|
|
// EvtLocalRoutabilityPrivate is an event struct to be emitted with the local's
|
|
// node routability changes to PRIVATE (i.e. not routable from the Internet).
|
|
//
|
|
// This event is usually emitted by the AutoNAT subsystem.
|
|
type EvtLocalRoutabilityPrivate struct{}
|
|
|
|
// EvtLocalRoutabilityPublic is an event struct to be emitted with the local's
|
|
// node routability changes to PUBLIC (i.e. appear to routable from the
|
|
// Internet).
|
|
//
|
|
// This event is usually emitted by the AutoNAT subsystem.
|
|
type EvtLocalRoutabilityPublic struct{}
|
|
|
|
// EvtLocalRoutabilityUnknown is an event struct to be emitted with the local's
|
|
// node routability changes to UNKNOWN (i.e. we were unable to make a
|
|
// determination about our NAT status with enough confidence).
|
|
//
|
|
// This event is usually emitted by the AutoNAT subsystem.
|
|
type EvtLocalRoutabilityUnknown struct{}
|