-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(ResiliencyService): WIP - proto files
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
syntax = "proto3"; | ||
|
||
package resiliency; | ||
|
||
import "resiliency/type/resiliency.proto"; | ||
|
||
option go_package = "protogen/go/resiliency"; | ||
|
||
service ResiliencyService { | ||
rpc GetResiliency(ResiliencyRequest) returns (ResiliencyResponse); | ||
|
||
rpc GetResiliencyStream(ResiliencyRequest) | ||
returns (stream ResiliencyResponse); | ||
|
||
rpc SendResiliencyStream(stream ResiliencyRequest) | ||
returns (ResiliencyResponse); | ||
|
||
rpc BidirectionalResiliencyStream(stream ResiliencyRequest) | ||
returns (stream ResiliencyResponse); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
syntax = "proto3"; | ||
|
||
package resiliency; | ||
|
||
option go_package = "protogen/go/resiliency"; | ||
|
||
message ResiliencyRequest { | ||
int32 min_delay_second = 1; | ||
int32 max_delay_second = 2; | ||
repeated uint32 status_codes = 3; | ||
} | ||
|
||
message ResiliencyResponse { | ||
string response = 1; | ||
unit32 status_code = 2; | ||
} |