24 lines
401 B
Protocol Buffer
24 lines
401 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option go_package = "go-grpc-gateway-template/proto/helloworld";
|
|
|
|
package helloworld;
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
service Greeter {
|
|
rpc SayHello (HelloRequest) returns (HelloReply) {
|
|
option (google.api.http) = {
|
|
post: "/v1/example/echo"
|
|
body: "*"
|
|
};
|
|
}
|
|
}
|
|
|
|
message HelloRequest {
|
|
string name = 1;
|
|
}
|
|
|
|
message HelloReply {
|
|
string message = 1;
|
|
} |