Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/bio-routing/bio-rd/net/api/net.proto
/*
Package api is a generated protocol buffer package.
It is generated from these files:
github.com/bio-routing/bio-rd/net/api/net.proto
It has these top-level messages:
Prefix
IP
*/
package api
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type IP_Version int32
const (
IP_IPv4 IP_Version = 0
IP_IPv6 IP_Version = 1
)
var IP_Version_name = map[int32]string{
0: "IPv4",
1: "IPv6",
}
var IP_Version_value = map[string]int32{
"IPv4": 0,
"IPv6": 1,
}
func (x IP_Version) String() string {
return proto.EnumName(IP_Version_name, int32(x))
}
func (IP_Version) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
type Prefix struct {
Address *IP `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
Pfxlen uint32 `protobuf:"varint,2,opt,name=pfxlen" json:"pfxlen,omitempty"`
}
func (m *Prefix) Reset() { *m = Prefix{} }
func (m *Prefix) String() string { return proto.CompactTextString(m) }
func (*Prefix) ProtoMessage() {}
func (*Prefix) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Prefix) GetAddress() *IP {
if m != nil {
return m.Address
}
return nil
}
func (m *Prefix) GetPfxlen() uint32 {
if m != nil {
return m.Pfxlen
}
return 0
}
type IP struct {
Higher uint64 `protobuf:"varint,1,opt,name=higher" json:"higher,omitempty"`
Lower uint64 `protobuf:"varint,2,opt,name=lower" json:"lower,omitempty"`
Version IP_Version `protobuf:"varint,3,opt,name=version,enum=bio.net.IP_Version" json:"version,omitempty"`
}
func (m *IP) Reset() { *m = IP{} }
func (m *IP) String() string { return proto.CompactTextString(m) }
func (*IP) ProtoMessage() {}
func (*IP) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *IP) GetHigher() uint64 {
if m != nil {
return m.Higher
}
return 0
}
func (m *IP) GetLower() uint64 {
if m != nil {
return m.Lower
}
return 0
}
func (m *IP) GetVersion() IP_Version {
if m != nil {
return m.Version
}
return IP_IPv4
}
func init() {
proto.RegisterType((*Prefix)(nil), "bio.net.Prefix")
proto.RegisterType((*IP)(nil), "bio.net.IP")
proto.RegisterEnum("bio.net.IP_Version", IP_Version_name, IP_Version_value)
}
func init() { proto.RegisterFile("github.com/bio-routing/bio-rd/net/api/net.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 228 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4f, 0xcf, 0x2c, 0xc9,
0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xca, 0xcc, 0xd7, 0x2d, 0xca, 0x2f, 0x2d, 0xc9,
0xcc, 0x4b, 0x87, 0xb0, 0x53, 0xf4, 0xf3, 0x52, 0x4b, 0xf4, 0x13, 0x0b, 0x32, 0x41, 0xb4, 0x5e,
0x41, 0x51, 0x7e, 0x49, 0xbe, 0x10, 0x7b, 0x52, 0x66, 0xbe, 0x5e, 0x5e, 0x6a, 0x89, 0x92, 0x3b,
0x17, 0x5b, 0x40, 0x51, 0x6a, 0x5a, 0x66, 0x85, 0x90, 0x2a, 0x17, 0x7b, 0x62, 0x4a, 0x4a, 0x51,
0x6a, 0x71, 0xb1, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xb7, 0x11, 0xb7, 0x1e, 0x54, 0x91, 0x9e, 0x67,
0x40, 0x10, 0x4c, 0x4e, 0x48, 0x8c, 0x8b, 0xad, 0x20, 0xad, 0x22, 0x27, 0x35, 0x4f, 0x82, 0x49,
0x81, 0x51, 0x83, 0x37, 0x08, 0xca, 0x53, 0x6a, 0x60, 0xe4, 0x62, 0xf2, 0x0c, 0x00, 0x49, 0x67,
0x64, 0xa6, 0x67, 0xa4, 0x16, 0x81, 0x0d, 0x61, 0x09, 0x82, 0xf2, 0x84, 0x44, 0xb8, 0x58, 0x73,
0xf2, 0xcb, 0x53, 0x8b, 0xc0, 0xba, 0x58, 0x82, 0x20, 0x1c, 0x21, 0x5d, 0x2e, 0xf6, 0xb2, 0xd4,
0xa2, 0xe2, 0xcc, 0xfc, 0x3c, 0x09, 0x66, 0x05, 0x46, 0x0d, 0x3e, 0x23, 0x61, 0x24, 0x3b, 0xf5,
0xc2, 0x20, 0x52, 0x41, 0x30, 0x35, 0x4a, 0xb2, 0x5c, 0xec, 0x50, 0x31, 0x21, 0x0e, 0x2e, 0x16,
0xcf, 0x80, 0x32, 0x13, 0x01, 0x06, 0x28, 0xcb, 0x4c, 0x80, 0xd1, 0x49, 0x3d, 0x4a, 0x95, 0xa8,
0x70, 0x48, 0x62, 0x03, 0x07, 0x82, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xe8, 0xba, 0xb6, 0x37,
0x37, 0x01, 0x00, 0x00,
}