Documentation ¶
Index ¶
- Variables
- type NetworkAddress
- func (*NetworkAddress) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkAddress) GetNetwork() string
- func (x *NetworkAddress) GetPort() uint32
- func (*NetworkAddress) ProtoMessage()
- func (x *NetworkAddress) ProtoReflect() protoreflect.Message
- func (x *NetworkAddress) Reset()
- func (x *NetworkAddress) String() string
- type ServiceMap
Constants ¶
This section is empty.
Variables ¶
View Source
var File_autopeering_peer_service_proto_service_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type NetworkAddress ¶
type NetworkAddress struct { Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
The service type (e.g., tcp, upd) and the address (e.g., 198.51.100.1:80).
func (*NetworkAddress) Descriptor
deprecated
func (*NetworkAddress) Descriptor() ([]byte, []int)
Deprecated: Use NetworkAddress.ProtoReflect.Descriptor instead.
func (*NetworkAddress) GetNetwork ¶
func (x *NetworkAddress) GetNetwork() string
func (*NetworkAddress) GetPort ¶
func (x *NetworkAddress) GetPort() uint32
func (*NetworkAddress) ProtoMessage ¶
func (*NetworkAddress) ProtoMessage()
func (*NetworkAddress) ProtoReflect ¶
func (x *NetworkAddress) ProtoReflect() protoreflect.Message
func (*NetworkAddress) Reset ¶
func (x *NetworkAddress) Reset()
func (*NetworkAddress) String ¶
func (x *NetworkAddress) String() string
type ServiceMap ¶
type ServiceMap struct { Map map[string]*NetworkAddress `` /* 147-byte string literal not displayed */ // contains filtered or unexported fields }
Mapping between a service ID and its tuple network_address e.g., map[autopeering:&{tcp, 198.51.100.1:80}].
func (*ServiceMap) Descriptor
deprecated
func (*ServiceMap) Descriptor() ([]byte, []int)
Deprecated: Use ServiceMap.ProtoReflect.Descriptor instead.
func (*ServiceMap) GetMap ¶
func (x *ServiceMap) GetMap() map[string]*NetworkAddress
func (*ServiceMap) ProtoMessage ¶
func (*ServiceMap) ProtoMessage()
func (*ServiceMap) ProtoReflect ¶
func (x *ServiceMap) ProtoReflect() protoreflect.Message
func (*ServiceMap) Reset ¶
func (x *ServiceMap) Reset()
func (*ServiceMap) String ¶
func (x *ServiceMap) String() string
Click to show internal directories.
Click to hide internal directories.