config.pb.go 14 KB

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