Skip to content

Commit 23348e9

Browse files
fredrikliufredrikliu
andauthored
工蜂开源pb对齐 (#152)
* add pb * add pb --------- Co-authored-by: fredrikliu <fredrikliu@tencent.com>
1 parent 5fe63a5 commit 23348e9

4 files changed

Lines changed: 160 additions & 128 deletions

File tree

api/v1/fault_tolerance/circuitbreaker.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,8 @@ message BlockConfig {
339339
repeated ErrorCondition error_conditions = 3 [ json_name = "error_conditions" ];
340340
// trigger condition to trigger circuitbreaking
341341
repeated TriggerCondition trigger_conditions = 4 [ json_name = "trigger_conditions" ];
342+
// recover condition to make resource open to close
343+
RecoverCondition recoverCondition = 5;
342344
}
343345

344346
// fallback config

api/v1/service_manage/response.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ message DiscoverResponse {
140140
repeated RouteRule customRouteRules = 23;
141141
// 就近路由规则内容
142142
repeated RouteRule nearbyRouteRules = 24;
143-
// 无损上下线规则内容
143+
// 无损上下线规则内容(兼容老版本)
144144
repeated LosslessRule losslessRules = 25;
145145
// 服务黑白名单鉴权规则
146146
repeated BlockAllowListRule blockAllowListRule = 26;
@@ -149,6 +149,8 @@ message DiscoverResponse {
149149
// 故障注入规则内容
150150
repeated FaultInjection faultInjection = 28;
151151
DiscoverDirection Direction = 29;
152+
// 无损上下线规则列表 (新增)
153+
repeated LosslessRule losslessRuleList = 100;
152154
}
153155

154156
message OptionSwitch { map<string, string> options = 1; }

source/go/api/v1/fault_tolerance/circuitbreaker.pb.go

Lines changed: 74 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)