2019-06-20 22:59:53 +08:00
|
|
|
package event
|
|
|
|
|
|
|
|
import (
|
2022-08-18 23:54:48 +08:00
|
|
|
"github.com/libp2p/go-libp2p/core/event"
|
2019-06-20 22:59:53 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// EvtPeerProtocolsUpdated should be emitted when a peer we're connected to adds or removes protocols from their stack.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/event.EvtPeerProtocolsUpdated instead
|
|
|
|
type EvtPeerProtocolsUpdated = event.EvtPeerProtocolsUpdated
|
2019-06-20 22:59:53 +08:00
|
|
|
|
|
|
|
// EvtLocalProtocolsUpdated should be emitted when stream handlers are attached or detached from the local host.
|
|
|
|
// For handlers attached with a matcher predicate (host.SetStreamHandlerMatch()), only the protocol ID will be
|
|
|
|
// included in this event.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/event.EvtLocalProtocolsUpdated instead
|
|
|
|
type EvtLocalProtocolsUpdated = event.EvtLocalProtocolsUpdated
|