mirror of
https://github.com/TECHNOFAB11/powerproto.git
synced 2025-12-13 00:20:04 +01:00
feat(*): support perComandTimeout & variables in options
Signed-off-by: storyicon <yuanchao@bilibili.com>
This commit is contained in:
parent
7b2c0762d4
commit
15047711a9
15 changed files with 302 additions and 122 deletions
28
examples/multi-config-item/using-googleapis/service.proto
Normal file
28
examples/multi-config-item/using-googleapis/service.proto
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package powerproto.examples.using_googleapis;
|
||||
option go_package = "github.com/storyicon/powerproto/examples/using_googleapis/apis;apis";
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
service Mocker {
|
||||
rpc Echo (EchoRequest) returns (EchoResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/echo"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
message EchoRequest {
|
||||
string message = 1;
|
||||
int64 timestamp = 2;
|
||||
uint32 code = 3;
|
||||
uint32 delay = 4;
|
||||
}
|
||||
|
||||
message EchoResponse {
|
||||
string message = 1;
|
||||
int64 timestamp = 2;
|
||||
string server = 3;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue