github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/gateway/proto/hello/hello.proto (about)

     1  syntax = "proto3";
     2  
     3  package greeter;
     4  
     5  import "google/api/annotations.proto";
     6  
     7  service Say {
     8  	rpc Hello(Request) returns (Response) {
     9  		option (google.api.http) = {
    10  			post: "/greeter/hello"
    11  			body: "*"
    12  		};
    13  	}
    14  }
    15  
    16  message Request {
    17  	string name = 1;
    18  }
    19  
    20  message Response {
    21  	string msg = 1;
    22  }