api

package
v0.0.3-pre4.0...-0ec3cfc Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IP_Version_name = map[int32]string{
	0: "IPv4",
	1: "IPv6",
}
View Source
var IP_Version_value = map[string]int32{
	"IPv4": 0,
	"IPv6": 1,
}

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"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*IP) Descriptor

func (*IP) Descriptor() ([]byte, []int)

func (*IP) GetHigher

func (m *IP) GetHigher() uint64

func (*IP) GetLower

func (m *IP) GetLower() uint64

func (*IP) GetVersion

func (m *IP) GetVersion() IP_Version

func (*IP) ProtoMessage

func (*IP) ProtoMessage()

func (*IP) Reset

func (m *IP) Reset()

func (*IP) String

func (m *IP) String() string

func (*IP) XXX_DiscardUnknown

func (m *IP) XXX_DiscardUnknown()

func (*IP) XXX_Marshal

func (m *IP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IP) XXX_Merge

func (m *IP) XXX_Merge(src proto.Message)

func (*IP) XXX_Size

func (m *IP) XXX_Size() int

func (*IP) XXX_Unmarshal

func (m *IP) XXX_Unmarshal(b []byte) error

type IP_Version

type IP_Version int32
const (
	IP_IPv4 IP_Version = 0
	IP_IPv6 IP_Version = 1
)

func (IP_Version) EnumDescriptor

func (IP_Version) EnumDescriptor() ([]byte, []int)

func (IP_Version) String

func (x IP_Version) String() string

type Prefix

type Prefix struct {
	Address              *IP      `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Pfxlen               uint32   `protobuf:"varint,2,opt,name=pfxlen,proto3" json:"pfxlen,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Prefix) Descriptor

func (*Prefix) Descriptor() ([]byte, []int)

func (*Prefix) GetAddress

func (m *Prefix) GetAddress() *IP

func (*Prefix) GetPfxlen

func (m *Prefix) GetPfxlen() uint32

func (*Prefix) ProtoMessage

func (*Prefix) ProtoMessage()

func (*Prefix) Reset

func (m *Prefix) Reset()

func (*Prefix) String

func (m *Prefix) String() string

func (*Prefix) XXX_DiscardUnknown

func (m *Prefix) XXX_DiscardUnknown()

func (*Prefix) XXX_Marshal

func (m *Prefix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Prefix) XXX_Merge

func (m *Prefix) XXX_Merge(src proto.Message)

func (*Prefix) XXX_Size

func (m *Prefix) XXX_Size() int

func (*Prefix) XXX_Unmarshal

func (m *Prefix) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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