Documentation
¶
Index ¶
- Variables
- type AddrPort
- func (*AddrPort) Descriptor() ([]byte, []int)deprecated
- func (x *AddrPort) GetAddr() *IP
- func (x *AddrPort) GetPort() uint32
- func (x *AddrPort) MarshalBinary() (data []byte, err error)
- func (x *AddrPort) MarshalText() ([]byte, error)
- func (x *AddrPort) NetAddrPort() netip.AddrPort
- func (*AddrPort) ProtoMessage()
- func (x *AddrPort) ProtoReflect() protoreflect.Message
- func (x *AddrPort) Reset()
- func (x *AddrPort) Scan(src any) error
- func (x *AddrPort) SetAddrPort(ap netip.AddrPort)
- func (x *AddrPort) String() string
- func (x *AddrPort) UnmarshalBinary(data []byte) error
- func (x *AddrPort) UnmarshalText(text []byte) error
- func (x *AddrPort) Value() (driver.Value, error)
- type IP
- func (*IP) Descriptor() ([]byte, []int)deprecated
- func (m *IP) GetAddr() isIP_Addr
- func (x *IP) GetV4() *IPv4
- func (x *IP) GetV6() *IPv6
- func (x *IP) IsIPv4() bool
- func (x *IP) IsIPv6() bool
- func (x *IP) MarshalBinary() (data []byte, err error)
- func (x *IP) MarshalText() ([]byte, error)
- func (x *IP) NetIP() netip.Addr
- func (*IP) ProtoMessage()
- func (x *IP) ProtoReflect() protoreflect.Message
- func (x *IP) Reset()
- func (x *IP) Scan(src any) error
- func (x *IP) SetIP(ip netip.Addr)
- func (x *IP) String() string
- func (x *IP) UnmarshalBinary(data []byte) error
- func (x *IP) UnmarshalText(text []byte) error
- func (x *IP) Value() (driver.Value, error)
- type IP_V4
- type IP_V6
- type IPv4
- type IPv6
- type Prefix
- func (*Prefix) Descriptor() ([]byte, []int)deprecated
- func (x *Prefix) GetAddr() *IP
- func (x *Prefix) GetBits() int32
- func (x *Prefix) NetPrefix() netip.Prefix
- func (*Prefix) ProtoMessage()
- func (x *Prefix) ProtoReflect() protoreflect.Message
- func (x *Prefix) Reset()
- func (x *Prefix) SetPrefix(p netip.Prefix)
- func (x *Prefix) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_ip_v1_ip_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AddrPort ¶
type AddrPort struct { Addr *IP `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
func (*AddrPort) Descriptor
deprecated
func (*AddrPort) MarshalBinary ¶
func (*AddrPort) MarshalText ¶
func (*AddrPort) NetAddrPort ¶
func (*AddrPort) ProtoMessage ¶
func (*AddrPort) ProtoMessage()
func (*AddrPort) ProtoReflect ¶
func (x *AddrPort) ProtoReflect() protoreflect.Message
func (*AddrPort) SetAddrPort ¶
func (*AddrPort) UnmarshalBinary ¶
func (*AddrPort) UnmarshalText ¶
type IP ¶
type IP struct { // Types that are assignable to Addr: // // *IP_V4 // *IP_V6 Addr isIP_Addr `protobuf_oneof:"addr"` // contains filtered or unexported fields }
func (*IP) Descriptor
deprecated
func (*IP) MarshalBinary ¶
func (*IP) MarshalText ¶
func (*IP) ProtoMessage ¶
func (*IP) ProtoMessage()
func (*IP) ProtoReflect ¶
func (x *IP) ProtoReflect() protoreflect.Message
func (*IP) UnmarshalBinary ¶
func (*IP) UnmarshalText ¶
type IPv4 ¶
type IPv4 struct { Ip uint32 `protobuf:"fixed32,1,opt,name=ip,proto3" json:"ip,omitempty"` // contains filtered or unexported fields }
func (*IPv4) Descriptor
deprecated
func (*IPv4) ProtoMessage ¶
func (*IPv4) ProtoMessage()
func (*IPv4) ProtoReflect ¶
func (x *IPv4) ProtoReflect() protoreflect.Message
type IPv6 ¶
type IPv6 struct { Hi uint64 `protobuf:"fixed64,1,opt,name=hi,proto3" json:"hi,omitempty"` Lo uint64 `protobuf:"fixed64,2,opt,name=lo,proto3" json:"lo,omitempty"` // contains filtered or unexported fields }
func (*IPv6) Descriptor
deprecated
func (*IPv6) ProtoMessage ¶
func (*IPv6) ProtoMessage()
func (*IPv6) ProtoReflect ¶
func (x *IPv6) ProtoReflect() protoreflect.Message
type Prefix ¶
type Prefix struct { Addr *IP `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Bits int32 `protobuf:"varint,2,opt,name=bits,proto3" json:"bits,omitempty"` // contains filtered or unexported fields }
func (*Prefix) Descriptor
deprecated
func (*Prefix) ProtoMessage ¶
func (*Prefix) ProtoMessage()
func (*Prefix) ProtoReflect ¶
func (x *Prefix) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.