config.pb.go 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  5. // source: app/observatory/burst/config.proto
  6. package burst
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. unsafe "unsafe"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type Config struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. // @Document The selectors for outbound under observation
  23. SubjectSelector []string `protobuf:"bytes,2,rep,name=subject_selector,json=subjectSelector,proto3" json:"subject_selector,omitempty"`
  24. PingConfig *HealthPingConfig `protobuf:"bytes,3,opt,name=ping_config,json=pingConfig,proto3" json:"ping_config,omitempty"`
  25. unknownFields protoimpl.UnknownFields
  26. sizeCache protoimpl.SizeCache
  27. }
  28. func (x *Config) Reset() {
  29. *x = Config{}
  30. mi := &file_app_observatory_burst_config_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. func (x *Config) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*Config) ProtoMessage() {}
  38. func (x *Config) ProtoReflect() protoreflect.Message {
  39. mi := &file_app_observatory_burst_config_proto_msgTypes[0]
  40. if x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  50. func (*Config) Descriptor() ([]byte, []int) {
  51. return file_app_observatory_burst_config_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *Config) GetSubjectSelector() []string {
  54. if x != nil {
  55. return x.SubjectSelector
  56. }
  57. return nil
  58. }
  59. func (x *Config) GetPingConfig() *HealthPingConfig {
  60. if x != nil {
  61. return x.PingConfig
  62. }
  63. return nil
  64. }
  65. type HealthPingConfig struct {
  66. state protoimpl.MessageState `protogen:"open.v1"`
  67. // destination url, need 204 for success return
  68. // default https://connectivitycheck.gstatic.com/generate_204
  69. Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
  70. // connectivity check url
  71. Connectivity string `protobuf:"bytes,2,opt,name=connectivity,proto3" json:"connectivity,omitempty"`
  72. // health check interval, int64 values of time.Duration
  73. Interval int64 `protobuf:"varint,3,opt,name=interval,proto3" json:"interval,omitempty"`
  74. // sampling count is the amount of recent ping results which are kept for calculation
  75. SamplingCount int32 `protobuf:"varint,4,opt,name=samplingCount,proto3" json:"samplingCount,omitempty"`
  76. // ping timeout, int64 values of time.Duration
  77. Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
  78. // http method to make request
  79. HttpMethod string `protobuf:"bytes,6,opt,name=httpMethod,proto3" json:"httpMethod,omitempty"`
  80. unknownFields protoimpl.UnknownFields
  81. sizeCache protoimpl.SizeCache
  82. }
  83. func (x *HealthPingConfig) Reset() {
  84. *x = HealthPingConfig{}
  85. mi := &file_app_observatory_burst_config_proto_msgTypes[1]
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. ms.StoreMessageInfo(mi)
  88. }
  89. func (x *HealthPingConfig) String() string {
  90. return protoimpl.X.MessageStringOf(x)
  91. }
  92. func (*HealthPingConfig) ProtoMessage() {}
  93. func (x *HealthPingConfig) ProtoReflect() protoreflect.Message {
  94. mi := &file_app_observatory_burst_config_proto_msgTypes[1]
  95. if x != nil {
  96. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  97. if ms.LoadMessageInfo() == nil {
  98. ms.StoreMessageInfo(mi)
  99. }
  100. return ms
  101. }
  102. return mi.MessageOf(x)
  103. }
  104. // Deprecated: Use HealthPingConfig.ProtoReflect.Descriptor instead.
  105. func (*HealthPingConfig) Descriptor() ([]byte, []int) {
  106. return file_app_observatory_burst_config_proto_rawDescGZIP(), []int{1}
  107. }
  108. func (x *HealthPingConfig) GetDestination() string {
  109. if x != nil {
  110. return x.Destination
  111. }
  112. return ""
  113. }
  114. func (x *HealthPingConfig) GetConnectivity() string {
  115. if x != nil {
  116. return x.Connectivity
  117. }
  118. return ""
  119. }
  120. func (x *HealthPingConfig) GetInterval() int64 {
  121. if x != nil {
  122. return x.Interval
  123. }
  124. return 0
  125. }
  126. func (x *HealthPingConfig) GetSamplingCount() int32 {
  127. if x != nil {
  128. return x.SamplingCount
  129. }
  130. return 0
  131. }
  132. func (x *HealthPingConfig) GetTimeout() int64 {
  133. if x != nil {
  134. return x.Timeout
  135. }
  136. return 0
  137. }
  138. func (x *HealthPingConfig) GetHttpMethod() string {
  139. if x != nil {
  140. return x.HttpMethod
  141. }
  142. return ""
  143. }
  144. var File_app_observatory_burst_config_proto protoreflect.FileDescriptor
  145. const file_app_observatory_burst_config_proto_rawDesc = "" +
  146. "\n" +
  147. "\"app/observatory/burst/config.proto\x12\x1fxray.core.app.observatory.burst\"\x87\x01\n" +
  148. "\x06Config\x12)\n" +
  149. "\x10subject_selector\x18\x02 \x03(\tR\x0fsubjectSelector\x12R\n" +
  150. "\vping_config\x18\x03 \x01(\v21.xray.core.app.observatory.burst.HealthPingConfigR\n" +
  151. "pingConfig\"\xd4\x01\n" +
  152. "\x10HealthPingConfig\x12 \n" +
  153. "\vdestination\x18\x01 \x01(\tR\vdestination\x12\"\n" +
  154. "\fconnectivity\x18\x02 \x01(\tR\fconnectivity\x12\x1a\n" +
  155. "\binterval\x18\x03 \x01(\x03R\binterval\x12$\n" +
  156. "\rsamplingCount\x18\x04 \x01(\x05R\rsamplingCount\x12\x18\n" +
  157. "\atimeout\x18\x05 \x01(\x03R\atimeout\x12\x1e\n" +
  158. "\n" +
  159. "httpMethod\x18\x06 \x01(\tR\n" +
  160. "httpMethodBp\n" +
  161. "\x1ecom.xray.app.observatory.burstP\x01Z/github.com/xtls/xray-core/app/observatory/burst\xaa\x02\x1aXray.App.Observatory.Burstb\x06proto3"
  162. var (
  163. file_app_observatory_burst_config_proto_rawDescOnce sync.Once
  164. file_app_observatory_burst_config_proto_rawDescData []byte
  165. )
  166. func file_app_observatory_burst_config_proto_rawDescGZIP() []byte {
  167. file_app_observatory_burst_config_proto_rawDescOnce.Do(func() {
  168. 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)))
  169. })
  170. return file_app_observatory_burst_config_proto_rawDescData
  171. }
  172. var file_app_observatory_burst_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  173. var file_app_observatory_burst_config_proto_goTypes = []any{
  174. (*Config)(nil), // 0: xray.core.app.observatory.burst.Config
  175. (*HealthPingConfig)(nil), // 1: xray.core.app.observatory.burst.HealthPingConfig
  176. }
  177. var file_app_observatory_burst_config_proto_depIdxs = []int32{
  178. 1, // 0: xray.core.app.observatory.burst.Config.ping_config:type_name -> xray.core.app.observatory.burst.HealthPingConfig
  179. 1, // [1:1] is the sub-list for method output_type
  180. 1, // [1:1] is the sub-list for method input_type
  181. 1, // [1:1] is the sub-list for extension type_name
  182. 1, // [1:1] is the sub-list for extension extendee
  183. 0, // [0:1] is the sub-list for field type_name
  184. }
  185. func init() { file_app_observatory_burst_config_proto_init() }
  186. func file_app_observatory_burst_config_proto_init() {
  187. if File_app_observatory_burst_config_proto != nil {
  188. return
  189. }
  190. type x struct{}
  191. out := protoimpl.TypeBuilder{
  192. File: protoimpl.DescBuilder{
  193. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  194. RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_observatory_burst_config_proto_rawDesc), len(file_app_observatory_burst_config_proto_rawDesc)),
  195. NumEnums: 0,
  196. NumMessages: 2,
  197. NumExtensions: 0,
  198. NumServices: 0,
  199. },
  200. GoTypes: file_app_observatory_burst_config_proto_goTypes,
  201. DependencyIndexes: file_app_observatory_burst_config_proto_depIdxs,
  202. MessageInfos: file_app_observatory_burst_config_proto_msgTypes,
  203. }.Build()
  204. File_app_observatory_burst_config_proto = out.File
  205. file_app_observatory_burst_config_proto_goTypes = nil
  206. file_app_observatory_burst_config_proto_depIdxs = nil
  207. }