1
0

config.pb.go 10.0 KB

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