This repository was archived by the owner on Sep 6, 2022. It is now read-only.
Commit e5f43bb 1 parent 8157087 commit e5f43bb Copy full SHA for e5f43bb
File tree 3 files changed +22
-21
lines changed
3 files changed +22
-21
lines changed Original file line number Diff line number Diff line change
1
+ package event
2
+
3
+ import (
4
+ "github.com/libp2p/go-libp2p-core/network"
5
+ )
6
+
7
+ // EvtLocalReachabilityChanged is an event struct to be emitted when the local's
8
+ // node reachability changes state.
9
+ //
10
+ // This event is usually emitted by the AutoNAT subsystem.
11
+ type EvtLocalReachabilityChanged struct {
12
+ Reachability network.Reachability
13
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -53,22 +53,23 @@ const (
53
53
CannotConnect
54
54
)
55
55
56
- // Routability indicates how reachable a node is.
57
- type Routability int
56
+ // Reachability indicates how reachable a node is.
57
+ type Reachability int
58
58
59
59
const (
60
- // RoutabilityUnknown indicates that the routability status is unknown.
61
- RoutabilityUnknown = iota
60
+ // ReachabilityUnknown indicates that the reachability status of the
61
+ // node is unknown.
62
+ ReachabilityUnknown = iota
62
63
63
- // RoutabilityPublic indicates that the node is reachable from the
64
+ // ReachabilityPublic indicates that the node is reachable from the
64
65
// public internet.
65
- RoutabilityPublic
66
+ ReachabilityPublic
66
67
67
- // RoutabilityPrivate indicates that the node is not reachable from the
68
+ // ReachabilityPrivate indicates that the node is not reachable from the
68
69
// public internet.
69
70
//
70
71
// NOTE: This node may _still_ be reachable via relays.
71
- RoutabilityPrivate
72
+ ReachabilityPrivate
72
73
)
73
74
74
75
// Stat stores metadata pertaining to a given Stream/Conn.
You can’t perform that action at this time.
0 commit comments