github.com/imannamdari/v2ray-core/v5@v5.0.5/app/observatory/burst/config.pb.go (about) 1 package burst 2 3 import ( 4 reflect "reflect" 5 sync "sync" 6 7 _ "github.com/imannamdari/v2ray-core/v5/common/protoext" 8 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 9 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 10 ) 11 12 const ( 13 // Verify that this generated code is sufficiently up-to-date. 14 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 15 // Verify that runtime/protoimpl is sufficiently up-to-date. 16 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 17 ) 18 19 type Config struct { 20 state protoimpl.MessageState 21 sizeCache protoimpl.SizeCache 22 unknownFields protoimpl.UnknownFields 23 24 // @Document The selectors for outbound under observation 25 SubjectSelector []string `protobuf:"bytes,2,rep,name=subject_selector,json=subjectSelector,proto3" json:"subject_selector,omitempty"` 26 PingConfig *HealthPingConfig `protobuf:"bytes,3,opt,name=ping_config,json=pingConfig,proto3" json:"ping_config,omitempty"` 27 } 28 29 func (x *Config) Reset() { 30 *x = Config{} 31 if protoimpl.UnsafeEnabled { 32 mi := &file_app_observatory_burst_config_proto_msgTypes[0] 33 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 34 ms.StoreMessageInfo(mi) 35 } 36 } 37 38 func (x *Config) String() string { 39 return protoimpl.X.MessageStringOf(x) 40 } 41 42 func (*Config) ProtoMessage() {} 43 44 func (x *Config) ProtoReflect() protoreflect.Message { 45 mi := &file_app_observatory_burst_config_proto_msgTypes[0] 46 if protoimpl.UnsafeEnabled && x != nil { 47 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 48 if ms.LoadMessageInfo() == nil { 49 ms.StoreMessageInfo(mi) 50 } 51 return ms 52 } 53 return mi.MessageOf(x) 54 } 55 56 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 57 func (*Config) Descriptor() ([]byte, []int) { 58 return file_app_observatory_burst_config_proto_rawDescGZIP(), []int{0} 59 } 60 61 func (x *Config) GetSubjectSelector() []string { 62 if x != nil { 63 return x.SubjectSelector 64 } 65 return nil 66 } 67 68 func (x *Config) GetPingConfig() *HealthPingConfig { 69 if x != nil { 70 return x.PingConfig 71 } 72 return nil 73 } 74 75 type HealthPingConfig struct { 76 state protoimpl.MessageState 77 sizeCache protoimpl.SizeCache 78 unknownFields protoimpl.UnknownFields 79 80 // destination url, need 204 for success return 81 // default https://connectivitycheck.gstatic.com/generate_204 82 Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` 83 // connectivity check url 84 Connectivity string `protobuf:"bytes,2,opt,name=connectivity,proto3" json:"connectivity,omitempty"` 85 // health check interval, int64 values of time.Duration 86 Interval int64 `protobuf:"varint,3,opt,name=interval,proto3" json:"interval,omitempty"` 87 // sampling count is the amount of recent ping results which are kept for calculation 88 SamplingCount int32 `protobuf:"varint,4,opt,name=samplingCount,proto3" json:"samplingCount,omitempty"` 89 // ping timeout, int64 values of time.Duration 90 Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` 91 } 92 93 func (x *HealthPingConfig) Reset() { 94 *x = HealthPingConfig{} 95 if protoimpl.UnsafeEnabled { 96 mi := &file_app_observatory_burst_config_proto_msgTypes[1] 97 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 98 ms.StoreMessageInfo(mi) 99 } 100 } 101 102 func (x *HealthPingConfig) String() string { 103 return protoimpl.X.MessageStringOf(x) 104 } 105 106 func (*HealthPingConfig) ProtoMessage() {} 107 108 func (x *HealthPingConfig) ProtoReflect() protoreflect.Message { 109 mi := &file_app_observatory_burst_config_proto_msgTypes[1] 110 if protoimpl.UnsafeEnabled && x != nil { 111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 112 if ms.LoadMessageInfo() == nil { 113 ms.StoreMessageInfo(mi) 114 } 115 return ms 116 } 117 return mi.MessageOf(x) 118 } 119 120 // Deprecated: Use HealthPingConfig.ProtoReflect.Descriptor instead. 121 func (*HealthPingConfig) Descriptor() ([]byte, []int) { 122 return file_app_observatory_burst_config_proto_rawDescGZIP(), []int{1} 123 } 124 125 func (x *HealthPingConfig) GetDestination() string { 126 if x != nil { 127 return x.Destination 128 } 129 return "" 130 } 131 132 func (x *HealthPingConfig) GetConnectivity() string { 133 if x != nil { 134 return x.Connectivity 135 } 136 return "" 137 } 138 139 func (x *HealthPingConfig) GetInterval() int64 { 140 if x != nil { 141 return x.Interval 142 } 143 return 0 144 } 145 146 func (x *HealthPingConfig) GetSamplingCount() int32 { 147 if x != nil { 148 return x.SamplingCount 149 } 150 return 0 151 } 152 153 func (x *HealthPingConfig) GetTimeout() int64 { 154 if x != nil { 155 return x.Timeout 156 } 157 return 0 158 } 159 160 var File_app_observatory_burst_config_proto protoreflect.FileDescriptor 161 162 var file_app_observatory_burst_config_proto_rawDesc = []byte{ 163 0x0a, 0x22, 0x61, 0x70, 0x70, 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 164 0x79, 0x2f, 0x62, 0x75, 0x72, 0x73, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 165 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 166 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 167 0x2e, 0x62, 0x75, 0x72, 0x73, 0x74, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 168 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 169 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xad, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 170 0x66, 0x69, 0x67, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 171 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x73, 172 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x53, 173 0x0a, 0x0b, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 174 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 175 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 176 0x2e, 0x62, 0x75, 0x72, 0x73, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x50, 0x69, 0x6e, 177 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0a, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 178 0x66, 0x69, 0x67, 0x3a, 0x23, 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 179 0x63, 0x65, 0x82, 0xb5, 0x18, 0x12, 0x12, 0x10, 0x62, 0x75, 0x72, 0x73, 0x74, 0x4f, 0x62, 0x73, 180 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x22, 0xb4, 0x01, 0x0a, 0x10, 0x48, 0x65, 0x61, 181 0x6c, 0x74, 0x68, 0x50, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x20, 0x0a, 182 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 183 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 184 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x18, 185 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x76, 186 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 187 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 188 0x24, 0x0a, 0x0d, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x74, 189 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 190 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 191 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x42, 192 0x81, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 193 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 194 0x72, 0x79, 0x2e, 0x62, 0x75, 0x72, 0x73, 0x74, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 195 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 196 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x6f, 197 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x62, 0x75, 0x72, 0x73, 0x74, 198 0xaa, 0x02, 0x20, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 199 0x70, 0x2e, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x42, 0x75, 200 0x72, 0x73, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 201 } 202 203 var ( 204 file_app_observatory_burst_config_proto_rawDescOnce sync.Once 205 file_app_observatory_burst_config_proto_rawDescData = file_app_observatory_burst_config_proto_rawDesc 206 ) 207 208 func file_app_observatory_burst_config_proto_rawDescGZIP() []byte { 209 file_app_observatory_burst_config_proto_rawDescOnce.Do(func() { 210 file_app_observatory_burst_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_observatory_burst_config_proto_rawDescData) 211 }) 212 return file_app_observatory_burst_config_proto_rawDescData 213 } 214 215 var file_app_observatory_burst_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 216 var file_app_observatory_burst_config_proto_goTypes = []interface{}{ 217 (*Config)(nil), // 0: v2ray.core.app.observatory.burst.Config 218 (*HealthPingConfig)(nil), // 1: v2ray.core.app.observatory.burst.HealthPingConfig 219 } 220 var file_app_observatory_burst_config_proto_depIdxs = []int32{ 221 1, // 0: v2ray.core.app.observatory.burst.Config.ping_config:type_name -> v2ray.core.app.observatory.burst.HealthPingConfig 222 1, // [1:1] is the sub-list for method output_type 223 1, // [1:1] is the sub-list for method input_type 224 1, // [1:1] is the sub-list for extension type_name 225 1, // [1:1] is the sub-list for extension extendee 226 0, // [0:1] is the sub-list for field type_name 227 } 228 229 func init() { file_app_observatory_burst_config_proto_init() } 230 func file_app_observatory_burst_config_proto_init() { 231 if File_app_observatory_burst_config_proto != nil { 232 return 233 } 234 if !protoimpl.UnsafeEnabled { 235 file_app_observatory_burst_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 236 switch v := v.(*Config); i { 237 case 0: 238 return &v.state 239 case 1: 240 return &v.sizeCache 241 case 2: 242 return &v.unknownFields 243 default: 244 return nil 245 } 246 } 247 file_app_observatory_burst_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 248 switch v := v.(*HealthPingConfig); i { 249 case 0: 250 return &v.state 251 case 1: 252 return &v.sizeCache 253 case 2: 254 return &v.unknownFields 255 default: 256 return nil 257 } 258 } 259 } 260 type x struct{} 261 out := protoimpl.TypeBuilder{ 262 File: protoimpl.DescBuilder{ 263 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 264 RawDescriptor: file_app_observatory_burst_config_proto_rawDesc, 265 NumEnums: 0, 266 NumMessages: 2, 267 NumExtensions: 0, 268 NumServices: 0, 269 }, 270 GoTypes: file_app_observatory_burst_config_proto_goTypes, 271 DependencyIndexes: file_app_observatory_burst_config_proto_depIdxs, 272 MessageInfos: file_app_observatory_burst_config_proto_msgTypes, 273 }.Build() 274 File_app_observatory_burst_config_proto = out.File 275 file_app_observatory_burst_config_proto_rawDesc = nil 276 file_app_observatory_burst_config_proto_goTypes = nil 277 file_app_observatory_burst_config_proto_depIdxs = nil 278 }