griffin 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.rubocop.yml +86 -0
- data/.ruby-version +1 -0
- data/Gemfile +4 -2
- data/LICENSE.txt +1 -1
- data/README.md +42 -9
- data/Rakefile +5 -3
- data/bin/console +4 -3
- data/examples/helloworld/helloworld.proto +37 -0
- data/examples/helloworld/helloworld_pb.rb +18 -0
- data/examples/helloworld/helloworld_services_pb.rb +22 -0
- data/examples/helloworld_client.rb +12 -0
- data/examples/helloworld_server.rb +22 -0
- data/examples/interceptors/client_logging_interceptor.rb +48 -0
- data/examples/interceptors/server_logging_interceptor.rb +44 -0
- data/examples/routeguide/routeguide.json +601 -0
- data/examples/routeguide/routeguide.proto +110 -0
- data/examples/routeguide/routeguide_pb.rb +37 -0
- data/examples/routeguide/routeguide_services_pb.rb +61 -0
- data/examples/routeguide_client.rb +83 -0
- data/examples/routeguide_server.rb +118 -0
- data/griffin.gemspec +18 -12
- data/lib/griffin/connection_pool/multi_timed_stack.rb +78 -0
- data/lib/griffin/connection_pool/pool.rb +56 -0
- data/lib/griffin/counting_semaphore.rb +19 -0
- data/lib/griffin/engine/server.rb +29 -0
- data/lib/griffin/engine/single.rb +41 -0
- data/lib/griffin/engine/worker.rb +27 -0
- data/lib/griffin/engine.rb +20 -0
- data/lib/griffin/listener.rb +36 -0
- data/lib/griffin/server.rb +118 -0
- data/lib/griffin/server_config_builder.rb +55 -0
- data/lib/griffin/thread_pool.rb +88 -0
- data/lib/griffin/version.rb +3 -1
- data/lib/griffin.rb +10 -2
- metadata +87 -6
- data/CODE_OF_CONDUCT.md +0 -74
@@ -0,0 +1,601 @@
|
|
1
|
+
[{
|
2
|
+
"location": {
|
3
|
+
"latitude": 407838351,
|
4
|
+
"longitude": -746143763
|
5
|
+
},
|
6
|
+
"name": "Patriots Path, Mendham, NJ 07945, USA"
|
7
|
+
}, {
|
8
|
+
"location": {
|
9
|
+
"latitude": 408122808,
|
10
|
+
"longitude": -743999179
|
11
|
+
},
|
12
|
+
"name": "101 New Jersey 10, Whippany, NJ 07981, USA"
|
13
|
+
}, {
|
14
|
+
"location": {
|
15
|
+
"latitude": 413628156,
|
16
|
+
"longitude": -749015468
|
17
|
+
},
|
18
|
+
"name": "U.S. 6, Shohola, PA 18458, USA"
|
19
|
+
}, {
|
20
|
+
"location": {
|
21
|
+
"latitude": 419999544,
|
22
|
+
"longitude": -740371136
|
23
|
+
},
|
24
|
+
"name": "5 Conners Road, Kingston, NY 12401, USA"
|
25
|
+
}, {
|
26
|
+
"location": {
|
27
|
+
"latitude": 414008389,
|
28
|
+
"longitude": -743951297
|
29
|
+
},
|
30
|
+
"name": "Mid Hudson Psychiatric Center, New Hampton, NY 10958, USA"
|
31
|
+
}, {
|
32
|
+
"location": {
|
33
|
+
"latitude": 419611318,
|
34
|
+
"longitude": -746524769
|
35
|
+
},
|
36
|
+
"name": "287 Flugertown Road, Livingston Manor, NY 12758, USA"
|
37
|
+
}, {
|
38
|
+
"location": {
|
39
|
+
"latitude": 406109563,
|
40
|
+
"longitude": -742186778
|
41
|
+
},
|
42
|
+
"name": "4001 Tremley Point Road, Linden, NJ 07036, USA"
|
43
|
+
}, {
|
44
|
+
"location": {
|
45
|
+
"latitude": 416802456,
|
46
|
+
"longitude": -742370183
|
47
|
+
},
|
48
|
+
"name": "352 South Mountain Road, Wallkill, NY 12589, USA"
|
49
|
+
}, {
|
50
|
+
"location": {
|
51
|
+
"latitude": 412950425,
|
52
|
+
"longitude": -741077389
|
53
|
+
},
|
54
|
+
"name": "Bailey Turn Road, Harriman, NY 10926, USA"
|
55
|
+
}, {
|
56
|
+
"location": {
|
57
|
+
"latitude": 412144655,
|
58
|
+
"longitude": -743949739
|
59
|
+
},
|
60
|
+
"name": "193-199 Wawayanda Road, Hewitt, NJ 07421, USA"
|
61
|
+
}, {
|
62
|
+
"location": {
|
63
|
+
"latitude": 415736605,
|
64
|
+
"longitude": -742847522
|
65
|
+
},
|
66
|
+
"name": "406-496 Ward Avenue, Pine Bush, NY 12566, USA"
|
67
|
+
}, {
|
68
|
+
"location": {
|
69
|
+
"latitude": 413843930,
|
70
|
+
"longitude": -740501726
|
71
|
+
},
|
72
|
+
"name": "162 Merrill Road, Highland Mills, NY 10930, USA"
|
73
|
+
}, {
|
74
|
+
"location": {
|
75
|
+
"latitude": 410873075,
|
76
|
+
"longitude": -744459023
|
77
|
+
},
|
78
|
+
"name": "Clinton Road, West Milford, NJ 07480, USA"
|
79
|
+
}, {
|
80
|
+
"location": {
|
81
|
+
"latitude": 412346009,
|
82
|
+
"longitude": -744026814
|
83
|
+
},
|
84
|
+
"name": "16 Old Brook Lane, Warwick, NY 10990, USA"
|
85
|
+
}, {
|
86
|
+
"location": {
|
87
|
+
"latitude": 402948455,
|
88
|
+
"longitude": -747903913
|
89
|
+
},
|
90
|
+
"name": "3 Drake Lane, Pennington, NJ 08534, USA"
|
91
|
+
}, {
|
92
|
+
"location": {
|
93
|
+
"latitude": 406337092,
|
94
|
+
"longitude": -740122226
|
95
|
+
},
|
96
|
+
"name": "6324 8th Avenue, Brooklyn, NY 11220, USA"
|
97
|
+
}, {
|
98
|
+
"location": {
|
99
|
+
"latitude": 406421967,
|
100
|
+
"longitude": -747727624
|
101
|
+
},
|
102
|
+
"name": "1 Merck Access Road, Whitehouse Station, NJ 08889, USA"
|
103
|
+
}, {
|
104
|
+
"location": {
|
105
|
+
"latitude": 416318082,
|
106
|
+
"longitude": -749677716
|
107
|
+
},
|
108
|
+
"name": "78-98 Schalck Road, Narrowsburg, NY 12764, USA"
|
109
|
+
}, {
|
110
|
+
"location": {
|
111
|
+
"latitude": 415301720,
|
112
|
+
"longitude": -748416257
|
113
|
+
},
|
114
|
+
"name": "282 Lakeview Drive Road, Highland Lake, NY 12743, USA"
|
115
|
+
}, {
|
116
|
+
"location": {
|
117
|
+
"latitude": 402647019,
|
118
|
+
"longitude": -747071791
|
119
|
+
},
|
120
|
+
"name": "330 Evelyn Avenue, Hamilton Township, NJ 08619, USA"
|
121
|
+
}, {
|
122
|
+
"location": {
|
123
|
+
"latitude": 412567807,
|
124
|
+
"longitude": -741058078
|
125
|
+
},
|
126
|
+
"name": "New York State Reference Route 987E, Southfields, NY 10975, USA"
|
127
|
+
}, {
|
128
|
+
"location": {
|
129
|
+
"latitude": 416855156,
|
130
|
+
"longitude": -744420597
|
131
|
+
},
|
132
|
+
"name": "103-271 Tempaloni Road, Ellenville, NY 12428, USA"
|
133
|
+
}, {
|
134
|
+
"location": {
|
135
|
+
"latitude": 404663628,
|
136
|
+
"longitude": -744820157
|
137
|
+
},
|
138
|
+
"name": "1300 Airport Road, North Brunswick Township, NJ 08902, USA"
|
139
|
+
}, {
|
140
|
+
"location": {
|
141
|
+
"latitude": 407113723,
|
142
|
+
"longitude": -749746483
|
143
|
+
},
|
144
|
+
"name": ""
|
145
|
+
}, {
|
146
|
+
"location": {
|
147
|
+
"latitude": 402133926,
|
148
|
+
"longitude": -743613249
|
149
|
+
},
|
150
|
+
"name": ""
|
151
|
+
}, {
|
152
|
+
"location": {
|
153
|
+
"latitude": 400273442,
|
154
|
+
"longitude": -741220915
|
155
|
+
},
|
156
|
+
"name": ""
|
157
|
+
}, {
|
158
|
+
"location": {
|
159
|
+
"latitude": 411236786,
|
160
|
+
"longitude": -744070769
|
161
|
+
},
|
162
|
+
"name": ""
|
163
|
+
}, {
|
164
|
+
"location": {
|
165
|
+
"latitude": 411633782,
|
166
|
+
"longitude": -746784970
|
167
|
+
},
|
168
|
+
"name": "211-225 Plains Road, Augusta, NJ 07822, USA"
|
169
|
+
}, {
|
170
|
+
"location": {
|
171
|
+
"latitude": 415830701,
|
172
|
+
"longitude": -742952812
|
173
|
+
},
|
174
|
+
"name": ""
|
175
|
+
}, {
|
176
|
+
"location": {
|
177
|
+
"latitude": 413447164,
|
178
|
+
"longitude": -748712898
|
179
|
+
},
|
180
|
+
"name": "165 Pedersen Ridge Road, Milford, PA 18337, USA"
|
181
|
+
}, {
|
182
|
+
"location": {
|
183
|
+
"latitude": 405047245,
|
184
|
+
"longitude": -749800722
|
185
|
+
},
|
186
|
+
"name": "100-122 Locktown Road, Frenchtown, NJ 08825, USA"
|
187
|
+
}, {
|
188
|
+
"location": {
|
189
|
+
"latitude": 418858923,
|
190
|
+
"longitude": -746156790
|
191
|
+
},
|
192
|
+
"name": ""
|
193
|
+
}, {
|
194
|
+
"location": {
|
195
|
+
"latitude": 417951888,
|
196
|
+
"longitude": -748484944
|
197
|
+
},
|
198
|
+
"name": "650-652 Willi Hill Road, Swan Lake, NY 12783, USA"
|
199
|
+
}, {
|
200
|
+
"location": {
|
201
|
+
"latitude": 407033786,
|
202
|
+
"longitude": -743977337
|
203
|
+
},
|
204
|
+
"name": "26 East 3rd Street, New Providence, NJ 07974, USA"
|
205
|
+
}, {
|
206
|
+
"location": {
|
207
|
+
"latitude": 417548014,
|
208
|
+
"longitude": -740075041
|
209
|
+
},
|
210
|
+
"name": ""
|
211
|
+
}, {
|
212
|
+
"location": {
|
213
|
+
"latitude": 410395868,
|
214
|
+
"longitude": -744972325
|
215
|
+
},
|
216
|
+
"name": ""
|
217
|
+
}, {
|
218
|
+
"location": {
|
219
|
+
"latitude": 404615353,
|
220
|
+
"longitude": -745129803
|
221
|
+
},
|
222
|
+
"name": ""
|
223
|
+
}, {
|
224
|
+
"location": {
|
225
|
+
"latitude": 406589790,
|
226
|
+
"longitude": -743560121
|
227
|
+
},
|
228
|
+
"name": "611 Lawrence Avenue, Westfield, NJ 07090, USA"
|
229
|
+
}, {
|
230
|
+
"location": {
|
231
|
+
"latitude": 414653148,
|
232
|
+
"longitude": -740477477
|
233
|
+
},
|
234
|
+
"name": "18 Lannis Avenue, New Windsor, NY 12553, USA"
|
235
|
+
}, {
|
236
|
+
"location": {
|
237
|
+
"latitude": 405957808,
|
238
|
+
"longitude": -743255336
|
239
|
+
},
|
240
|
+
"name": "82-104 Amherst Avenue, Colonia, NJ 07067, USA"
|
241
|
+
}, {
|
242
|
+
"location": {
|
243
|
+
"latitude": 411733589,
|
244
|
+
"longitude": -741648093
|
245
|
+
},
|
246
|
+
"name": "170 Seven Lakes Drive, Sloatsburg, NY 10974, USA"
|
247
|
+
}, {
|
248
|
+
"location": {
|
249
|
+
"latitude": 412676291,
|
250
|
+
"longitude": -742606606
|
251
|
+
},
|
252
|
+
"name": "1270 Lakes Road, Monroe, NY 10950, USA"
|
253
|
+
}, {
|
254
|
+
"location": {
|
255
|
+
"latitude": 409224445,
|
256
|
+
"longitude": -748286738
|
257
|
+
},
|
258
|
+
"name": "509-535 Alphano Road, Great Meadows, NJ 07838, USA"
|
259
|
+
}, {
|
260
|
+
"location": {
|
261
|
+
"latitude": 406523420,
|
262
|
+
"longitude": -742135517
|
263
|
+
},
|
264
|
+
"name": "652 Garden Street, Elizabeth, NJ 07202, USA"
|
265
|
+
}, {
|
266
|
+
"location": {
|
267
|
+
"latitude": 401827388,
|
268
|
+
"longitude": -740294537
|
269
|
+
},
|
270
|
+
"name": "349 Sea Spray Court, Neptune City, NJ 07753, USA"
|
271
|
+
}, {
|
272
|
+
"location": {
|
273
|
+
"latitude": 410564152,
|
274
|
+
"longitude": -743685054
|
275
|
+
},
|
276
|
+
"name": "13-17 Stanley Street, West Milford, NJ 07480, USA"
|
277
|
+
}, {
|
278
|
+
"location": {
|
279
|
+
"latitude": 408472324,
|
280
|
+
"longitude": -740726046
|
281
|
+
},
|
282
|
+
"name": "47 Industrial Avenue, Teterboro, NJ 07608, USA"
|
283
|
+
}, {
|
284
|
+
"location": {
|
285
|
+
"latitude": 412452168,
|
286
|
+
"longitude": -740214052
|
287
|
+
},
|
288
|
+
"name": "5 White Oak Lane, Stony Point, NY 10980, USA"
|
289
|
+
}, {
|
290
|
+
"location": {
|
291
|
+
"latitude": 409146138,
|
292
|
+
"longitude": -746188906
|
293
|
+
},
|
294
|
+
"name": "Berkshire Valley Management Area Trail, Jefferson, NJ, USA"
|
295
|
+
}, {
|
296
|
+
"location": {
|
297
|
+
"latitude": 404701380,
|
298
|
+
"longitude": -744781745
|
299
|
+
},
|
300
|
+
"name": "1007 Jersey Avenue, New Brunswick, NJ 08901, USA"
|
301
|
+
}, {
|
302
|
+
"location": {
|
303
|
+
"latitude": 409642566,
|
304
|
+
"longitude": -746017679
|
305
|
+
},
|
306
|
+
"name": "6 East Emerald Isle Drive, Lake Hopatcong, NJ 07849, USA"
|
307
|
+
}, {
|
308
|
+
"location": {
|
309
|
+
"latitude": 408031728,
|
310
|
+
"longitude": -748645385
|
311
|
+
},
|
312
|
+
"name": "1358-1474 New Jersey 57, Port Murray, NJ 07865, USA"
|
313
|
+
}, {
|
314
|
+
"location": {
|
315
|
+
"latitude": 413700272,
|
316
|
+
"longitude": -742135189
|
317
|
+
},
|
318
|
+
"name": "367 Prospect Road, Chester, NY 10918, USA"
|
319
|
+
}, {
|
320
|
+
"location": {
|
321
|
+
"latitude": 404310607,
|
322
|
+
"longitude": -740282632
|
323
|
+
},
|
324
|
+
"name": "10 Simon Lake Drive, Atlantic Highlands, NJ 07716, USA"
|
325
|
+
}, {
|
326
|
+
"location": {
|
327
|
+
"latitude": 409319800,
|
328
|
+
"longitude": -746201391
|
329
|
+
},
|
330
|
+
"name": "11 Ward Street, Mount Arlington, NJ 07856, USA"
|
331
|
+
}, {
|
332
|
+
"location": {
|
333
|
+
"latitude": 406685311,
|
334
|
+
"longitude": -742108603
|
335
|
+
},
|
336
|
+
"name": "300-398 Jefferson Avenue, Elizabeth, NJ 07201, USA"
|
337
|
+
}, {
|
338
|
+
"location": {
|
339
|
+
"latitude": 419018117,
|
340
|
+
"longitude": -749142781
|
341
|
+
},
|
342
|
+
"name": "43 Dreher Road, Roscoe, NY 12776, USA"
|
343
|
+
}, {
|
344
|
+
"location": {
|
345
|
+
"latitude": 412856162,
|
346
|
+
"longitude": -745148837
|
347
|
+
},
|
348
|
+
"name": "Swan Street, Pine Island, NY 10969, USA"
|
349
|
+
}, {
|
350
|
+
"location": {
|
351
|
+
"latitude": 416560744,
|
352
|
+
"longitude": -746721964
|
353
|
+
},
|
354
|
+
"name": "66 Pleasantview Avenue, Monticello, NY 12701, USA"
|
355
|
+
}, {
|
356
|
+
"location": {
|
357
|
+
"latitude": 405314270,
|
358
|
+
"longitude": -749836354
|
359
|
+
},
|
360
|
+
"name": ""
|
361
|
+
}, {
|
362
|
+
"location": {
|
363
|
+
"latitude": 414219548,
|
364
|
+
"longitude": -743327440
|
365
|
+
},
|
366
|
+
"name": ""
|
367
|
+
}, {
|
368
|
+
"location": {
|
369
|
+
"latitude": 415534177,
|
370
|
+
"longitude": -742900616
|
371
|
+
},
|
372
|
+
"name": "565 Winding Hills Road, Montgomery, NY 12549, USA"
|
373
|
+
}, {
|
374
|
+
"location": {
|
375
|
+
"latitude": 406898530,
|
376
|
+
"longitude": -749127080
|
377
|
+
},
|
378
|
+
"name": "231 Rocky Run Road, Glen Gardner, NJ 08826, USA"
|
379
|
+
}, {
|
380
|
+
"location": {
|
381
|
+
"latitude": 407586880,
|
382
|
+
"longitude": -741670168
|
383
|
+
},
|
384
|
+
"name": "100 Mount Pleasant Avenue, Newark, NJ 07104, USA"
|
385
|
+
}, {
|
386
|
+
"location": {
|
387
|
+
"latitude": 400106455,
|
388
|
+
"longitude": -742870190
|
389
|
+
},
|
390
|
+
"name": "517-521 Huntington Drive, Manchester Township, NJ 08759, USA"
|
391
|
+
}, {
|
392
|
+
"location": {
|
393
|
+
"latitude": 400066188,
|
394
|
+
"longitude": -746793294
|
395
|
+
},
|
396
|
+
"name": ""
|
397
|
+
}, {
|
398
|
+
"location": {
|
399
|
+
"latitude": 418803880,
|
400
|
+
"longitude": -744102673
|
401
|
+
},
|
402
|
+
"name": "40 Mountain Road, Napanoch, NY 12458, USA"
|
403
|
+
}, {
|
404
|
+
"location": {
|
405
|
+
"latitude": 414204288,
|
406
|
+
"longitude": -747895140
|
407
|
+
},
|
408
|
+
"name": ""
|
409
|
+
}, {
|
410
|
+
"location": {
|
411
|
+
"latitude": 414777405,
|
412
|
+
"longitude": -740615601
|
413
|
+
},
|
414
|
+
"name": ""
|
415
|
+
}, {
|
416
|
+
"location": {
|
417
|
+
"latitude": 415464475,
|
418
|
+
"longitude": -747175374
|
419
|
+
},
|
420
|
+
"name": "48 North Road, Forestburgh, NY 12777, USA"
|
421
|
+
}, {
|
422
|
+
"location": {
|
423
|
+
"latitude": 404062378,
|
424
|
+
"longitude": -746376177
|
425
|
+
},
|
426
|
+
"name": ""
|
427
|
+
}, {
|
428
|
+
"location": {
|
429
|
+
"latitude": 405688272,
|
430
|
+
"longitude": -749285130
|
431
|
+
},
|
432
|
+
"name": ""
|
433
|
+
}, {
|
434
|
+
"location": {
|
435
|
+
"latitude": 400342070,
|
436
|
+
"longitude": -748788996
|
437
|
+
},
|
438
|
+
"name": ""
|
439
|
+
}, {
|
440
|
+
"location": {
|
441
|
+
"latitude": 401809022,
|
442
|
+
"longitude": -744157964
|
443
|
+
},
|
444
|
+
"name": ""
|
445
|
+
}, {
|
446
|
+
"location": {
|
447
|
+
"latitude": 404226644,
|
448
|
+
"longitude": -740517141
|
449
|
+
},
|
450
|
+
"name": "9 Thompson Avenue, Leonardo, NJ 07737, USA"
|
451
|
+
}, {
|
452
|
+
"location": {
|
453
|
+
"latitude": 410322033,
|
454
|
+
"longitude": -747871659
|
455
|
+
},
|
456
|
+
"name": ""
|
457
|
+
}, {
|
458
|
+
"location": {
|
459
|
+
"latitude": 407100674,
|
460
|
+
"longitude": -747742727
|
461
|
+
},
|
462
|
+
"name": ""
|
463
|
+
}, {
|
464
|
+
"location": {
|
465
|
+
"latitude": 418811433,
|
466
|
+
"longitude": -741718005
|
467
|
+
},
|
468
|
+
"name": "213 Bush Road, Stone Ridge, NY 12484, USA"
|
469
|
+
}, {
|
470
|
+
"location": {
|
471
|
+
"latitude": 415034302,
|
472
|
+
"longitude": -743850945
|
473
|
+
},
|
474
|
+
"name": ""
|
475
|
+
}, {
|
476
|
+
"location": {
|
477
|
+
"latitude": 411349992,
|
478
|
+
"longitude": -743694161
|
479
|
+
},
|
480
|
+
"name": ""
|
481
|
+
}, {
|
482
|
+
"location": {
|
483
|
+
"latitude": 404839914,
|
484
|
+
"longitude": -744759616
|
485
|
+
},
|
486
|
+
"name": "1-17 Bergen Court, New Brunswick, NJ 08901, USA"
|
487
|
+
}, {
|
488
|
+
"location": {
|
489
|
+
"latitude": 414638017,
|
490
|
+
"longitude": -745957854
|
491
|
+
},
|
492
|
+
"name": "35 Oakland Valley Road, Cuddebackville, NY 12729, USA"
|
493
|
+
}, {
|
494
|
+
"location": {
|
495
|
+
"latitude": 412127800,
|
496
|
+
"longitude": -740173578
|
497
|
+
},
|
498
|
+
"name": ""
|
499
|
+
}, {
|
500
|
+
"location": {
|
501
|
+
"latitude": 401263460,
|
502
|
+
"longitude": -747964303
|
503
|
+
},
|
504
|
+
"name": ""
|
505
|
+
}, {
|
506
|
+
"location": {
|
507
|
+
"latitude": 412843391,
|
508
|
+
"longitude": -749086026
|
509
|
+
},
|
510
|
+
"name": ""
|
511
|
+
}, {
|
512
|
+
"location": {
|
513
|
+
"latitude": 418512773,
|
514
|
+
"longitude": -743067823
|
515
|
+
},
|
516
|
+
"name": ""
|
517
|
+
}, {
|
518
|
+
"location": {
|
519
|
+
"latitude": 404318328,
|
520
|
+
"longitude": -740835638
|
521
|
+
},
|
522
|
+
"name": "42-102 Main Street, Belford, NJ 07718, USA"
|
523
|
+
}, {
|
524
|
+
"location": {
|
525
|
+
"latitude": 419020746,
|
526
|
+
"longitude": -741172328
|
527
|
+
},
|
528
|
+
"name": ""
|
529
|
+
}, {
|
530
|
+
"location": {
|
531
|
+
"latitude": 404080723,
|
532
|
+
"longitude": -746119569
|
533
|
+
},
|
534
|
+
"name": ""
|
535
|
+
}, {
|
536
|
+
"location": {
|
537
|
+
"latitude": 401012643,
|
538
|
+
"longitude": -744035134
|
539
|
+
},
|
540
|
+
"name": ""
|
541
|
+
}, {
|
542
|
+
"location": {
|
543
|
+
"latitude": 404306372,
|
544
|
+
"longitude": -741079661
|
545
|
+
},
|
546
|
+
"name": ""
|
547
|
+
}, {
|
548
|
+
"location": {
|
549
|
+
"latitude": 403966326,
|
550
|
+
"longitude": -748519297
|
551
|
+
},
|
552
|
+
"name": ""
|
553
|
+
}, {
|
554
|
+
"location": {
|
555
|
+
"latitude": 405002031,
|
556
|
+
"longitude": -748407866
|
557
|
+
},
|
558
|
+
"name": ""
|
559
|
+
}, {
|
560
|
+
"location": {
|
561
|
+
"latitude": 409532885,
|
562
|
+
"longitude": -742200683
|
563
|
+
},
|
564
|
+
"name": ""
|
565
|
+
}, {
|
566
|
+
"location": {
|
567
|
+
"latitude": 416851321,
|
568
|
+
"longitude": -742674555
|
569
|
+
},
|
570
|
+
"name": ""
|
571
|
+
}, {
|
572
|
+
"location": {
|
573
|
+
"latitude": 406411633,
|
574
|
+
"longitude": -741722051
|
575
|
+
},
|
576
|
+
"name": "3387 Richmond Terrace, Staten Island, NY 10303, USA"
|
577
|
+
}, {
|
578
|
+
"location": {
|
579
|
+
"latitude": 413069058,
|
580
|
+
"longitude": -744597778
|
581
|
+
},
|
582
|
+
"name": "261 Van Sickle Road, Goshen, NY 10924, USA"
|
583
|
+
}, {
|
584
|
+
"location": {
|
585
|
+
"latitude": 418465462,
|
586
|
+
"longitude": -746859398
|
587
|
+
},
|
588
|
+
"name": ""
|
589
|
+
}, {
|
590
|
+
"location": {
|
591
|
+
"latitude": 411733222,
|
592
|
+
"longitude": -744228360
|
593
|
+
},
|
594
|
+
"name": ""
|
595
|
+
}, {
|
596
|
+
"location": {
|
597
|
+
"latitude": 410248224,
|
598
|
+
"longitude": -747127767
|
599
|
+
},
|
600
|
+
"name": "3 Hasta Way, Newton, NJ 07860, USA"
|
601
|
+
}]
|
@@ -0,0 +1,110 @@
|
|
1
|
+
// Copyright 2015 gRPC authors.
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
|
15
|
+
syntax = "proto3";
|
16
|
+
|
17
|
+
option java_multiple_files = true;
|
18
|
+
option java_package = "io.grpc.examples.routeguide";
|
19
|
+
option java_outer_classname = "RouteGuideProto";
|
20
|
+
|
21
|
+
package routeguide;
|
22
|
+
|
23
|
+
// Interface exported by the server.
|
24
|
+
service RouteGuide {
|
25
|
+
// A simple RPC.
|
26
|
+
//
|
27
|
+
// Obtains the feature at a given position.
|
28
|
+
//
|
29
|
+
// A feature with an empty name is returned if there's no feature at the given
|
30
|
+
// position.
|
31
|
+
rpc GetFeature(Point) returns (Feature) {}
|
32
|
+
|
33
|
+
// A server-to-client streaming RPC.
|
34
|
+
//
|
35
|
+
// Obtains the Features available within the given Rectangle. Results are
|
36
|
+
// streamed rather than returned at once (e.g. in a response message with a
|
37
|
+
// repeated field), as the rectangle may cover a large area and contain a
|
38
|
+
// huge number of features.
|
39
|
+
rpc ListFeatures(Rectangle) returns (stream Feature) {}
|
40
|
+
|
41
|
+
// A client-to-server streaming RPC.
|
42
|
+
//
|
43
|
+
// Accepts a stream of Points on a route being traversed, returning a
|
44
|
+
// RouteSummary when traversal is completed.
|
45
|
+
rpc RecordRoute(stream Point) returns (RouteSummary) {}
|
46
|
+
|
47
|
+
// A Bidirectional streaming RPC.
|
48
|
+
//
|
49
|
+
// Accepts a stream of RouteNotes sent while a route is being traversed,
|
50
|
+
// while receiving other RouteNotes (e.g. from other users).
|
51
|
+
rpc RouteChat(stream RouteNote) returns (stream RouteNote) {}
|
52
|
+
}
|
53
|
+
|
54
|
+
// Points are represented as latitude-longitude pairs in the E7 representation
|
55
|
+
// (degrees multiplied by 10**7 and rounded to the nearest integer).
|
56
|
+
// Latitudes should be in the range +/- 90 degrees and longitude should be in
|
57
|
+
// the range +/- 180 degrees (inclusive).
|
58
|
+
message Point {
|
59
|
+
int32 latitude = 1;
|
60
|
+
int32 longitude = 2;
|
61
|
+
}
|
62
|
+
|
63
|
+
// A latitude-longitude rectangle, represented as two diagonally opposite
|
64
|
+
// points "lo" and "hi".
|
65
|
+
message Rectangle {
|
66
|
+
// One corner of the rectangle.
|
67
|
+
Point lo = 1;
|
68
|
+
|
69
|
+
// The other corner of the rectangle.
|
70
|
+
Point hi = 2;
|
71
|
+
}
|
72
|
+
|
73
|
+
// A feature names something at a given point.
|
74
|
+
//
|
75
|
+
// If a feature could not be named, the name is empty.
|
76
|
+
message Feature {
|
77
|
+
// The name of the feature.
|
78
|
+
string name = 1;
|
79
|
+
|
80
|
+
// The point where the feature is detected.
|
81
|
+
Point location = 2;
|
82
|
+
}
|
83
|
+
|
84
|
+
// A RouteNote is a message sent while at a given point.
|
85
|
+
message RouteNote {
|
86
|
+
// The location from which the message is sent.
|
87
|
+
Point location = 1;
|
88
|
+
|
89
|
+
// The message to be sent.
|
90
|
+
string message = 2;
|
91
|
+
}
|
92
|
+
|
93
|
+
// A RouteSummary is received in response to a RecordRoute rpc.
|
94
|
+
//
|
95
|
+
// It contains the number of individual points received, the number of
|
96
|
+
// detected features, and the total distance covered as the cumulative sum of
|
97
|
+
// the distance between each point.
|
98
|
+
message RouteSummary {
|
99
|
+
// The number of points received.
|
100
|
+
int32 point_count = 1;
|
101
|
+
|
102
|
+
// The number of known features passed while traversing the route.
|
103
|
+
int32 feature_count = 2;
|
104
|
+
|
105
|
+
// The distance covered in metres.
|
106
|
+
int32 distance = 3;
|
107
|
+
|
108
|
+
// The duration of the traversal in seconds.
|
109
|
+
int32 elapsed_time = 4;
|
110
|
+
}
|