github.com/erda-project/erda-infra@v1.0.10-0.20240327085753-f3a249292aeb/examples/service/protocol/greeter.proto (about) 1 syntax = "proto3"; 2 3 package erda.infra.example; 4 import "google/api/annotations.proto"; 5 option go_package = "github.com/erda-project/erda-infra/examples/service/protocol/pb"; 6 7 // the greeting service definition. 8 service GreeterService { 9 // say hello 10 rpc SayHello (HelloRequest) returns (HelloResponse) { 11 option (google.api.http) = { 12 get: "/api/greeter/{name}", 13 }; 14 } 15 } 16 17 message HelloRequest { 18 string name = 1; 19 } 20 21 message HelloResponse { 22 bool success = 1; 23 string data = 2; 24 }