config.pb.go 11 KB

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