config.pb.go 10 KB

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