Documentation ¶
Index ¶
- Variables
- type IPAddress
- func (*IPAddress) Descriptor() ([]byte, []int)deprecated
- func (m *IPAddress) GetIp() isIPAddress_Ip
- func (x *IPAddress) GetIpv4() uint32
- func (x *IPAddress) GetIpv6() *IPv6
- func (*IPAddress) ProtoMessage()
- func (x *IPAddress) ProtoReflect() protoreflect.Message
- func (x *IPAddress) Reset()
- func (x *IPAddress) String() string
- type IPAddress_Ipv4
- type IPAddress_Ipv6
- type IPNetwork
- type IPv6
- type TcpAddress
Constants ¶
This section is empty.
Variables ¶
View Source
var File_net_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type IPAddress ¶
type IPAddress struct { // Types that are assignable to Ip: // // *IPAddress_Ipv4 // *IPAddress_Ipv6 Ip isIPAddress_Ip `protobuf_oneof:"ip"` // contains filtered or unexported fields }
func (*IPAddress) Descriptor
deprecated
func (*IPAddress) ProtoMessage ¶
func (*IPAddress) ProtoMessage()
func (*IPAddress) ProtoReflect ¶ added in v0.1.13
func (x *IPAddress) ProtoReflect() protoreflect.Message
type IPAddress_Ipv4 ¶
type IPAddress_Ipv4 struct {
Ipv4 uint32 `protobuf:"fixed32,1,opt,name=ipv4,proto3,oneof"`
}
type IPAddress_Ipv6 ¶
type IPAddress_Ipv6 struct {
Ipv6 *IPv6 `protobuf:"bytes,2,opt,name=ipv6,proto3,oneof"`
}
type IPNetwork ¶ added in v0.2.0
type IPNetwork struct { Ip *IPAddress `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` PrefixLen uint32 `protobuf:"varint,2,opt,name=prefix_len,json=prefixLen,proto3" json:"prefix_len,omitempty"` // contains filtered or unexported fields }
func (*IPNetwork) Descriptor
deprecated
added in
v0.2.0
func (*IPNetwork) GetPrefixLen ¶ added in v0.2.0
func (*IPNetwork) ProtoMessage ¶ added in v0.2.0
func (*IPNetwork) ProtoMessage()
func (*IPNetwork) ProtoReflect ¶ added in v0.2.0
func (x *IPNetwork) ProtoReflect() protoreflect.Message
type IPv6 ¶
type IPv6 struct { First uint64 `protobuf:"fixed64,1,opt,name=first,proto3" json:"first,omitempty"` // hextets 1-4 Last uint64 `protobuf:"fixed64,2,opt,name=last,proto3" json:"last,omitempty"` // hextets 5-8 // contains filtered or unexported fields }
func (*IPv6) Descriptor
deprecated
func (*IPv6) ProtoMessage ¶
func (*IPv6) ProtoMessage()
func (*IPv6) ProtoReflect ¶ added in v0.1.13
func (x *IPv6) ProtoReflect() protoreflect.Message
type TcpAddress ¶
type TcpAddress struct { Ip *IPAddress `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
func (*TcpAddress) Descriptor
deprecated
func (*TcpAddress) Descriptor() ([]byte, []int)
Deprecated: Use TcpAddress.ProtoReflect.Descriptor instead.
func (*TcpAddress) GetIp ¶
func (x *TcpAddress) GetIp() *IPAddress
func (*TcpAddress) GetPort ¶
func (x *TcpAddress) GetPort() uint32
func (*TcpAddress) ProtoMessage ¶
func (*TcpAddress) ProtoMessage()
func (*TcpAddress) ProtoReflect ¶ added in v0.1.13
func (x *TcpAddress) ProtoReflect() protoreflect.Message
func (*TcpAddress) Reset ¶
func (x *TcpAddress) Reset()
func (*TcpAddress) String ¶
func (x *TcpAddress) String() string
Click to show internal directories.
Click to hide internal directories.