mirror of https://github.com/libp2p/go-libp2p.git
Browse Source
This means we can make the event _stateful_ so subscribing always gives us the last state.pull/1683/head
Steven Allen
5 years ago
2 changed files with 26 additions and 16 deletions
@ -1,21 +1,13 @@ |
|||
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{} |
|||
import ( |
|||
"github.com/libp2p/go-libp2p-core/network" |
|||
) |
|||
|
|||
// 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).
|
|||
// EvtLocalRoutability is an event struct to be emitted with the local's node
|
|||
// routability changes state.
|
|||
//
|
|||
// This event is usually emitted by the AutoNAT subsystem.
|
|||
type EvtLocalRoutabilityUnknown struct{} |
|||
type EvtLocalRoutability struct { |
|||
Routability network.Routability |
|||
} |
|||
|
Loading…
Reference in new issue