26 lines
419 B
Protocol Buffer
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;
|
|
};
|