-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.avpr
105 lines (105 loc) · 1.98 KB
/
test.avpr
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
{
"protocol": "test",
"doc": "Protocol used for unit testing",
"types": [
{
"name": "Kind",
"type": "enum",
"symbols": [
"FOO",
"BAR",
"BAZ"
]
},
{
"name": "MD5",
"type": "fixed",
"size": 16
},
{
"name": "TestRecord",
"type": "record",
"fields": [
{
"name": "name",
"type": "string",
"order": "ignore"
},
{
"name": "kind",
"type": "Kind",
"order": "descending"
},
{
"name": "hash",
"type": "MD5"
}
]
}
],
"messages": {
"hello": {
"doc": "Send a friendly greeting",
"request": [
{
"name": "name",
"type": "string",
"default": ""
}
],
"response": "string"
},
"echo": {
"doc": "Pretend you're in a cave!",
"request": [
{
"name": "record",
"type": "TestRecord"
}
],
"response": "TestRecord"
},
"ack": {
"doc": "Send a one way message",
"request": [],
"response": "null",
"one-way": true
},
"serverCounter": {
"doc": "Server streams counts to the client",
"request": [],
"response": "int",
"stream": "response"
},
"clientCounter": {
"doc": "Client streams counts to the server",
"request": [
{
"name": "counter",
"type": "int"
}
],
"response": {
"type": "array",
"items": "int"
},
"stream": "request"
},
"bidirCounter": {
"doc": "Client and server stream counts bi-directionally",
"request": [
{
"name": "counter",
"type": "int"
}
],
"response": "int",
"stream": "bidir"
},
"unimplemented": {
"doc": "Intentionally not implemented",
"request": [],
"response": "null"
}
}
}