config.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.33.0
  4. // protoc v4.23.1
  5. // source: app/reverse/config.proto
  6. package reverse
  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 Control_State int32
  20. const (
  21. Control_ACTIVE Control_State = 0
  22. Control_DRAIN Control_State = 1
  23. )
  24. // Enum value maps for Control_State.
  25. var (
  26. Control_State_name = map[int32]string{
  27. 0: "ACTIVE",
  28. 1: "DRAIN",
  29. }
  30. Control_State_value = map[string]int32{
  31. "ACTIVE": 0,
  32. "DRAIN": 1,
  33. }
  34. )
  35. func (x Control_State) Enum() *Control_State {
  36. p := new(Control_State)
  37. *p = x
  38. return p
  39. }
  40. func (x Control_State) String() string {
  41. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  42. }
  43. func (Control_State) Descriptor() protoreflect.EnumDescriptor {
  44. return file_app_reverse_config_proto_enumTypes[0].Descriptor()
  45. }
  46. func (Control_State) Type() protoreflect.EnumType {
  47. return &file_app_reverse_config_proto_enumTypes[0]
  48. }
  49. func (x Control_State) Number() protoreflect.EnumNumber {
  50. return protoreflect.EnumNumber(x)
  51. }
  52. // Deprecated: Use Control_State.Descriptor instead.
  53. func (Control_State) EnumDescriptor() ([]byte, []int) {
  54. return file_app_reverse_config_proto_rawDescGZIP(), []int{0, 0}
  55. }
  56. type Control struct {
  57. state protoimpl.MessageState
  58. sizeCache protoimpl.SizeCache
  59. unknownFields protoimpl.UnknownFields
  60. State Control_State `protobuf:"varint,1,opt,name=state,proto3,enum=xray.app.reverse.Control_State" json:"state,omitempty"`
  61. Random []byte `protobuf:"bytes,99,opt,name=random,proto3" json:"random,omitempty"`
  62. }
  63. func (x *Control) Reset() {
  64. *x = Control{}
  65. if protoimpl.UnsafeEnabled {
  66. mi := &file_app_reverse_config_proto_msgTypes[0]
  67. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  68. ms.StoreMessageInfo(mi)
  69. }
  70. }
  71. func (x *Control) String() string {
  72. return protoimpl.X.MessageStringOf(x)
  73. }
  74. func (*Control) ProtoMessage() {}
  75. func (x *Control) ProtoReflect() protoreflect.Message {
  76. mi := &file_app_reverse_config_proto_msgTypes[0]
  77. if protoimpl.UnsafeEnabled && x != nil {
  78. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  79. if ms.LoadMessageInfo() == nil {
  80. ms.StoreMessageInfo(mi)
  81. }
  82. return ms
  83. }
  84. return mi.MessageOf(x)
  85. }
  86. // Deprecated: Use Control.ProtoReflect.Descriptor instead.
  87. func (*Control) Descriptor() ([]byte, []int) {
  88. return file_app_reverse_config_proto_rawDescGZIP(), []int{0}
  89. }
  90. func (x *Control) GetState() Control_State {
  91. if x != nil {
  92. return x.State
  93. }
  94. return Control_ACTIVE
  95. }
  96. func (x *Control) GetRandom() []byte {
  97. if x != nil {
  98. return x.Random
  99. }
  100. return nil
  101. }
  102. type BridgeConfig struct {
  103. state protoimpl.MessageState
  104. sizeCache protoimpl.SizeCache
  105. unknownFields protoimpl.UnknownFields
  106. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  107. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  108. }
  109. func (x *BridgeConfig) Reset() {
  110. *x = BridgeConfig{}
  111. if protoimpl.UnsafeEnabled {
  112. mi := &file_app_reverse_config_proto_msgTypes[1]
  113. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  114. ms.StoreMessageInfo(mi)
  115. }
  116. }
  117. func (x *BridgeConfig) String() string {
  118. return protoimpl.X.MessageStringOf(x)
  119. }
  120. func (*BridgeConfig) ProtoMessage() {}
  121. func (x *BridgeConfig) ProtoReflect() protoreflect.Message {
  122. mi := &file_app_reverse_config_proto_msgTypes[1]
  123. if protoimpl.UnsafeEnabled && x != nil {
  124. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  125. if ms.LoadMessageInfo() == nil {
  126. ms.StoreMessageInfo(mi)
  127. }
  128. return ms
  129. }
  130. return mi.MessageOf(x)
  131. }
  132. // Deprecated: Use BridgeConfig.ProtoReflect.Descriptor instead.
  133. func (*BridgeConfig) Descriptor() ([]byte, []int) {
  134. return file_app_reverse_config_proto_rawDescGZIP(), []int{1}
  135. }
  136. func (x *BridgeConfig) GetTag() string {
  137. if x != nil {
  138. return x.Tag
  139. }
  140. return ""
  141. }
  142. func (x *BridgeConfig) GetDomain() string {
  143. if x != nil {
  144. return x.Domain
  145. }
  146. return ""
  147. }
  148. type PortalConfig struct {
  149. state protoimpl.MessageState
  150. sizeCache protoimpl.SizeCache
  151. unknownFields protoimpl.UnknownFields
  152. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  153. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  154. }
  155. func (x *PortalConfig) Reset() {
  156. *x = PortalConfig{}
  157. if protoimpl.UnsafeEnabled {
  158. mi := &file_app_reverse_config_proto_msgTypes[2]
  159. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  160. ms.StoreMessageInfo(mi)
  161. }
  162. }
  163. func (x *PortalConfig) String() string {
  164. return protoimpl.X.MessageStringOf(x)
  165. }
  166. func (*PortalConfig) ProtoMessage() {}
  167. func (x *PortalConfig) ProtoReflect() protoreflect.Message {
  168. mi := &file_app_reverse_config_proto_msgTypes[2]
  169. if protoimpl.UnsafeEnabled && x != nil {
  170. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  171. if ms.LoadMessageInfo() == nil {
  172. ms.StoreMessageInfo(mi)
  173. }
  174. return ms
  175. }
  176. return mi.MessageOf(x)
  177. }
  178. // Deprecated: Use PortalConfig.ProtoReflect.Descriptor instead.
  179. func (*PortalConfig) Descriptor() ([]byte, []int) {
  180. return file_app_reverse_config_proto_rawDescGZIP(), []int{2}
  181. }
  182. func (x *PortalConfig) GetTag() string {
  183. if x != nil {
  184. return x.Tag
  185. }
  186. return ""
  187. }
  188. func (x *PortalConfig) GetDomain() string {
  189. if x != nil {
  190. return x.Domain
  191. }
  192. return ""
  193. }
  194. type Config struct {
  195. state protoimpl.MessageState
  196. sizeCache protoimpl.SizeCache
  197. unknownFields protoimpl.UnknownFields
  198. BridgeConfig []*BridgeConfig `protobuf:"bytes,1,rep,name=bridge_config,json=bridgeConfig,proto3" json:"bridge_config,omitempty"`
  199. PortalConfig []*PortalConfig `protobuf:"bytes,2,rep,name=portal_config,json=portalConfig,proto3" json:"portal_config,omitempty"`
  200. }
  201. func (x *Config) Reset() {
  202. *x = Config{}
  203. if protoimpl.UnsafeEnabled {
  204. mi := &file_app_reverse_config_proto_msgTypes[3]
  205. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  206. ms.StoreMessageInfo(mi)
  207. }
  208. }
  209. func (x *Config) String() string {
  210. return protoimpl.X.MessageStringOf(x)
  211. }
  212. func (*Config) ProtoMessage() {}
  213. func (x *Config) ProtoReflect() protoreflect.Message {
  214. mi := &file_app_reverse_config_proto_msgTypes[3]
  215. if protoimpl.UnsafeEnabled && x != nil {
  216. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  217. if ms.LoadMessageInfo() == nil {
  218. ms.StoreMessageInfo(mi)
  219. }
  220. return ms
  221. }
  222. return mi.MessageOf(x)
  223. }
  224. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  225. func (*Config) Descriptor() ([]byte, []int) {
  226. return file_app_reverse_config_proto_rawDescGZIP(), []int{3}
  227. }
  228. func (x *Config) GetBridgeConfig() []*BridgeConfig {
  229. if x != nil {
  230. return x.BridgeConfig
  231. }
  232. return nil
  233. }
  234. func (x *Config) GetPortalConfig() []*PortalConfig {
  235. if x != nil {
  236. return x.PortalConfig
  237. }
  238. return nil
  239. }
  240. var File_app_reverse_config_proto protoreflect.FileDescriptor
  241. var file_app_reverse_config_proto_rawDesc = []byte{
  242. 0x0a, 0x18, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2f, 0x63, 0x6f,
  243. 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x78, 0x72, 0x61, 0x79,
  244. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0x78, 0x0a, 0x07,
  245. 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65,
  246. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70,
  247. 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
  248. 0x6c, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16,
  249. 0x0a, 0x06, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06,
  250. 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x22, 0x1e, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
  251. 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x44,
  252. 0x52, 0x41, 0x49, 0x4e, 0x10, 0x01, 0x22, 0x38, 0x0a, 0x0c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65,
  253. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20,
  254. 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61,
  255. 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  256. 0x22, 0x38, 0x0a, 0x0c, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  257. 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74,
  258. 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01,
  259. 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x92, 0x01, 0x0a, 0x06, 0x43,
  260. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x43, 0x0a, 0x0d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f,
  261. 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x78,
  262. 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e,
  263. 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x62, 0x72,
  264. 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x43, 0x0a, 0x0d, 0x70, 0x6f,
  265. 0x72, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x03, 0x28,
  266. 0x0b, 0x32, 0x1e, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76,
  267. 0x65, 0x72, 0x73, 0x65, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  268. 0x67, 0x52, 0x0c, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42,
  269. 0x56, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  270. 0x79, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x01, 0x5a, 0x25, 0x67, 0x69, 0x74,
  271. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61,
  272. 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x76, 0x65, 0x72,
  273. 0x73, 0x65, 0xaa, 0x02, 0x12, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e,
  274. 0x52, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  275. }
  276. var (
  277. file_app_reverse_config_proto_rawDescOnce sync.Once
  278. file_app_reverse_config_proto_rawDescData = file_app_reverse_config_proto_rawDesc
  279. )
  280. func file_app_reverse_config_proto_rawDescGZIP() []byte {
  281. file_app_reverse_config_proto_rawDescOnce.Do(func() {
  282. file_app_reverse_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_reverse_config_proto_rawDescData)
  283. })
  284. return file_app_reverse_config_proto_rawDescData
  285. }
  286. var file_app_reverse_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  287. var file_app_reverse_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  288. var file_app_reverse_config_proto_goTypes = []interface{}{
  289. (Control_State)(0), // 0: xray.app.reverse.Control.State
  290. (*Control)(nil), // 1: xray.app.reverse.Control
  291. (*BridgeConfig)(nil), // 2: xray.app.reverse.BridgeConfig
  292. (*PortalConfig)(nil), // 3: xray.app.reverse.PortalConfig
  293. (*Config)(nil), // 4: xray.app.reverse.Config
  294. }
  295. var file_app_reverse_config_proto_depIdxs = []int32{
  296. 0, // 0: xray.app.reverse.Control.state:type_name -> xray.app.reverse.Control.State
  297. 2, // 1: xray.app.reverse.Config.bridge_config:type_name -> xray.app.reverse.BridgeConfig
  298. 3, // 2: xray.app.reverse.Config.portal_config:type_name -> xray.app.reverse.PortalConfig
  299. 3, // [3:3] is the sub-list for method output_type
  300. 3, // [3:3] is the sub-list for method input_type
  301. 3, // [3:3] is the sub-list for extension type_name
  302. 3, // [3:3] is the sub-list for extension extendee
  303. 0, // [0:3] is the sub-list for field type_name
  304. }
  305. func init() { file_app_reverse_config_proto_init() }
  306. func file_app_reverse_config_proto_init() {
  307. if File_app_reverse_config_proto != nil {
  308. return
  309. }
  310. if !protoimpl.UnsafeEnabled {
  311. file_app_reverse_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  312. switch v := v.(*Control); i {
  313. case 0:
  314. return &v.state
  315. case 1:
  316. return &v.sizeCache
  317. case 2:
  318. return &v.unknownFields
  319. default:
  320. return nil
  321. }
  322. }
  323. file_app_reverse_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  324. switch v := v.(*BridgeConfig); i {
  325. case 0:
  326. return &v.state
  327. case 1:
  328. return &v.sizeCache
  329. case 2:
  330. return &v.unknownFields
  331. default:
  332. return nil
  333. }
  334. }
  335. file_app_reverse_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  336. switch v := v.(*PortalConfig); i {
  337. case 0:
  338. return &v.state
  339. case 1:
  340. return &v.sizeCache
  341. case 2:
  342. return &v.unknownFields
  343. default:
  344. return nil
  345. }
  346. }
  347. file_app_reverse_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  348. switch v := v.(*Config); i {
  349. case 0:
  350. return &v.state
  351. case 1:
  352. return &v.sizeCache
  353. case 2:
  354. return &v.unknownFields
  355. default:
  356. return nil
  357. }
  358. }
  359. }
  360. type x struct{}
  361. out := protoimpl.TypeBuilder{
  362. File: protoimpl.DescBuilder{
  363. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  364. RawDescriptor: file_app_reverse_config_proto_rawDesc,
  365. NumEnums: 1,
  366. NumMessages: 4,
  367. NumExtensions: 0,
  368. NumServices: 0,
  369. },
  370. GoTypes: file_app_reverse_config_proto_goTypes,
  371. DependencyIndexes: file_app_reverse_config_proto_depIdxs,
  372. EnumInfos: file_app_reverse_config_proto_enumTypes,
  373. MessageInfos: file_app_reverse_config_proto_msgTypes,
  374. }.Build()
  375. File_app_reverse_config_proto = out.File
  376. file_app_reverse_config_proto_rawDesc = nil
  377. file_app_reverse_config_proto_goTypes = nil
  378. file_app_reverse_config_proto_depIdxs = nil
  379. }