forked from cloudfoundry/gorouter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
http.pb.go
278 lines (240 loc) · 6.9 KB
/
http.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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
// Code generated by protoc-gen-gogo.
// source: http.proto
// DO NOT EDIT!
package events
import proto "code.google.com/p/gogoprotobuf/proto"
import json "encoding/json"
import math "math"
// Reference proto, json, and math imports to suppress error if they are not otherwise used.
var _ = proto.Marshal
var _ = &json.SyntaxError{}
var _ = math.Inf
type PeerType int32
const (
PeerType_Client PeerType = 1
PeerType_Server PeerType = 2
)
var PeerType_name = map[int32]string{
1: "Client",
2: "Server",
}
var PeerType_value = map[string]int32{
"Client": 1,
"Server": 2,
}
func (x PeerType) Enum() *PeerType {
p := new(PeerType)
*p = x
return p
}
func (x PeerType) String() string {
return proto.EnumName(PeerType_name, int32(x))
}
func (x *PeerType) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(PeerType_value, data, "PeerType")
if err != nil {
return err
}
*x = PeerType(value)
return nil
}
type HttpStart_Method int32
const (
HttpStart_GET HttpStart_Method = 1
HttpStart_POST HttpStart_Method = 2
HttpStart_PUT HttpStart_Method = 3
HttpStart_DELETE HttpStart_Method = 4
HttpStart_HEAD HttpStart_Method = 5
)
var HttpStart_Method_name = map[int32]string{
1: "GET",
2: "POST",
3: "PUT",
4: "DELETE",
5: "HEAD",
}
var HttpStart_Method_value = map[string]int32{
"GET": 1,
"POST": 2,
"PUT": 3,
"DELETE": 4,
"HEAD": 5,
}
func (x HttpStart_Method) Enum() *HttpStart_Method {
p := new(HttpStart_Method)
*p = x
return p
}
func (x HttpStart_Method) String() string {
return proto.EnumName(HttpStart_Method_name, int32(x))
}
func (x *HttpStart_Method) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(HttpStart_Method_value, data, "HttpStart_Method")
if err != nil {
return err
}
*x = HttpStart_Method(value)
return nil
}
type UUID struct {
Low *uint64 `protobuf:"varint,1,req,name=low" json:"low,omitempty"`
High *uint64 `protobuf:"varint,2,req,name=high" json:"high,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *UUID) Reset() { *m = UUID{} }
func (m *UUID) String() string { return proto.CompactTextString(m) }
func (*UUID) ProtoMessage() {}
func (m *UUID) GetLow() uint64 {
if m != nil && m.Low != nil {
return *m.Low
}
return 0
}
func (m *UUID) GetHigh() uint64 {
if m != nil && m.High != nil {
return *m.High
}
return 0
}
type HttpStart struct {
Timestamp *int64 `protobuf:"varint,1,req,name=timestamp" json:"timestamp,omitempty"`
RequestId *UUID `protobuf:"bytes,2,req,name=requestId" json:"requestId,omitempty"`
PeerType *PeerType `protobuf:"varint,3,req,name=peerType,enum=events.PeerType" json:"peerType,omitempty"`
Method *HttpStart_Method `protobuf:"varint,4,req,name=method,enum=events.HttpStart_Method" json:"method,omitempty"`
Uri *string `protobuf:"bytes,5,req,name=uri" json:"uri,omitempty"`
RemoteAddress *string `protobuf:"bytes,6,req,name=remoteAddress" json:"remoteAddress,omitempty"`
UserAgent *string `protobuf:"bytes,7,req,name=userAgent" json:"userAgent,omitempty"`
ParentRequestId *UUID `protobuf:"bytes,8,opt,name=parentRequestId" json:"parentRequestId,omitempty"`
ApplicationId *UUID `protobuf:"bytes,9,opt,name=applicationId" json:"applicationId,omitempty"`
InstanceIndex *int32 `protobuf:"varint,10,opt,name=instanceIndex" json:"instanceIndex,omitempty"`
InstanceId *string `protobuf:"bytes,11,opt,name=instanceId" json:"instanceId,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *HttpStart) Reset() { *m = HttpStart{} }
func (m *HttpStart) String() string { return proto.CompactTextString(m) }
func (*HttpStart) ProtoMessage() {}
func (m *HttpStart) GetTimestamp() int64 {
if m != nil && m.Timestamp != nil {
return *m.Timestamp
}
return 0
}
func (m *HttpStart) GetRequestId() *UUID {
if m != nil {
return m.RequestId
}
return nil
}
func (m *HttpStart) GetPeerType() PeerType {
if m != nil && m.PeerType != nil {
return *m.PeerType
}
return PeerType_Client
}
func (m *HttpStart) GetMethod() HttpStart_Method {
if m != nil && m.Method != nil {
return *m.Method
}
return HttpStart_GET
}
func (m *HttpStart) GetUri() string {
if m != nil && m.Uri != nil {
return *m.Uri
}
return ""
}
func (m *HttpStart) GetRemoteAddress() string {
if m != nil && m.RemoteAddress != nil {
return *m.RemoteAddress
}
return ""
}
func (m *HttpStart) GetUserAgent() string {
if m != nil && m.UserAgent != nil {
return *m.UserAgent
}
return ""
}
func (m *HttpStart) GetParentRequestId() *UUID {
if m != nil {
return m.ParentRequestId
}
return nil
}
func (m *HttpStart) GetApplicationId() *UUID {
if m != nil {
return m.ApplicationId
}
return nil
}
func (m *HttpStart) GetInstanceIndex() int32 {
if m != nil && m.InstanceIndex != nil {
return *m.InstanceIndex
}
return 0
}
func (m *HttpStart) GetInstanceId() string {
if m != nil && m.InstanceId != nil {
return *m.InstanceId
}
return ""
}
type HttpStop struct {
Timestamp *int64 `protobuf:"varint,1,req,name=timestamp" json:"timestamp,omitempty"`
Uri *string `protobuf:"bytes,2,req,name=uri" json:"uri,omitempty"`
RequestId *UUID `protobuf:"bytes,3,req,name=requestId" json:"requestId,omitempty"`
PeerType *PeerType `protobuf:"varint,4,req,name=peerType,enum=events.PeerType" json:"peerType,omitempty"`
StatusCode *int32 `protobuf:"varint,5,req,name=statusCode" json:"statusCode,omitempty"`
ContentLength *int64 `protobuf:"varint,6,req,name=contentLength" json:"contentLength,omitempty"`
ApplicationId *UUID `protobuf:"bytes,7,opt,name=applicationId" json:"applicationId,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *HttpStop) Reset() { *m = HttpStop{} }
func (m *HttpStop) String() string { return proto.CompactTextString(m) }
func (*HttpStop) ProtoMessage() {}
func (m *HttpStop) GetTimestamp() int64 {
if m != nil && m.Timestamp != nil {
return *m.Timestamp
}
return 0
}
func (m *HttpStop) GetUri() string {
if m != nil && m.Uri != nil {
return *m.Uri
}
return ""
}
func (m *HttpStop) GetRequestId() *UUID {
if m != nil {
return m.RequestId
}
return nil
}
func (m *HttpStop) GetPeerType() PeerType {
if m != nil && m.PeerType != nil {
return *m.PeerType
}
return PeerType_Client
}
func (m *HttpStop) GetStatusCode() int32 {
if m != nil && m.StatusCode != nil {
return *m.StatusCode
}
return 0
}
func (m *HttpStop) GetContentLength() int64 {
if m != nil && m.ContentLength != nil {
return *m.ContentLength
}
return 0
}
func (m *HttpStop) GetApplicationId() *UUID {
if m != nil {
return m.ApplicationId
}
return nil
}
func init() {
proto.RegisterEnum("events.PeerType", PeerType_name, PeerType_value)
proto.RegisterEnum("events.HttpStart_Method", HttpStart_Method_name, HttpStart_Method_value)
}