grpc/example/example.proto

24 lines
398 B
Protocol Buffer
Raw Normal View History

2020-01-22 13:02:06 +00:00
syntax = "proto3";
package helloworld;
option go_package = "example;main";
2020-01-22 13:02:06 +00:00
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;
}