package pb
Import Path
github.com/libp2p/go-libp2p/p2p/protocol/identify/pb (on go.dev)
Dependency Relation
imports 5 packages, and imported by one package
Involved Source Files
identify.pb.go
Package-Level Type Names (only one)
agentVersion is like a UserAgent string in browsers, or client version in bittorrent
includes the client name and client.
// e.g. go-ipfs/0.1.0
listenAddrs are the multiaddrs the sender node listens for open connections on
oservedAddr is the multiaddr of the remote endpoint that the sender node perceives
this is useful information to convey to the other side, as it helps the remote endpoint
determine whether its connection to the local peer goes through NAT.
protocolVersion determines compatibility between peers
// e.g. ipfs/1.0.0
protocols are the services this node is running
publicKey is this node's public key (which also gives its node.ID)
- may not need to be sent, as secure channel implies it has been sent.
- then again, if we change / disable secure channel, may still want it.
signedPeerRecord contains a serialized SignedEnvelope containing a PeerRecord,
signed by the sending node. It contains the same addresses as the listenAddrs field, but
in a form that lets us share authenticated addrs with other peers.
see github.com/libp2p/go-libp2p/core/record/pb/envelope.proto and
github.com/libp2p/go-libp2p/core/peer/pb/peer_record.proto for message definitions.
Deprecated: Use Identify.ProtoReflect.Descriptor instead.
(*Identify) GetAgentVersion() string
(*Identify) GetListenAddrs() [][]byte
(*Identify) GetObservedAddr() []byte
(*Identify) GetProtocolVersion() string
(*Identify) GetProtocols() []string
(*Identify) GetPublicKey() []byte
(*Identify) GetSignedPeerRecord() []byte
(*Identify) ProtoMessage()
(*Identify) ProtoReflect() protoreflect.Message
(*Identify) Reset()
(*Identify) String() string
*Identify : github.com/gogo/protobuf/proto.Message
*Identify : expvar.Var
*Identify : fmt.Stringer
*Identify : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*Identify : google.golang.org/protobuf/runtime/protoiface.MessageV1
Package-Level Variables (only one)
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |