mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-12-27 04:09:45 +01:00
24 lines
669 B
Protocol Buffer
24 lines
669 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
package simple;
|
||
|
|
||
|
service SimpleService {
|
||
|
rpc normalCall (SimpleServiceRequest) returns (SimpleServiceResponse) {}
|
||
|
rpc clientStreamingCall (stream SimpleServiceRequest) returns (SimpleServiceResponse) {}
|
||
|
rpc serverStreamingCall (SimpleServiceRequest) returns (stream SimpleServiceResponse) {}
|
||
|
rpc biDiStreamingCall (stream SimpleServiceRequest) returns (stream SimpleServiceResponse) {}
|
||
|
|
||
|
rpc done (SimpleServiceDone) returns (SimpleServiceDone) {}
|
||
|
}
|
||
|
|
||
|
message SimpleServiceDone {
|
||
|
}
|
||
|
|
||
|
message SimpleServiceRequest {
|
||
|
string request = 1;
|
||
|
repeated fixed32 num = 2;
|
||
|
}
|
||
|
|
||
|
message SimpleServiceResponse {
|
||
|
string response = 1;
|
||
|
fixed32 num = 2;
|
||
|
}
|