@@ -13,13 +13,20 @@ option java_outer_classname = "LaneProto";
1313// 流量入口
1414message TrafficEntry {
1515 // 标记流量入口类型
16- // type == "polarismesh.cn/gateway/spring-cloud-gateway", 则 selector 为
17- // ServiceGatewaySelector type == "polarismesh.cn/service, 则 selector 为
18- // ServiceSelector
16+ // type == "polarismesh.cn/gateway/tse-gateway, 则 selector 为
17+ // TSEGatewaySelector type == "polarismesh.cn/gateway/spring-cloud-gateway",
18+ // 则 selector 为 ServiceGatewaySelector type == "polarismesh.cn/service, 则
19+ // selector 为 ServiceSelector
1920 string type = 1 ;
2021 google.protobuf.Any selector = 2 ;
2122}
2223
24+ // 网关入口定义
25+ message TSEGatewaySelector {
26+ string instance_id = 1 [ json_name = "instance_id" ];
27+ repeated string services = 2 ;
28+ }
29+
2330// 微服务网关入口定义
2431message ServiceGatewaySelector {
2532 string namespace = 1 ;
@@ -74,7 +81,7 @@ message TrafficMatchRule {
7481 // 或模式
7582 OR = 1 ;
7683 }
77- TrafficMatchMode matchMode = 14 ;
84+ TrafficMatchMode matchMode = 14 [ json_name = "match_mode" ] ;
7885}
7986
8087// TrafficGray 流量灰度配置
@@ -109,9 +116,9 @@ message LaneRule {
109116 // 所属泳道组的名称
110117 string group_name = 3 [ json_name = "group_name" ];
111118 // 流量匹配规则
112- TrafficMatchRule traffic_match_rule = 4 ;
119+ TrafficMatchRule traffic_match_rule = 4 [ json_name = "traffic_match_rule" ] ;
113120 // 保存这个泳道的默认实例标签
114- string default_label_value = 5 ;
121+ string default_label_value = 5 [ json_name = "default_label_value" ] ;
115122 // 泳道规则是否启用
116123 bool enable = 6 ;
117124 enum LaneMatchMode {
@@ -120,7 +127,7 @@ message LaneRule {
120127 // 宽松匹配模式
121128 PERMISSIVE = 1 ;
122129 }
123- LaneMatchMode match_mode = 7 ;
130+ LaneMatchMode match_mode = 7 [ json_name = "match_mode" ] ;
124131 // 流量灰度配置
125132 TrafficGray traffic_gray = 15 [ json_name = "traffic_gray" ];
126133 // revision routing version
0 commit comments