github.com/eagleql/xray-core@v1.4.4/app/router/command/command.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.14.0 5 // source: app/router/command/command.proto 6 7 package command 8 9 import ( 10 net "github.com/eagleql/xray-core/common/net" 11 proto "github.com/golang/protobuf/proto" 12 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 13 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 14 reflect "reflect" 15 sync "sync" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 // This is a compile-time assertion that a sufficiently up-to-date version 26 // of the legacy proto package is being used. 27 const _ = proto.ProtoPackageIsVersion4 28 29 // RoutingContext is the context with information relative to routing process. 30 // It conforms to the structure of xray.features.routing.Context and 31 // xray.features.routing.Route. 32 type RoutingContext struct { 33 state protoimpl.MessageState 34 sizeCache protoimpl.SizeCache 35 unknownFields protoimpl.UnknownFields 36 37 InboundTag string `protobuf:"bytes,1,opt,name=InboundTag,proto3" json:"InboundTag,omitempty"` 38 Network net.Network `protobuf:"varint,2,opt,name=Network,proto3,enum=xray.common.net.Network" json:"Network,omitempty"` 39 SourceIPs [][]byte `protobuf:"bytes,3,rep,name=SourceIPs,proto3" json:"SourceIPs,omitempty"` 40 TargetIPs [][]byte `protobuf:"bytes,4,rep,name=TargetIPs,proto3" json:"TargetIPs,omitempty"` 41 SourcePort uint32 `protobuf:"varint,5,opt,name=SourcePort,proto3" json:"SourcePort,omitempty"` 42 TargetPort uint32 `protobuf:"varint,6,opt,name=TargetPort,proto3" json:"TargetPort,omitempty"` 43 TargetDomain string `protobuf:"bytes,7,opt,name=TargetDomain,proto3" json:"TargetDomain,omitempty"` 44 Protocol string `protobuf:"bytes,8,opt,name=Protocol,proto3" json:"Protocol,omitempty"` 45 User string `protobuf:"bytes,9,opt,name=User,proto3" json:"User,omitempty"` 46 Attributes map[string]string `protobuf:"bytes,10,rep,name=Attributes,proto3" json:"Attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 47 OutboundGroupTags []string `protobuf:"bytes,11,rep,name=OutboundGroupTags,proto3" json:"OutboundGroupTags,omitempty"` 48 OutboundTag string `protobuf:"bytes,12,opt,name=OutboundTag,proto3" json:"OutboundTag,omitempty"` 49 } 50 51 func (x *RoutingContext) Reset() { 52 *x = RoutingContext{} 53 if protoimpl.UnsafeEnabled { 54 mi := &file_app_router_command_command_proto_msgTypes[0] 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 ms.StoreMessageInfo(mi) 57 } 58 } 59 60 func (x *RoutingContext) String() string { 61 return protoimpl.X.MessageStringOf(x) 62 } 63 64 func (*RoutingContext) ProtoMessage() {} 65 66 func (x *RoutingContext) ProtoReflect() protoreflect.Message { 67 mi := &file_app_router_command_command_proto_msgTypes[0] 68 if protoimpl.UnsafeEnabled && x != nil { 69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 70 if ms.LoadMessageInfo() == nil { 71 ms.StoreMessageInfo(mi) 72 } 73 return ms 74 } 75 return mi.MessageOf(x) 76 } 77 78 // Deprecated: Use RoutingContext.ProtoReflect.Descriptor instead. 79 func (*RoutingContext) Descriptor() ([]byte, []int) { 80 return file_app_router_command_command_proto_rawDescGZIP(), []int{0} 81 } 82 83 func (x *RoutingContext) GetInboundTag() string { 84 if x != nil { 85 return x.InboundTag 86 } 87 return "" 88 } 89 90 func (x *RoutingContext) GetNetwork() net.Network { 91 if x != nil { 92 return x.Network 93 } 94 return net.Network_Unknown 95 } 96 97 func (x *RoutingContext) GetSourceIPs() [][]byte { 98 if x != nil { 99 return x.SourceIPs 100 } 101 return nil 102 } 103 104 func (x *RoutingContext) GetTargetIPs() [][]byte { 105 if x != nil { 106 return x.TargetIPs 107 } 108 return nil 109 } 110 111 func (x *RoutingContext) GetSourcePort() uint32 { 112 if x != nil { 113 return x.SourcePort 114 } 115 return 0 116 } 117 118 func (x *RoutingContext) GetTargetPort() uint32 { 119 if x != nil { 120 return x.TargetPort 121 } 122 return 0 123 } 124 125 func (x *RoutingContext) GetTargetDomain() string { 126 if x != nil { 127 return x.TargetDomain 128 } 129 return "" 130 } 131 132 func (x *RoutingContext) GetProtocol() string { 133 if x != nil { 134 return x.Protocol 135 } 136 return "" 137 } 138 139 func (x *RoutingContext) GetUser() string { 140 if x != nil { 141 return x.User 142 } 143 return "" 144 } 145 146 func (x *RoutingContext) GetAttributes() map[string]string { 147 if x != nil { 148 return x.Attributes 149 } 150 return nil 151 } 152 153 func (x *RoutingContext) GetOutboundGroupTags() []string { 154 if x != nil { 155 return x.OutboundGroupTags 156 } 157 return nil 158 } 159 160 func (x *RoutingContext) GetOutboundTag() string { 161 if x != nil { 162 return x.OutboundTag 163 } 164 return "" 165 } 166 167 // SubscribeRoutingStatsRequest subscribes to routing statistics channel if 168 // opened by xray-core. 169 // * FieldSelectors selects a subset of fields in routing statistics to return. 170 // Valid selectors: 171 // - inbound: Selects connection's inbound tag. 172 // - network: Selects connection's network. 173 // - ip: Equivalent as "ip_source" and "ip_target", selects both source and 174 // target IP. 175 // - port: Equivalent as "port_source" and "port_target", selects both source 176 // and target port. 177 // - domain: Selects target domain. 178 // - protocol: Select connection's protocol. 179 // - user: Select connection's inbound user email. 180 // - attributes: Select connection's additional attributes. 181 // - outbound: Equivalent as "outbound" and "outbound_group", select both 182 // outbound tag and outbound group tags. 183 // * If FieldSelectors is left empty, all fields will be returned. 184 type SubscribeRoutingStatsRequest struct { 185 state protoimpl.MessageState 186 sizeCache protoimpl.SizeCache 187 unknownFields protoimpl.UnknownFields 188 189 FieldSelectors []string `protobuf:"bytes,1,rep,name=FieldSelectors,proto3" json:"FieldSelectors,omitempty"` 190 } 191 192 func (x *SubscribeRoutingStatsRequest) Reset() { 193 *x = SubscribeRoutingStatsRequest{} 194 if protoimpl.UnsafeEnabled { 195 mi := &file_app_router_command_command_proto_msgTypes[1] 196 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 197 ms.StoreMessageInfo(mi) 198 } 199 } 200 201 func (x *SubscribeRoutingStatsRequest) String() string { 202 return protoimpl.X.MessageStringOf(x) 203 } 204 205 func (*SubscribeRoutingStatsRequest) ProtoMessage() {} 206 207 func (x *SubscribeRoutingStatsRequest) ProtoReflect() protoreflect.Message { 208 mi := &file_app_router_command_command_proto_msgTypes[1] 209 if protoimpl.UnsafeEnabled && x != nil { 210 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 211 if ms.LoadMessageInfo() == nil { 212 ms.StoreMessageInfo(mi) 213 } 214 return ms 215 } 216 return mi.MessageOf(x) 217 } 218 219 // Deprecated: Use SubscribeRoutingStatsRequest.ProtoReflect.Descriptor instead. 220 func (*SubscribeRoutingStatsRequest) Descriptor() ([]byte, []int) { 221 return file_app_router_command_command_proto_rawDescGZIP(), []int{1} 222 } 223 224 func (x *SubscribeRoutingStatsRequest) GetFieldSelectors() []string { 225 if x != nil { 226 return x.FieldSelectors 227 } 228 return nil 229 } 230 231 // TestRouteRequest manually tests a routing result according to the routing 232 // context message. 233 // * RoutingContext is the routing message without outbound information. 234 // * FieldSelectors selects the fields to return in the routing result. All 235 // fields are returned if left empty. 236 // * PublishResult broadcasts the routing result to routing statistics channel 237 // if set true. 238 type TestRouteRequest struct { 239 state protoimpl.MessageState 240 sizeCache protoimpl.SizeCache 241 unknownFields protoimpl.UnknownFields 242 243 RoutingContext *RoutingContext `protobuf:"bytes,1,opt,name=RoutingContext,proto3" json:"RoutingContext,omitempty"` 244 FieldSelectors []string `protobuf:"bytes,2,rep,name=FieldSelectors,proto3" json:"FieldSelectors,omitempty"` 245 PublishResult bool `protobuf:"varint,3,opt,name=PublishResult,proto3" json:"PublishResult,omitempty"` 246 } 247 248 func (x *TestRouteRequest) Reset() { 249 *x = TestRouteRequest{} 250 if protoimpl.UnsafeEnabled { 251 mi := &file_app_router_command_command_proto_msgTypes[2] 252 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 253 ms.StoreMessageInfo(mi) 254 } 255 } 256 257 func (x *TestRouteRequest) String() string { 258 return protoimpl.X.MessageStringOf(x) 259 } 260 261 func (*TestRouteRequest) ProtoMessage() {} 262 263 func (x *TestRouteRequest) ProtoReflect() protoreflect.Message { 264 mi := &file_app_router_command_command_proto_msgTypes[2] 265 if protoimpl.UnsafeEnabled && x != nil { 266 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 267 if ms.LoadMessageInfo() == nil { 268 ms.StoreMessageInfo(mi) 269 } 270 return ms 271 } 272 return mi.MessageOf(x) 273 } 274 275 // Deprecated: Use TestRouteRequest.ProtoReflect.Descriptor instead. 276 func (*TestRouteRequest) Descriptor() ([]byte, []int) { 277 return file_app_router_command_command_proto_rawDescGZIP(), []int{2} 278 } 279 280 func (x *TestRouteRequest) GetRoutingContext() *RoutingContext { 281 if x != nil { 282 return x.RoutingContext 283 } 284 return nil 285 } 286 287 func (x *TestRouteRequest) GetFieldSelectors() []string { 288 if x != nil { 289 return x.FieldSelectors 290 } 291 return nil 292 } 293 294 func (x *TestRouteRequest) GetPublishResult() bool { 295 if x != nil { 296 return x.PublishResult 297 } 298 return false 299 } 300 301 type Config struct { 302 state protoimpl.MessageState 303 sizeCache protoimpl.SizeCache 304 unknownFields protoimpl.UnknownFields 305 } 306 307 func (x *Config) Reset() { 308 *x = Config{} 309 if protoimpl.UnsafeEnabled { 310 mi := &file_app_router_command_command_proto_msgTypes[3] 311 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 312 ms.StoreMessageInfo(mi) 313 } 314 } 315 316 func (x *Config) String() string { 317 return protoimpl.X.MessageStringOf(x) 318 } 319 320 func (*Config) ProtoMessage() {} 321 322 func (x *Config) ProtoReflect() protoreflect.Message { 323 mi := &file_app_router_command_command_proto_msgTypes[3] 324 if protoimpl.UnsafeEnabled && x != nil { 325 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 326 if ms.LoadMessageInfo() == nil { 327 ms.StoreMessageInfo(mi) 328 } 329 return ms 330 } 331 return mi.MessageOf(x) 332 } 333 334 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 335 func (*Config) Descriptor() ([]byte, []int) { 336 return file_app_router_command_command_proto_rawDescGZIP(), []int{3} 337 } 338 339 var File_app_router_command_command_proto protoreflect.FileDescriptor 340 341 var file_app_router_command_command_proto_rawDesc = []byte{ 342 0x0a, 0x20, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6d, 343 0x6d, 0x61, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 344 0x74, 0x6f, 0x12, 0x17, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 345 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 346 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 347 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x04, 0x0a, 0x0e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 348 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x49, 0x6e, 0x62, 0x6f, 349 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x49, 0x6e, 350 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x12, 0x32, 0x0a, 0x07, 0x4e, 0x65, 0x74, 0x77, 351 0x6f, 0x72, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x78, 0x72, 0x61, 0x79, 352 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 353 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x1c, 0x0a, 0x09, 354 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x50, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 355 0x09, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x50, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x54, 0x61, 356 0x72, 0x67, 0x65, 0x74, 0x49, 0x50, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09, 0x54, 357 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x50, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x53, 0x6f, 0x75, 0x72, 358 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x53, 0x6f, 359 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x54, 0x61, 0x72, 0x67, 360 0x65, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x54, 0x61, 361 0x72, 0x67, 0x65, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x54, 0x61, 0x72, 0x67, 362 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 363 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 364 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 365 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 366 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x57, 0x0a, 0x0a, 367 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 368 0x32, 0x37, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 369 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 370 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 371 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x41, 0x74, 0x74, 0x72, 0x69, 372 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x11, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 373 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x61, 0x67, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 374 0x52, 0x11, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 375 0x61, 0x67, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54, 376 0x61, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 377 0x6e, 0x64, 0x54, 0x61, 0x67, 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 378 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 379 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 380 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 381 0x3a, 0x02, 0x38, 0x01, 0x22, 0x46, 0x0a, 0x1c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 382 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 383 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x65, 0x6c, 384 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x46, 0x69, 385 0x65, 0x6c, 0x64, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x22, 0xb1, 0x01, 0x0a, 386 0x10, 0x54, 0x65, 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 387 0x74, 0x12, 0x4f, 0x0a, 0x0e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 388 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79, 389 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 390 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 391 0x78, 0x74, 0x52, 0x0e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 392 0x78, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x65, 0x6c, 0x65, 0x63, 393 0x74, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x46, 0x69, 0x65, 0x6c, 394 0x64, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x50, 0x75, 395 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 396 0x08, 0x52, 0x0d, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 397 0x22, 0x08, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0xf0, 0x01, 0x0a, 0x0e, 0x52, 398 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7b, 0x0a, 399 0x15, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 400 0x67, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x35, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 401 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 402 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 403 0x67, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 404 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 405 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x43, 406 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x22, 0x00, 0x30, 0x01, 0x12, 0x61, 0x0a, 0x09, 0x54, 0x65, 407 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x29, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 408 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 409 0x64, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 410 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 411 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x6f, 0x75, 412 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x22, 0x00, 0x42, 0x67, 0x0a, 413 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 414 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x2c, 415 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 416 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 417 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0xaa, 0x02, 0x17, 0x58, 418 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x43, 419 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 420 } 421 422 var ( 423 file_app_router_command_command_proto_rawDescOnce sync.Once 424 file_app_router_command_command_proto_rawDescData = file_app_router_command_command_proto_rawDesc 425 ) 426 427 func file_app_router_command_command_proto_rawDescGZIP() []byte { 428 file_app_router_command_command_proto_rawDescOnce.Do(func() { 429 file_app_router_command_command_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_router_command_command_proto_rawDescData) 430 }) 431 return file_app_router_command_command_proto_rawDescData 432 } 433 434 var file_app_router_command_command_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 435 var file_app_router_command_command_proto_goTypes = []interface{}{ 436 (*RoutingContext)(nil), // 0: xray.app.router.command.RoutingContext 437 (*SubscribeRoutingStatsRequest)(nil), // 1: xray.app.router.command.SubscribeRoutingStatsRequest 438 (*TestRouteRequest)(nil), // 2: xray.app.router.command.TestRouteRequest 439 (*Config)(nil), // 3: xray.app.router.command.Config 440 nil, // 4: xray.app.router.command.RoutingContext.AttributesEntry 441 (net.Network)(0), // 5: xray.common.net.Network 442 } 443 var file_app_router_command_command_proto_depIdxs = []int32{ 444 5, // 0: xray.app.router.command.RoutingContext.Network:type_name -> xray.common.net.Network 445 4, // 1: xray.app.router.command.RoutingContext.Attributes:type_name -> xray.app.router.command.RoutingContext.AttributesEntry 446 0, // 2: xray.app.router.command.TestRouteRequest.RoutingContext:type_name -> xray.app.router.command.RoutingContext 447 1, // 3: xray.app.router.command.RoutingService.SubscribeRoutingStats:input_type -> xray.app.router.command.SubscribeRoutingStatsRequest 448 2, // 4: xray.app.router.command.RoutingService.TestRoute:input_type -> xray.app.router.command.TestRouteRequest 449 0, // 5: xray.app.router.command.RoutingService.SubscribeRoutingStats:output_type -> xray.app.router.command.RoutingContext 450 0, // 6: xray.app.router.command.RoutingService.TestRoute:output_type -> xray.app.router.command.RoutingContext 451 5, // [5:7] is the sub-list for method output_type 452 3, // [3:5] is the sub-list for method input_type 453 3, // [3:3] is the sub-list for extension type_name 454 3, // [3:3] is the sub-list for extension extendee 455 0, // [0:3] is the sub-list for field type_name 456 } 457 458 func init() { file_app_router_command_command_proto_init() } 459 func file_app_router_command_command_proto_init() { 460 if File_app_router_command_command_proto != nil { 461 return 462 } 463 if !protoimpl.UnsafeEnabled { 464 file_app_router_command_command_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 465 switch v := v.(*RoutingContext); i { 466 case 0: 467 return &v.state 468 case 1: 469 return &v.sizeCache 470 case 2: 471 return &v.unknownFields 472 default: 473 return nil 474 } 475 } 476 file_app_router_command_command_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 477 switch v := v.(*SubscribeRoutingStatsRequest); i { 478 case 0: 479 return &v.state 480 case 1: 481 return &v.sizeCache 482 case 2: 483 return &v.unknownFields 484 default: 485 return nil 486 } 487 } 488 file_app_router_command_command_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 489 switch v := v.(*TestRouteRequest); i { 490 case 0: 491 return &v.state 492 case 1: 493 return &v.sizeCache 494 case 2: 495 return &v.unknownFields 496 default: 497 return nil 498 } 499 } 500 file_app_router_command_command_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 501 switch v := v.(*Config); i { 502 case 0: 503 return &v.state 504 case 1: 505 return &v.sizeCache 506 case 2: 507 return &v.unknownFields 508 default: 509 return nil 510 } 511 } 512 } 513 type x struct{} 514 out := protoimpl.TypeBuilder{ 515 File: protoimpl.DescBuilder{ 516 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 517 RawDescriptor: file_app_router_command_command_proto_rawDesc, 518 NumEnums: 0, 519 NumMessages: 5, 520 NumExtensions: 0, 521 NumServices: 1, 522 }, 523 GoTypes: file_app_router_command_command_proto_goTypes, 524 DependencyIndexes: file_app_router_command_command_proto_depIdxs, 525 MessageInfos: file_app_router_command_command_proto_msgTypes, 526 }.Build() 527 File_app_router_command_command_proto = out.File 528 file_app_router_command_command_proto_rawDesc = nil 529 file_app_router_command_command_proto_goTypes = nil 530 file_app_router_command_command_proto_depIdxs = nil 531 }