Skip to content

Commit

Permalink
fix:修复pb定义问题 (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun authored Aug 15, 2024
1 parent 41a082c commit 3c8c88a
Show file tree
Hide file tree
Showing 65 changed files with 25,976 additions and 13,163 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/v1/fault_tolerance/circuitbreaker.proto
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ message CircuitBreakerRule {
// priority rules priority
uint32 priority = 30 [ json_name = "priority" ];
// 熔断规则标签数据
map<string, string> metadata = 50;
map<string, string> metadata = 31;
}

// the condition to judge an input invocation as an error
Expand Down
2 changes: 1 addition & 1 deletion api/v1/fault_tolerance/fault_detector.proto
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ message FaultDetectRule {
// priority rules priority
uint32 priority = 29 [ json_name = "priority" ];
// 探测规则标签数据
map<string, string> metadata = 50;
map<string, string> metadata = 30;
}

message HttpProtocolConfig {
Expand Down
3 changes: 2 additions & 1 deletion api/v1/model/code.proto
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ enum Code {
NotFoundResourceConfigFile = 400807;
InvalidConfigFileTemplateName = 400808;
EncryptConfigFileException = 400809;
DecryptConfigFileException = 400810;
GroupExistActiveRelease = 400810;
DecryptConfigFileException = 400811;

// auth codes
InvalidUserOwners = 400410;
Expand Down
2 changes: 2 additions & 0 deletions api/v1/service_manage/contract.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ message ServiceContract {
string status = 12;
// 类型
string type = 14;
// 标签
map<string, string> metadata = 15;
}

message InterfaceDescriptor {
Expand Down
7 changes: 6 additions & 1 deletion api/v1/service_manage/response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,9 @@ message DiscoverResponse {

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

message InstanceLabels { map<string, StringList> labels = 1; }
message InstanceLabels {
map<string, StringList> labels = 1;
string namespace = 2;
string service = 3;
string service_id = 4;
}
2 changes: 1 addition & 1 deletion api/v1/traffic_manage/lane.proto
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ message LaneGroup {
// 泳道组内的流量入口信息
repeated LaneRule rules = 11;
// 泳道组标签信息
map<string, string> metadata = 20;
map<string, string> metadata = 12;
}

// TrafficMatchRule 流量匹配规则
Expand Down
2 changes: 2 additions & 0 deletions api/v1/traffic_manage/lossless.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ message LosslessRule {
LosslessOnline losslessOnline = 8 [ json_name = "lossless_online" ];
// configuration for lossless offline
LosslessOffline losslessOffline = 9 [ json_name = "lossless_offline" ];
// rule labels
map<string, string> metadata = 10;
}

message LosslessOnline {
Expand Down
4 changes: 2 additions & 2 deletions api/v1/traffic_manage/ratelimit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ message Rule {
google.protobuf.StringValue etime = 25;
// 最大排队时长,单位秒
google.protobuf.UInt32Value max_queue_delay = 26 [json_name = "max_queue_delay"];
// 限流规则标签数据
map<string, string> metadata = 50;
// amount for concurrency rate-limit
ConcurrencyAmount concurrencyAmount = 27 [ json_name = "concurrency_amount" ];
// fallback configuration
FallbackConfig fallbackConfig = 28 [ json_name = "fallback_config" ];
// 限流规则标签数据
map<string, string> metadata = 29;
}

message MatchArgument {
Expand Down
2 changes: 1 addition & 1 deletion api/v1/traffic_manage/routing.proto
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ message RouteRule {
// deprecated_filed only for compatible to the old version server
map<string, string> extendInfo = 20;
// 路由规则标签数据
map<string, string> metadata = 50;
map<string, string> metadata = 21;
}

message MetadataFailover {
Expand Down
Loading

0 comments on commit 3c8c88a

Please sign in to comment.