@@ -39,6 +39,8 @@ const (
3939 EventCircuitBreaker EventType = 0x2006
4040 // EventFaultDetect 探测规则
4141 EventFaultDetect EventType = 0x2007
42+ //EventNearbyRouteRule 就近路由事件
43+ EventNearbyRouteRule EventType = 0x2008
4244)
4345
4446// RegistryValue 存储于sdk缓存中的对象,包括服务实例和服务路由
@@ -66,21 +68,23 @@ func (e EventType) String() string {
6668var (
6769 // 路由规则到日志回显
6870 eventTypeToPresent = map [EventType ]string {
69- EventInstances : "instance" ,
70- EventRouting : "routing" ,
71- EventRateLimiting : "rate_limiting" ,
72- EventServices : "services" ,
73- EventCircuitBreaker : "circuit_breaker" ,
74- EventFaultDetect : "fault_detect" ,
71+ EventInstances : "instance" ,
72+ EventRouting : "routing" ,
73+ EventRateLimiting : "rate_limiting" ,
74+ EventServices : "services" ,
75+ EventCircuitBreaker : "circuit_breaker" ,
76+ EventFaultDetect : "fault_detect" ,
77+ EventNearbyRouteRule : "nearby_route_rule" ,
7578 }
7679
7780 presentToEventType = map [string ]EventType {
78- "instance" : EventInstances ,
79- "routing" : EventRouting ,
80- "rate_limiting" : EventRateLimiting ,
81- "services" : EventServices ,
82- "circuit_breaker" : EventCircuitBreaker ,
83- "fault_detect" : EventFaultDetect ,
81+ "instance" : EventInstances ,
82+ "routing" : EventRouting ,
83+ "rate_limiting" : EventRateLimiting ,
84+ "services" : EventServices ,
85+ "circuit_breaker" : EventCircuitBreaker ,
86+ "fault_detect" : EventFaultDetect ,
87+ "nearby_route_rule" : EventNearbyRouteRule ,
8488 }
8589)
8690
0 commit comments