2025-06-03 22:32:01 +02:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
|
|
package example;
|
|
|
|
|
|
2025-06-03 21:50:28 +00:00
|
|
|
option go_package = "github.com/example/my-swagger-service/gen/example";
|
|
|
|
|
|
2025-06-03 22:32:01 +02:00
|
|
|
service HelloService {
|
|
|
|
|
rpc SayHello (HelloRequest) returns (HelloReply);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message HelloRequest {
|
|
|
|
|
string name = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message HelloReply {
|
|
|
|
|
string message = 1;
|
|
|
|
|
}
|