mirror of
https://github.com/linka-cloud/grpc.git
synced 2024-11-04 18:26:25 +00:00
24 lines
390 B
Protocol Buffer
24 lines
390 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package helloworld;
|
|
|
|
option go_package = "main";
|
|
|
|
service Greeter {
|
|
rpc SayHello (HelloRequest) returns (HelloReply) {}
|
|
rpc SayHelloStream (HelloStreamRequest) returns (stream HelloReply) {}
|
|
}
|
|
|
|
message HelloRequest {
|
|
string name = 1;
|
|
}
|
|
|
|
message HelloReply {
|
|
string message = 1;
|
|
}
|
|
|
|
message HelloStreamRequest {
|
|
string name = 1;
|
|
int64 count = 2;
|
|
}
|