Documentation ¶
Index ¶
- Variables
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)deprecated
- func (x *Peer) GetId() string
- func (x *Peer) GetIp() string
- func (x *Peer) GetLatency() *wrapperspb.UInt64Value
- func (x *Peer) GetPort() *wrapperspb.UInt32Value
- func (x *Peer) GetProtocolVersion() string
- func (x *Peer) GetProtocols() []string
- func (x *Peer) GetUserAgent() string
- func (*Peer) ProtoMessage()
- func (x *Peer) ProtoReflect() protoreflect.Message
- func (x *Peer) Reset()
- func (x *Peer) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pkg_proto_libp2p_peer_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer struct { // ID is the ID of the peer. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Port is the port of the peer. Port *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"` // IP is the IP of the peer. Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` // UserAgent is the user agent of the peer. UserAgent string `protobuf:"bytes,4,opt,name=user_agent,proto3" json:"user_agent,omitempty"` // ProtocolVersion is the protocol version of the peer. ProtocolVersion string `protobuf:"bytes,5,opt,name=protocol_version,proto3" json:"protocol_version,omitempty"` // Protocols is the protocols of the peer. Protocols []string `protobuf:"bytes,6,rep,name=protocols,proto3" json:"protocols,omitempty"` // Latency is the latency of the peer (in milliseconds). Latency *wrapperspb.UInt64Value `protobuf:"bytes,7,opt,name=latency,proto3" json:"latency,omitempty"` // contains filtered or unexported fields }
func (*Peer) Descriptor
deprecated
func (*Peer) GetLatency ¶
func (x *Peer) GetLatency() *wrapperspb.UInt64Value
func (*Peer) GetPort ¶
func (x *Peer) GetPort() *wrapperspb.UInt32Value
func (*Peer) GetProtocolVersion ¶
func (*Peer) GetProtocols ¶
func (*Peer) GetUserAgent ¶
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
func (*Peer) ProtoReflect ¶
func (x *Peer) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.