Documentation
¶
Overview ¶
Package net is a generated protocol buffer package.
It is generated from these files:
net.proto
It has these top-level messages:
IPAddress IPv6 TcpAddress
Index ¶
- type IPAddress
- func (*IPAddress) Descriptor() ([]byte, []int)
- func (m *IPAddress) GetIp() isIPAddress_Ip
- func (m *IPAddress) GetIpv4() uint32
- func (m *IPAddress) GetIpv6() *IPv6
- func (*IPAddress) ProtoMessage()
- func (m *IPAddress) Reset()
- func (m *IPAddress) String() string
- func (*IPAddress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type IPAddress_Ipv4
- type IPAddress_Ipv6
- type IPv6
- type TcpAddress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPAddress ¶
type IPAddress struct {
// Types that are valid to be assigned to Ip:
// *IPAddress_Ipv4
// *IPAddress_Ipv6
Ip isIPAddress_Ip `protobuf_oneof:"ip"`
}
func (*IPAddress) Descriptor ¶
func (*IPAddress) ProtoMessage ¶
func (*IPAddress) ProtoMessage()
type IPAddress_Ipv4 ¶
type IPAddress_Ipv4 struct {
Ipv4 uint32 `protobuf:"fixed32,1,opt,name=ipv4,oneof"`
}
type IPAddress_Ipv6 ¶
type IPAddress_Ipv6 struct {
Ipv6 *IPv6 `protobuf:"bytes,2,opt,name=ipv6,oneof"`
}
type IPv6 ¶
type IPv6 struct {
First uint64 `protobuf:"fixed64,1,opt,name=first" json:"first,omitempty"`
Last uint64 `protobuf:"fixed64,2,opt,name=last" json:"last,omitempty"`
}
func (*IPv6) Descriptor ¶
func (*IPv6) ProtoMessage ¶
func (*IPv6) ProtoMessage()
type TcpAddress ¶
type TcpAddress struct {
Ip *IPAddress `protobuf:"bytes,1,opt,name=ip" json:"ip,omitempty"`
Port uint32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"`
}
func (*TcpAddress) Descriptor ¶
func (*TcpAddress) Descriptor() ([]byte, []int)
func (*TcpAddress) GetIp ¶
func (m *TcpAddress) GetIp() *IPAddress
func (*TcpAddress) GetPort ¶
func (m *TcpAddress) GetPort() uint32
func (*TcpAddress) ProtoMessage ¶
func (*TcpAddress) ProtoMessage()
func (*TcpAddress) Reset ¶
func (m *TcpAddress) Reset()
func (*TcpAddress) String ¶
func (m *TcpAddress) String() string
Click to show internal directories.
Click to hide internal directories.