Migrate to tonic
This commit is contained in:
parent
6d1582792c
commit
7a9b9c0f09
10 changed files with 1014 additions and 79 deletions
17
proto/helloworld.proto
Normal file
17
proto/helloworld.proto
Normal file
|
@ -0,0 +1,17 @@
|
|||
syntax = "proto3";
|
||||
package helloworld;
|
||||
|
||||
service Greeter {
|
||||
// Our SayHello rpc accepts HelloRequests and returns HelloReplies
|
||||
rpc SayHello (HelloRequest) returns (HelloReply);
|
||||
}
|
||||
|
||||
message HelloRequest {
|
||||
// Request message contains the name to be greeted
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message HelloReply {
|
||||
// Reply contains the greeting message
|
||||
string message = 1;
|
||||
}
|
Reference in a new issue