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