forked from grpc-ecosystem/go-grpc-middleware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.proto
68 lines (50 loc) · 1.2 KB
/
test.proto
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
syntax = "proto3";
package testing.testpb.v1;
option go_package = ".;testpb";
message PingEmptyRequest {
}
message PingEmptyResponse {
}
message PingRequest {
string value = 1;
int32 sleep_time_ms = 2;
uint32 error_code_returned = 3;
}
message PingResponse {
string value = 1;
int32 counter = 2;
}
message PingErrorRequest {
string value = 1;
int32 sleep_time_ms = 2;
uint32 error_code_returned = 3;
}
message PingErrorResponse {
string value = 1;
int32 counter = 2;
}
message PingListRequest {
string value = 1;
int32 sleep_time_ms = 2;
uint32 error_code_returned = 3;
}
message PingListResponse {
string value = 1;
int32 counter = 2;
}
message PingStreamRequest {
string value = 1;
int32 sleep_time_ms = 2;
uint32 error_code_returned = 3;
}
message PingStreamResponse {
string value = 1;
int32 counter = 2;
}
service TestService {
rpc PingEmpty(PingEmptyRequest) returns (PingEmptyResponse) {}
rpc Ping(PingRequest) returns (PingResponse) {}
rpc PingError(PingErrorRequest) returns (PingErrorResponse) {}
rpc PingList(PingListRequest) returns (stream PingListResponse) {}
rpc PingStream(stream PingStreamRequest) returns (stream PingStreamResponse) {}
}