forked from skydive-project/skydive
-
Notifications
You must be signed in to change notification settings - Fork 1
/
flow.pb.go
220 lines (192 loc) · 9.29 KB
/
flow.pb.go
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
// Code generated by protoc-gen-go.
// source: flow/flow.proto
// DO NOT EDIT!
/*
Package flow is a generated protocol buffer package.
It is generated from these files:
flow/flow.proto
It has these top-level messages:
FlowEndpointStatistics
FlowEndpointsStatistics
FlowStatistics
Flow
*/
package flow
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.
const _ = proto.ProtoPackageIsVersion1
type FlowEndpointLayer int32
const (
FlowEndpointLayer_LINK FlowEndpointLayer = 0
FlowEndpointLayer_NETWORK FlowEndpointLayer = 1
FlowEndpointLayer_TRANSPORT FlowEndpointLayer = 2
)
var FlowEndpointLayer_name = map[int32]string{
0: "LINK",
1: "NETWORK",
2: "TRANSPORT",
}
var FlowEndpointLayer_value = map[string]int32{
"LINK": 0,
"NETWORK": 1,
"TRANSPORT": 2,
}
func (x FlowEndpointLayer) String() string {
return proto.EnumName(FlowEndpointLayer_name, int32(x))
}
func (FlowEndpointLayer) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type FlowEndpointType int32
const (
FlowEndpointType_ETHERNET FlowEndpointType = 0
FlowEndpointType_IPV4 FlowEndpointType = 1
FlowEndpointType_TCPPORT FlowEndpointType = 2
FlowEndpointType_UDPPORT FlowEndpointType = 3
FlowEndpointType_SCTPPORT FlowEndpointType = 4
FlowEndpointType_IPV6 FlowEndpointType = 5
)
var FlowEndpointType_name = map[int32]string{
0: "ETHERNET",
1: "IPV4",
2: "TCPPORT",
3: "UDPPORT",
4: "SCTPPORT",
5: "IPV6",
}
var FlowEndpointType_value = map[string]int32{
"ETHERNET": 0,
"IPV4": 1,
"TCPPORT": 2,
"UDPPORT": 3,
"SCTPPORT": 4,
"IPV6": 5,
}
func (x FlowEndpointType) String() string {
return proto.EnumName(FlowEndpointType_name, int32(x))
}
func (FlowEndpointType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
type FlowEndpointStatistics struct {
Value string `protobuf:"bytes,2,opt,name=Value" json:"Value,omitempty"`
Packets uint64 `protobuf:"varint,5,opt,name=Packets" json:"Packets,omitempty"`
Bytes uint64 `protobuf:"varint,6,opt,name=Bytes" json:"Bytes,omitempty"`
}
func (m *FlowEndpointStatistics) Reset() { *m = FlowEndpointStatistics{} }
func (m *FlowEndpointStatistics) String() string { return proto.CompactTextString(m) }
func (*FlowEndpointStatistics) ProtoMessage() {}
func (*FlowEndpointStatistics) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type FlowEndpointsStatistics struct {
Type FlowEndpointType `protobuf:"varint,1,opt,name=Type,enum=flow.FlowEndpointType" json:"Type,omitempty"`
Hash []byte `protobuf:"bytes,2,opt,name=Hash,proto3" json:"Hash,omitempty"`
AB *FlowEndpointStatistics `protobuf:"bytes,3,opt,name=AB" json:"AB,omitempty"`
BA *FlowEndpointStatistics `protobuf:"bytes,4,opt,name=BA" json:"BA,omitempty"`
}
func (m *FlowEndpointsStatistics) Reset() { *m = FlowEndpointsStatistics{} }
func (m *FlowEndpointsStatistics) String() string { return proto.CompactTextString(m) }
func (*FlowEndpointsStatistics) ProtoMessage() {}
func (*FlowEndpointsStatistics) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *FlowEndpointsStatistics) GetAB() *FlowEndpointStatistics {
if m != nil {
return m.AB
}
return nil
}
func (m *FlowEndpointsStatistics) GetBA() *FlowEndpointStatistics {
if m != nil {
return m.BA
}
return nil
}
type FlowStatistics struct {
Start int64 `protobuf:"varint,1,opt,name=Start" json:"Start,omitempty"`
Last int64 `protobuf:"varint,2,opt,name=Last" json:"Last,omitempty"`
Endpoints []*FlowEndpointsStatistics `protobuf:"bytes,3,rep,name=Endpoints" json:"Endpoints,omitempty"`
}
func (m *FlowStatistics) Reset() { *m = FlowStatistics{} }
func (m *FlowStatistics) String() string { return proto.CompactTextString(m) }
func (*FlowStatistics) ProtoMessage() {}
func (*FlowStatistics) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *FlowStatistics) GetEndpoints() []*FlowEndpointsStatistics {
if m != nil {
return m.Endpoints
}
return nil
}
type Flow struct {
// Flow Universally Unique IDentifier
//
// flow.UUID is unique in the universe, as it should be used as a key of an
// hashtable. By design 2 different flows, their UUID are always different.
// flow.UUID can be used as Database Index.
UUID string `protobuf:"bytes,1,opt,name=UUID" json:"UUID,omitempty"`
LayersPath string `protobuf:"bytes,2,opt,name=LayersPath" json:"LayersPath,omitempty"`
// Data Flow info
Statistics *FlowStatistics `protobuf:"bytes,3,opt,name=Statistics" json:"Statistics,omitempty"`
// Flow Tracking IDentifier, from 1st packet bytes
//
// flow.TrackingID could be used to identify an unique flow whatever it has
// been captured on the infrastructure. flow.TrackingID is calculated from
// the bytes of the first packet of his session.
// flow.TrackingID can be used as a Tag.
TrackingID string `protobuf:"bytes,5,opt,name=TrackingID" json:"TrackingID,omitempty"`
// Topology info
ProbeNodeUUID string `protobuf:"bytes,11,opt,name=ProbeNodeUUID" json:"ProbeNodeUUID,omitempty"`
IfSrcNodeUUID string `protobuf:"bytes,14,opt,name=IfSrcNodeUUID" json:"IfSrcNodeUUID,omitempty"`
IfDstNodeUUID string `protobuf:"bytes,19,opt,name=IfDstNodeUUID" json:"IfDstNodeUUID,omitempty"`
}
func (m *Flow) Reset() { *m = Flow{} }
func (m *Flow) String() string { return proto.CompactTextString(m) }
func (*Flow) ProtoMessage() {}
func (*Flow) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *Flow) GetStatistics() *FlowStatistics {
if m != nil {
return m.Statistics
}
return nil
}
func init() {
proto.RegisterType((*FlowEndpointStatistics)(nil), "flow.FlowEndpointStatistics")
proto.RegisterType((*FlowEndpointsStatistics)(nil), "flow.FlowEndpointsStatistics")
proto.RegisterType((*FlowStatistics)(nil), "flow.FlowStatistics")
proto.RegisterType((*Flow)(nil), "flow.Flow")
proto.RegisterEnum("flow.FlowEndpointLayer", FlowEndpointLayer_name, FlowEndpointLayer_value)
proto.RegisterEnum("flow.FlowEndpointType", FlowEndpointType_name, FlowEndpointType_value)
}
var fileDescriptor0 = []byte{
// 468 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x53, 0x41, 0x6f, 0xd3, 0x30,
0x14, 0xa6, 0x89, 0xb3, 0x2e, 0xaf, 0x6b, 0x09, 0x66, 0x1a, 0x39, 0x00, 0x42, 0x15, 0x07, 0x54,
0xa1, 0x21, 0x8d, 0x09, 0x09, 0x71, 0x6a, 0xd7, 0xa2, 0x55, 0x9b, 0xba, 0xc8, 0x75, 0xc7, 0x05,
0x21, 0xb9, 0x9d, 0x47, 0x23, 0xaa, 0x26, 0x8a, 0x3d, 0xa6, 0x5e, 0xf9, 0x4f, 0xfc, 0x3f, 0x9e,
0x9d, 0x2e, 0x31, 0xf4, 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