greet.proto 275 B

1234567891011121314151617
  1. syntax = "proto3";
  2. option go_package = "/;greet";
  3. service Greet {
  4. rpc Morning(GreetRequest)returns(GreetResponse){}
  5. rpc Night(GreetRequest)returns(GreetResponse){}
  6. }
  7. message GreetRequest {
  8. string name = 1;
  9. }
  10. message GreetResponse {
  11. string message = 1;
  12. string from = 2;
  13. }