1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-18 08:26:38 +02:00
go-micro/cmd/protoc-gen-micro/examples/greeter/greeter.proto
2024-07-04 09:18:52 +01:00

24 lines
433 B
Protocol Buffer

syntax = "proto3";
option go_package = "../greeter";
import "google/api/annotations.proto";
service Greeter {
rpc Hello(Request) returns (Response) {
option (google.api.http) = { post: "/hello"; body: "*"; };
}
rpc Stream(stream Request) returns (stream Response) {
option (google.api.http) = { get: "/stream"; };
}
}
message Request {
string name = 1;
optional string msg = 2;
}
message Response {
string msg = 1;
}