identify.go 577 Bytes
Newer Older
1 2
package event

tavit ohanian's avatar
tavit ohanian committed
3
import "gitlab.dms3.io/p2p/go-p2p-core/peer"
4 5 6 7 8 9 10 11 12 13 14 15 16 17

// EvtPeerIdentificationCompleted is emitted when the initial identification round for a peer is completed.
type EvtPeerIdentificationCompleted struct {
	// Peer is the ID of the peer whose identification succeeded.
	Peer peer.ID
}

// EvtPeerIdentificationFailed is emitted when the initial identification round for a peer failed.
type EvtPeerIdentificationFailed struct {
	// Peer is the ID of the peer whose identification failed.
	Peer peer.ID
	// Reason is the reason why identification failed.
	Reason error
}