mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2024-12-26 23:30:27 +08:00
52a4260be5
* event: Add autonat events (#25) * add events for identify (#26) * implement caching for rsaKey.Bytes() * store marshalled protobuf in cache for RsaPublicKey.Bytes() * fix(crypto): fix build when openssl is enabled * add godocs to routability events. Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com> Co-authored-by: Whyrusleeping <why@ipfs.io> Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com> Co-authored-by: Steven Allen <steven@stebalien.com>
18 lines
579 B
Go
18 lines
579 B
Go
package event
|
|
|
|
import "github.com/libp2p/go-libp2p-core/peer"
|
|
|
|
// 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
|
|
}
|