Documentation ¶
Index ¶
- Variables
- type Identify
- func (*Identify) Descriptor() ([]byte, []int)deprecated
- func (x *Identify) GetAgentVersion() string
- func (x *Identify) GetListenAddrs() [][]byte
- func (x *Identify) GetObservedAddr() []byte
- func (x *Identify) GetProtocolVersion() string
- func (x *Identify) GetProtocols() []string
- func (x *Identify) GetPublicKey() []byte
- func (x *Identify) GetSignedPeerRecord() []byte
- func (*Identify) ProtoMessage()
- func (x *Identify) ProtoReflect() protoreflect.Message
- func (x *Identify) Reset()
- func (x *Identify) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pb_identify_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Identify ¶
type Identify struct { // protocolVersion determines compatibility between peers ProtocolVersion *string `protobuf:"bytes,5,opt,name=protocolVersion" json:"protocolVersion,omitempty"` // e.g. ipfs/1.0.0 // agentVersion is like a UserAgent string in browsers, or client version in bittorrent // includes the client name and client. AgentVersion *string `protobuf:"bytes,6,opt,name=agentVersion" json:"agentVersion,omitempty"` // e.g. go-ipfs/0.1.0 // 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. PublicKey []byte `protobuf:"bytes,1,opt,name=publicKey" json:"publicKey,omitempty"` // listenAddrs are the multiaddrs the sender node listens for open connections on ListenAddrs [][]byte `protobuf:"bytes,2,rep,name=listenAddrs" json:"listenAddrs,omitempty"` // 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. ObservedAddr []byte `protobuf:"bytes,4,opt,name=observedAddr" json:"observedAddr,omitempty"` // protocols are the services this node is running Protocols []string `protobuf:"bytes,3,rep,name=protocols" json:"protocols,omitempty"` // 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/seqsy/go-libp2p/core/record/pb/envelope.proto and // github.com/seqsy/go-libp2p/core/peer/pb/peer_record.proto for message definitions. SignedPeerRecord []byte `protobuf:"bytes,8,opt,name=signedPeerRecord" json:"signedPeerRecord,omitempty"` // contains filtered or unexported fields }
func (*Identify) Descriptor
deprecated
func (*Identify) GetAgentVersion ¶
func (*Identify) GetListenAddrs ¶
func (*Identify) GetObservedAddr ¶
func (*Identify) GetProtocolVersion ¶
func (*Identify) GetProtocols ¶
func (*Identify) GetPublicKey ¶
func (*Identify) GetSignedPeerRecord ¶
func (*Identify) ProtoMessage ¶
func (*Identify) ProtoMessage()
func (*Identify) ProtoReflect ¶
func (x *Identify) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.