go-libp2p-core/event/protocol.go

16 lines
746 B
Go
Raw Normal View History

package event
import (
2022-08-18 23:54:48 +08:00
"github.com/libp2p/go-libp2p/core/event"
)
// 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
// 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