19 lines
283 B
Protocol Buffer
19 lines
283 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package proto;
|
||
|
|
||
|
option go_package = "git.gqnotes.com/guoqiang/grpcexercises/greet/pb";
|
||
|
|
||
|
service GreetService {
|
||
|
rpc Greet(GreetRequest) returns(GreetResponse) {}
|
||
|
}
|
||
|
|
||
|
message GreetRequest {
|
||
|
string greeting = 1;
|
||
|
}
|
||
|
|
||
|
|
||
|
message GreetResponse {
|
||
|
string result = 1;
|
||
|
}
|