mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-03-20 12:00:07 +08:00
This means we can make the event _stateful_ so subscribing always gives us the last state.
14 lines
310 B
Go
14 lines
310 B
Go
package event
|
|
|
|
import (
|
|
"github.com/libp2p/go-libp2p-core/network"
|
|
)
|
|
|
|
// 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 EvtLocalRoutability struct {
|
|
Routability network.Routability
|
|
}
|