update 【gRPC API】 proto files
This commit is contained in:
@@ -12,6 +12,24 @@ service Echo {
|
||||
rpc Error(ErrorRequest) returns(ErrorResponse);
|
||||
}
|
||||
|
||||
//
|
||||
message ErrorRequest {
|
||||
//
|
||||
int32 error = 2;
|
||||
//
|
||||
int64 time = 1;
|
||||
//
|
||||
int64 delay = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message ErrorResponse {
|
||||
//
|
||||
string host = 1;
|
||||
//
|
||||
int64 time = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message PingRequest {
|
||||
//
|
||||
@@ -41,21 +59,3 @@ message SayResponse {
|
||||
//
|
||||
int64 time = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message ErrorRequest {
|
||||
//
|
||||
int32 error = 2;
|
||||
//
|
||||
int64 time = 1;
|
||||
//
|
||||
int64 delay = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message ErrorResponse {
|
||||
//
|
||||
string host = 1;
|
||||
//
|
||||
int64 time = 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user