go-libp2p-core/event/routability.go
Steven Allen 8157087fc9 feat: switch to a single routability event
This means we can make the event _stateful_ so subscribing always gives us the
last state.
2020-03-04 11:35:48 -08:00

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
}