Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IP_Version_name = map[int32]string{ 0: "IPv4", 1: "IPv6", } IP_Version_value = map[string]int32{ "IPv4": 0, "IPv6": 1, } )
Enum value maps for IP_Version.
View Source
var File_net_api_net_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type IP ¶
type IP struct { Higher uint64 `protobuf:"varint,1,opt,name=higher,proto3" json:"higher,omitempty"` Lower uint64 `protobuf:"varint,2,opt,name=lower,proto3" json:"lower,omitempty"` Version IP_Version `protobuf:"varint,3,opt,name=version,proto3,enum=bio.net.IP_Version" json:"version,omitempty"` // contains filtered or unexported fields }
func (*IP) Descriptor
deprecated
func (*IP) GetVersion ¶
func (x *IP) GetVersion() IP_Version
func (*IP) ProtoMessage ¶
func (*IP) ProtoMessage()
func (*IP) ProtoReflect ¶
func (x *IP) ProtoReflect() protoreflect.Message
type IP_Version ¶
type IP_Version int32
const ( IP_IPv4 IP_Version = 0 IP_IPv6 IP_Version = 1 )
func (IP_Version) Descriptor ¶
func (IP_Version) Descriptor() protoreflect.EnumDescriptor
func (IP_Version) Enum ¶
func (x IP_Version) Enum() *IP_Version
func (IP_Version) EnumDescriptor
deprecated
func (IP_Version) EnumDescriptor() ([]byte, []int)
Deprecated: Use IP_Version.Descriptor instead.
func (IP_Version) Number ¶
func (x IP_Version) Number() protoreflect.EnumNumber
func (IP_Version) String ¶
func (x IP_Version) String() string
func (IP_Version) Type ¶
func (IP_Version) Type() protoreflect.EnumType
type Prefix ¶
type Prefix struct { Address *IP `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Length uint32 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` // contains filtered or unexported fields }
func (*Prefix) Descriptor
deprecated
func (*Prefix) GetAddress ¶
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.