micro-examples/grpc/proto/example.proto
Vasiliy Tolstov a46561f48a add grpc server
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-11-28 13:19:46 +03:00

26 lines
419 B
Protocol Buffer

syntax = "proto3";
package example;
option go_package = "go.unistack.org/micro-examples/grpc/proto;pb";
import "tag/tag.proto";
import "api/annotations.proto";
import "google/protobuf/wrappers.proto";
service ExampleService {
rpc Hello(HelloReq) returns (HelloRsp) {
option (micro.api.micro_method) = { timeout: "5s"; };
};
};
message HelloReq {
};
message HelloRsp {
};
message Error {
string msg = 1;
};