2020-09-29 11:15:29 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package helloworld;
|
|
|
|
|
2021-02-27 13:51:39 +03:00
|
|
|
option go_package = "github.com/unistack-org/micro-tests/server/grpc/proto;helloworld";
|
2021-01-10 10:18:42 +03:00
|
|
|
import "google/api/annotations.proto";
|
2020-12-29 13:44:22 +03:00
|
|
|
|
2020-09-29 11:15:29 +03:00
|
|
|
service Test {
|
2021-01-10 10:18:42 +03:00
|
|
|
rpc Call(Request) returns (Response) {
|
|
|
|
option (google.api.http) = { post: "/api/v0/test/call/TEST"; body: "*"; };
|
|
|
|
};
|
2020-09-29 11:15:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message Request {
|
|
|
|
string uuid = 1;
|
|
|
|
string name = 2;
|
2020-12-29 13:44:22 +03:00
|
|
|
|
|
|
|
Broken broken = 4;
|
|
|
|
};
|
|
|
|
|
|
|
|
message Broken {
|
|
|
|
string field = 1;
|
|
|
|
};
|
2020-09-29 11:15:29 +03:00
|
|
|
|
|
|
|
message Response {
|
|
|
|
string msg = 1;
|
2020-12-29 13:44:22 +03:00
|
|
|
Broken broken = 4;
|
|
|
|
};
|