1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-30 22:33:49 +02:00
Files
go-micro/cmd/protoc-gen-micro/examples/greeter/greeter.proto

24 lines
433 B
Protocol Buffer
Raw Normal View History

2020-12-26 15:13:09 +00:00
syntax = "proto3";
option go_package = "../greeter";
2020-12-26 15:13:09 +00:00
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;
2020-12-26 15:13:09 +00:00
}
message Response {
string msg = 1;
}