api

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

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) Descriptor() ([]byte, []int)

Deprecated: Use IP.ProtoReflect.Descriptor instead.

func (*IP) GetHigher

func (x *IP) GetHigher() uint64

func (*IP) GetLower

func (x *IP) GetLower() uint64

func (*IP) GetVersion

func (x *IP) GetVersion() IP_Version

func (*IP) ProtoMessage

func (*IP) ProtoMessage()

func (*IP) ProtoReflect

func (x *IP) ProtoReflect() protoreflect.Message

func (*IP) Reset

func (x *IP) Reset()

func (*IP) String

func (x *IP) String() string

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Prefix.ProtoReflect.Descriptor instead.

func (*Prefix) GetAddress

func (x *Prefix) GetAddress() *IP

func (*Prefix) GetLength added in v0.1.3

func (x *Prefix) GetLength() uint32

func (*Prefix) ProtoMessage

func (*Prefix) ProtoMessage()

func (*Prefix) ProtoReflect

func (x *Prefix) ProtoReflect() protoreflect.Message

func (*Prefix) Reset

func (x *Prefix) Reset()

func (*Prefix) String

func (x *Prefix) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL