|
|
@@ -132,7 +132,7 @@ func (x Config_DomainStrategy) Number() protoreflect.EnumNumber {
|
|
|
|
|
|
// Deprecated: Use Config_DomainStrategy.Descriptor instead.
|
|
|
func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) {
|
|
|
- return file_app_router_config_proto_rawDescGZIP(), []int{11, 0}
|
|
|
+ return file_app_router_config_proto_rawDescGZIP(), []int{10, 0}
|
|
|
}
|
|
|
|
|
|
// Domain for routing decision.
|
|
|
@@ -849,7 +849,6 @@ type StrategyLeastLoadConfig struct {
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
- HealthCheck *HealthPingConfig `protobuf:"bytes,1,opt,name=healthCheck,proto3" json:"healthCheck,omitempty"`
|
|
|
// weight settings
|
|
|
Costs []*StrategyWeight `protobuf:"bytes,2,rep,name=costs,proto3" json:"costs,omitempty"`
|
|
|
// RTT baselines for selecting, int64 values of time.Duration
|
|
|
@@ -894,13 +893,6 @@ func (*StrategyLeastLoadConfig) Descriptor() ([]byte, []int) {
|
|
|
return file_app_router_config_proto_rawDescGZIP(), []int{9}
|
|
|
}
|
|
|
|
|
|
-func (x *StrategyLeastLoadConfig) GetHealthCheck() *HealthPingConfig {
|
|
|
- if x != nil {
|
|
|
- return x.HealthCheck
|
|
|
- }
|
|
|
- return nil
|
|
|
-}
|
|
|
-
|
|
|
func (x *StrategyLeastLoadConfig) GetCosts() []*StrategyWeight {
|
|
|
if x != nil {
|
|
|
return x.Costs
|
|
|
@@ -936,91 +928,6 @@ func (x *StrategyLeastLoadConfig) GetTolerance() float32 {
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
-type HealthPingConfig struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
- // destination url, need 204 for success return
|
|
|
- // default http://www.google.com/gen_204
|
|
|
- Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
|
|
|
- // connectivity check url
|
|
|
- Connectivity string `protobuf:"bytes,2,opt,name=connectivity,proto3" json:"connectivity,omitempty"`
|
|
|
- // health check interval, int64 values of time.Duration
|
|
|
- Interval int64 `protobuf:"varint,3,opt,name=interval,proto3" json:"interval,omitempty"`
|
|
|
- // samplingcount is the amount of recent ping results which are kept for calculation
|
|
|
- SamplingCount int32 `protobuf:"varint,4,opt,name=samplingCount,proto3" json:"samplingCount,omitempty"`
|
|
|
- // ping timeout, int64 values of time.Duration
|
|
|
- Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
-func (x *HealthPingConfig) Reset() {
|
|
|
- *x = HealthPingConfig{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_app_router_config_proto_msgTypes[10]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-func (x *HealthPingConfig) String() string {
|
|
|
- return protoimpl.X.MessageStringOf(x)
|
|
|
-}
|
|
|
-
|
|
|
-func (*HealthPingConfig) ProtoMessage() {}
|
|
|
-
|
|
|
-func (x *HealthPingConfig) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_app_router_config_proto_msgTypes[10]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- if ms.LoadMessageInfo() == nil {
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
- return ms
|
|
|
- }
|
|
|
- return mi.MessageOf(x)
|
|
|
-}
|
|
|
-
|
|
|
-// Deprecated: Use HealthPingConfig.ProtoReflect.Descriptor instead.
|
|
|
-func (*HealthPingConfig) Descriptor() ([]byte, []int) {
|
|
|
- return file_app_router_config_proto_rawDescGZIP(), []int{10}
|
|
|
-}
|
|
|
-
|
|
|
-func (x *HealthPingConfig) GetDestination() string {
|
|
|
- if x != nil {
|
|
|
- return x.Destination
|
|
|
- }
|
|
|
- return ""
|
|
|
-}
|
|
|
-
|
|
|
-func (x *HealthPingConfig) GetConnectivity() string {
|
|
|
- if x != nil {
|
|
|
- return x.Connectivity
|
|
|
- }
|
|
|
- return ""
|
|
|
-}
|
|
|
-
|
|
|
-func (x *HealthPingConfig) GetInterval() int64 {
|
|
|
- if x != nil {
|
|
|
- return x.Interval
|
|
|
- }
|
|
|
- return 0
|
|
|
-}
|
|
|
-
|
|
|
-func (x *HealthPingConfig) GetSamplingCount() int32 {
|
|
|
- if x != nil {
|
|
|
- return x.SamplingCount
|
|
|
- }
|
|
|
- return 0
|
|
|
-}
|
|
|
-
|
|
|
-func (x *HealthPingConfig) GetTimeout() int64 {
|
|
|
- if x != nil {
|
|
|
- return x.Timeout
|
|
|
- }
|
|
|
- return 0
|
|
|
-}
|
|
|
-
|
|
|
type Config struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
@@ -1034,7 +941,7 @@ type Config struct {
|
|
|
func (x *Config) Reset() {
|
|
|
*x = Config{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_app_router_config_proto_msgTypes[11]
|
|
|
+ mi := &file_app_router_config_proto_msgTypes[10]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
@@ -1047,7 +954,7 @@ func (x *Config) String() string {
|
|
|
func (*Config) ProtoMessage() {}
|
|
|
|
|
|
func (x *Config) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_app_router_config_proto_msgTypes[11]
|
|
|
+ mi := &file_app_router_config_proto_msgTypes[10]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
@@ -1060,7 +967,7 @@ func (x *Config) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
// Deprecated: Use Config.ProtoReflect.Descriptor instead.
|
|
|
func (*Config) Descriptor() ([]byte, []int) {
|
|
|
- return file_app_router_config_proto_rawDescGZIP(), []int{11}
|
|
|
+ return file_app_router_config_proto_rawDescGZIP(), []int{10}
|
|
|
}
|
|
|
|
|
|
func (x *Config) GetDomainStrategy() Config_DomainStrategy {
|
|
|
@@ -1099,7 +1006,7 @@ type Domain_Attribute struct {
|
|
|
func (x *Domain_Attribute) Reset() {
|
|
|
*x = Domain_Attribute{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_app_router_config_proto_msgTypes[12]
|
|
|
+ mi := &file_app_router_config_proto_msgTypes[11]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
@@ -1112,7 +1019,7 @@ func (x *Domain_Attribute) String() string {
|
|
|
func (*Domain_Attribute) ProtoMessage() {}
|
|
|
|
|
|
func (x *Domain_Attribute) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_app_router_config_proto_msgTypes[12]
|
|
|
+ mi := &file_app_router_config_proto_msgTypes[11]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
@@ -1304,61 +1211,45 @@ var file_app_router_config_proto_rawDesc = []byte{
|
|
|
0x06, 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68,
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x14, 0x0a,
|
|
|
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x76, 0x61,
|
|
|
- 0x6c, 0x75, 0x65, 0x22, 0x91, 0x02, 0x0a, 0x17, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
|
|
|
+ 0x6c, 0x75, 0x65, 0x22, 0xc6, 0x01, 0x0a, 0x17, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
|
|
|
0x4c, 0x65, 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
|
|
|
- 0x49, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01,
|
|
|
- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
|
|
|
- 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x48, 0x65, 0x61,
|
|
|
- 0x6c, 0x74, 0x68, 0x50, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0b, 0x68,
|
|
|
- 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x3b, 0x0a, 0x05, 0x63, 0x6f,
|
|
|
- 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x76, 0x32, 0x72, 0x61,
|
|
|
- 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
|
|
|
- 0x72, 0x2e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74,
|
|
|
- 0x52, 0x05, 0x63, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x61, 0x73, 0x65, 0x6c,
|
|
|
- 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65,
|
|
|
- 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65,
|
|
|
- 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65,
|
|
|
- 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x78, 0x52, 0x54, 0x54, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
|
- 0x03, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x52, 0x54, 0x54, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x6f, 0x6c,
|
|
|
- 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x74, 0x6f,
|
|
|
- 0x6c, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x10, 0x48, 0x65, 0x61, 0x6c,
|
|
|
- 0x74, 0x68, 0x50, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x20, 0x0a, 0x0b,
|
|
|
- 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
- 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22,
|
|
|
- 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x18, 0x02,
|
|
|
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x76, 0x69,
|
|
|
- 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x03,
|
|
|
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x24,
|
|
|
- 0x0a, 0x0d, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18,
|
|
|
- 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x43,
|
|
|
- 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18,
|
|
|
- 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22, 0xad,
|
|
|
- 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x55, 0x0a, 0x0f, 0x64, 0x6f, 0x6d,
|
|
|
- 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01,
|
|
|
- 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
|
|
|
- 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69,
|
|
|
- 0x67, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
|
|
|
- 0x52, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
|
|
|
- 0x12, 0x36, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22,
|
|
|
+ 0x3b, 0x0a, 0x05, 0x63, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25,
|
|
|
+ 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e,
|
|
|
+ 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x57,
|
|
|
+ 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x05, 0x63, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09,
|
|
|
+ 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52,
|
|
|
+ 0x09, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78,
|
|
|
+ 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x78,
|
|
|
+ 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x78, 0x52, 0x54, 0x54,
|
|
|
+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x52, 0x54, 0x54, 0x12, 0x1c,
|
|
|
+ 0x0a, 0x09, 0x74, 0x6f, 0x6c, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
|
|
|
+ 0x02, 0x52, 0x09, 0x74, 0x6f, 0x6c, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xad, 0x02, 0x0a,
|
|
|
+ 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x55, 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69,
|
|
|
+ 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
|
|
|
+ 0x32, 0x2c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
|
|
|
+ 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
|
|
|
+ 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e,
|
|
|
+ 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x36,
|
|
|
+ 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76,
|
|
|
+ 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f,
|
|
|
+ 0x75, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65,
|
|
|
+ 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63,
|
|
|
+ 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24,
|
|
|
0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e,
|
|
|
- 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75,
|
|
|
- 0x6c, 0x65, 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x62, 0x61, 0x6c, 0x61,
|
|
|
- 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
|
|
|
- 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
|
|
|
- 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69,
|
|
|
- 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e,
|
|
|
- 0x67, 0x52, 0x75, 0x6c, 0x65, 0x22, 0x47, 0x0a, 0x0e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53,
|
|
|
- 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x73, 0x49, 0x73, 0x10,
|
|
|
- 0x00, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x73, 0x65, 0x49, 0x70, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c,
|
|
|
- 0x49, 0x70, 0x49, 0x66, 0x4e, 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x10, 0x02, 0x12, 0x0e,
|
|
|
- 0x0a, 0x0a, 0x49, 0x70, 0x4f, 0x6e, 0x44, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x10, 0x03, 0x42, 0x60,
|
|
|
- 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
|
|
|
- 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x29, 0x67,
|
|
|
- 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f,
|
|
|
- 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x70,
|
|
|
- 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0xaa, 0x02, 0x15, 0x56, 0x32, 0x52, 0x61, 0x79,
|
|
|
- 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72,
|
|
|
- 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+ 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67,
|
|
|
+ 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52,
|
|
|
+ 0x75, 0x6c, 0x65, 0x22, 0x47, 0x0a, 0x0e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72,
|
|
|
+ 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x73, 0x49, 0x73, 0x10, 0x00, 0x12,
|
|
|
+ 0x09, 0x0a, 0x05, 0x55, 0x73, 0x65, 0x49, 0x70, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x70,
|
|
|
+ 0x49, 0x66, 0x4e, 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a,
|
|
|
+ 0x49, 0x70, 0x4f, 0x6e, 0x44, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x10, 0x03, 0x42, 0x60, 0x0a, 0x19,
|
|
|
+ 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
|
|
|
+ 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74,
|
|
|
+ 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32,
|
|
|
+ 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x70, 0x70, 0x2f,
|
|
|
+ 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0xaa, 0x02, 0x15, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43,
|
|
|
+ 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x62, 0x06,
|
|
|
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
|
@@ -1374,7 +1265,7 @@ func file_app_router_config_proto_rawDescGZIP() []byte {
|
|
|
}
|
|
|
|
|
|
var file_app_router_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
|
|
-var file_app_router_config_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
|
|
+var file_app_router_config_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
|
|
var file_app_router_config_proto_goTypes = []interface{}{
|
|
|
(Domain_Type)(0), // 0: v2ray.core.app.router.Domain.Type
|
|
|
(Config_DomainStrategy)(0), // 1: v2ray.core.app.router.Config.DomainStrategy
|
|
|
@@ -1388,18 +1279,17 @@ var file_app_router_config_proto_goTypes = []interface{}{
|
|
|
(*BalancingRule)(nil), // 9: v2ray.core.app.router.BalancingRule
|
|
|
(*StrategyWeight)(nil), // 10: v2ray.core.app.router.StrategyWeight
|
|
|
(*StrategyLeastLoadConfig)(nil), // 11: v2ray.core.app.router.StrategyLeastLoadConfig
|
|
|
- (*HealthPingConfig)(nil), // 12: v2ray.core.app.router.HealthPingConfig
|
|
|
- (*Config)(nil), // 13: v2ray.core.app.router.Config
|
|
|
- (*Domain_Attribute)(nil), // 14: v2ray.core.app.router.Domain.Attribute
|
|
|
- (*net.PortRange)(nil), // 15: v2ray.core.common.net.PortRange
|
|
|
- (*net.PortList)(nil), // 16: v2ray.core.common.net.PortList
|
|
|
- (*net.NetworkList)(nil), // 17: v2ray.core.common.net.NetworkList
|
|
|
- (net.Network)(0), // 18: v2ray.core.common.net.Network
|
|
|
- (*serial.TypedMessage)(nil), // 19: v2ray.core.common.serial.TypedMessage
|
|
|
+ (*Config)(nil), // 12: v2ray.core.app.router.Config
|
|
|
+ (*Domain_Attribute)(nil), // 13: v2ray.core.app.router.Domain.Attribute
|
|
|
+ (*net.PortRange)(nil), // 14: v2ray.core.common.net.PortRange
|
|
|
+ (*net.PortList)(nil), // 15: v2ray.core.common.net.PortList
|
|
|
+ (*net.NetworkList)(nil), // 16: v2ray.core.common.net.NetworkList
|
|
|
+ (net.Network)(0), // 17: v2ray.core.common.net.Network
|
|
|
+ (*serial.TypedMessage)(nil), // 18: v2ray.core.common.serial.TypedMessage
|
|
|
}
|
|
|
var file_app_router_config_proto_depIdxs = []int32{
|
|
|
0, // 0: v2ray.core.app.router.Domain.type:type_name -> v2ray.core.app.router.Domain.Type
|
|
|
- 14, // 1: v2ray.core.app.router.Domain.attribute:type_name -> v2ray.core.app.router.Domain.Attribute
|
|
|
+ 13, // 1: v2ray.core.app.router.Domain.attribute:type_name -> v2ray.core.app.router.Domain.Attribute
|
|
|
3, // 2: v2ray.core.app.router.GeoIP.cidr:type_name -> v2ray.core.app.router.CIDR
|
|
|
4, // 3: v2ray.core.app.router.GeoIPList.entry:type_name -> v2ray.core.app.router.GeoIP
|
|
|
2, // 4: v2ray.core.app.router.GeoSite.domain:type_name -> v2ray.core.app.router.Domain
|
|
|
@@ -1407,24 +1297,23 @@ var file_app_router_config_proto_depIdxs = []int32{
|
|
|
2, // 6: v2ray.core.app.router.RoutingRule.domain:type_name -> v2ray.core.app.router.Domain
|
|
|
3, // 7: v2ray.core.app.router.RoutingRule.cidr:type_name -> v2ray.core.app.router.CIDR
|
|
|
4, // 8: v2ray.core.app.router.RoutingRule.geoip:type_name -> v2ray.core.app.router.GeoIP
|
|
|
- 15, // 9: v2ray.core.app.router.RoutingRule.port_range:type_name -> v2ray.core.common.net.PortRange
|
|
|
- 16, // 10: v2ray.core.app.router.RoutingRule.port_list:type_name -> v2ray.core.common.net.PortList
|
|
|
- 17, // 11: v2ray.core.app.router.RoutingRule.network_list:type_name -> v2ray.core.common.net.NetworkList
|
|
|
- 18, // 12: v2ray.core.app.router.RoutingRule.networks:type_name -> v2ray.core.common.net.Network
|
|
|
+ 14, // 9: v2ray.core.app.router.RoutingRule.port_range:type_name -> v2ray.core.common.net.PortRange
|
|
|
+ 15, // 10: v2ray.core.app.router.RoutingRule.port_list:type_name -> v2ray.core.common.net.PortList
|
|
|
+ 16, // 11: v2ray.core.app.router.RoutingRule.network_list:type_name -> v2ray.core.common.net.NetworkList
|
|
|
+ 17, // 12: v2ray.core.app.router.RoutingRule.networks:type_name -> v2ray.core.common.net.Network
|
|
|
3, // 13: v2ray.core.app.router.RoutingRule.source_cidr:type_name -> v2ray.core.app.router.CIDR
|
|
|
4, // 14: v2ray.core.app.router.RoutingRule.source_geoip:type_name -> v2ray.core.app.router.GeoIP
|
|
|
- 16, // 15: v2ray.core.app.router.RoutingRule.source_port_list:type_name -> v2ray.core.common.net.PortList
|
|
|
- 19, // 16: v2ray.core.app.router.BalancingRule.strategy_settings:type_name -> v2ray.core.common.serial.TypedMessage
|
|
|
- 12, // 17: v2ray.core.app.router.StrategyLeastLoadConfig.healthCheck:type_name -> v2ray.core.app.router.HealthPingConfig
|
|
|
- 10, // 18: v2ray.core.app.router.StrategyLeastLoadConfig.costs:type_name -> v2ray.core.app.router.StrategyWeight
|
|
|
- 1, // 19: v2ray.core.app.router.Config.domain_strategy:type_name -> v2ray.core.app.router.Config.DomainStrategy
|
|
|
- 8, // 20: v2ray.core.app.router.Config.rule:type_name -> v2ray.core.app.router.RoutingRule
|
|
|
- 9, // 21: v2ray.core.app.router.Config.balancing_rule:type_name -> v2ray.core.app.router.BalancingRule
|
|
|
- 22, // [22:22] is the sub-list for method output_type
|
|
|
- 22, // [22:22] is the sub-list for method input_type
|
|
|
- 22, // [22:22] is the sub-list for extension type_name
|
|
|
- 22, // [22:22] is the sub-list for extension extendee
|
|
|
- 0, // [0:22] is the sub-list for field type_name
|
|
|
+ 15, // 15: v2ray.core.app.router.RoutingRule.source_port_list:type_name -> v2ray.core.common.net.PortList
|
|
|
+ 18, // 16: v2ray.core.app.router.BalancingRule.strategy_settings:type_name -> v2ray.core.common.serial.TypedMessage
|
|
|
+ 10, // 17: v2ray.core.app.router.StrategyLeastLoadConfig.costs:type_name -> v2ray.core.app.router.StrategyWeight
|
|
|
+ 1, // 18: v2ray.core.app.router.Config.domain_strategy:type_name -> v2ray.core.app.router.Config.DomainStrategy
|
|
|
+ 8, // 19: v2ray.core.app.router.Config.rule:type_name -> v2ray.core.app.router.RoutingRule
|
|
|
+ 9, // 20: v2ray.core.app.router.Config.balancing_rule:type_name -> v2ray.core.app.router.BalancingRule
|
|
|
+ 21, // [21:21] is the sub-list for method output_type
|
|
|
+ 21, // [21:21] is the sub-list for method input_type
|
|
|
+ 21, // [21:21] is the sub-list for extension type_name
|
|
|
+ 21, // [21:21] is the sub-list for extension extendee
|
|
|
+ 0, // [0:21] is the sub-list for field type_name
|
|
|
}
|
|
|
|
|
|
func init() { file_app_router_config_proto_init() }
|
|
|
@@ -1554,18 +1443,6 @@ func file_app_router_config_proto_init() {
|
|
|
}
|
|
|
}
|
|
|
file_app_router_config_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*HealthPingConfig); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_app_router_config_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*Config); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
@@ -1577,7 +1454,7 @@ func file_app_router_config_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
- file_app_router_config_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ file_app_router_config_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*Domain_Attribute); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
@@ -1594,7 +1471,7 @@ func file_app_router_config_proto_init() {
|
|
|
(*RoutingRule_Tag)(nil),
|
|
|
(*RoutingRule_BalancingTag)(nil),
|
|
|
}
|
|
|
- file_app_router_config_proto_msgTypes[12].OneofWrappers = []interface{}{
|
|
|
+ file_app_router_config_proto_msgTypes[11].OneofWrappers = []interface{}{
|
|
|
(*Domain_Attribute_BoolValue)(nil),
|
|
|
(*Domain_Attribute_IntValue)(nil),
|
|
|
}
|
|
|
@@ -1604,7 +1481,7 @@ func file_app_router_config_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_app_router_config_proto_rawDesc,
|
|
|
NumEnums: 2,
|
|
|
- NumMessages: 13,
|
|
|
+ NumMessages: 12,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 0,
|
|
|
},
|