config.pb.go 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. package reverse
  2. import (
  3. fmt "fmt"
  4. proto "github.com/golang/protobuf/proto"
  5. math "math"
  6. )
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  16. type Control_State int32
  17. const (
  18. Control_ACTIVE Control_State = 0
  19. Control_DRAIN Control_State = 1
  20. )
  21. var Control_State_name = map[int32]string{
  22. 0: "ACTIVE",
  23. 1: "DRAIN",
  24. }
  25. var Control_State_value = map[string]int32{
  26. "ACTIVE": 0,
  27. "DRAIN": 1,
  28. }
  29. func (x Control_State) String() string {
  30. return proto.EnumName(Control_State_name, int32(x))
  31. }
  32. func (Control_State) EnumDescriptor() ([]byte, []int) {
  33. return fileDescriptor_829a0eeb60380cbc, []int{0, 0}
  34. }
  35. type Control struct {
  36. State Control_State `protobuf:"varint,1,opt,name=state,proto3,enum=v2ray.core.app.reverse.Control_State" json:"state,omitempty"`
  37. Random []byte `protobuf:"bytes,99,opt,name=random,proto3" json:"random,omitempty"`
  38. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  39. XXX_unrecognized []byte `json:"-"`
  40. XXX_sizecache int32 `json:"-"`
  41. }
  42. func (m *Control) Reset() { *m = Control{} }
  43. func (m *Control) String() string { return proto.CompactTextString(m) }
  44. func (*Control) ProtoMessage() {}
  45. func (*Control) Descriptor() ([]byte, []int) {
  46. return fileDescriptor_829a0eeb60380cbc, []int{0}
  47. }
  48. func (m *Control) XXX_Unmarshal(b []byte) error {
  49. return xxx_messageInfo_Control.Unmarshal(m, b)
  50. }
  51. func (m *Control) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  52. return xxx_messageInfo_Control.Marshal(b, m, deterministic)
  53. }
  54. func (m *Control) XXX_Merge(src proto.Message) {
  55. xxx_messageInfo_Control.Merge(m, src)
  56. }
  57. func (m *Control) XXX_Size() int {
  58. return xxx_messageInfo_Control.Size(m)
  59. }
  60. func (m *Control) XXX_DiscardUnknown() {
  61. xxx_messageInfo_Control.DiscardUnknown(m)
  62. }
  63. var xxx_messageInfo_Control proto.InternalMessageInfo
  64. func (m *Control) GetState() Control_State {
  65. if m != nil {
  66. return m.State
  67. }
  68. return Control_ACTIVE
  69. }
  70. func (m *Control) GetRandom() []byte {
  71. if m != nil {
  72. return m.Random
  73. }
  74. return nil
  75. }
  76. type BridgeConfig struct {
  77. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  78. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  79. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  80. XXX_unrecognized []byte `json:"-"`
  81. XXX_sizecache int32 `json:"-"`
  82. }
  83. func (m *BridgeConfig) Reset() { *m = BridgeConfig{} }
  84. func (m *BridgeConfig) String() string { return proto.CompactTextString(m) }
  85. func (*BridgeConfig) ProtoMessage() {}
  86. func (*BridgeConfig) Descriptor() ([]byte, []int) {
  87. return fileDescriptor_829a0eeb60380cbc, []int{1}
  88. }
  89. func (m *BridgeConfig) XXX_Unmarshal(b []byte) error {
  90. return xxx_messageInfo_BridgeConfig.Unmarshal(m, b)
  91. }
  92. func (m *BridgeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  93. return xxx_messageInfo_BridgeConfig.Marshal(b, m, deterministic)
  94. }
  95. func (m *BridgeConfig) XXX_Merge(src proto.Message) {
  96. xxx_messageInfo_BridgeConfig.Merge(m, src)
  97. }
  98. func (m *BridgeConfig) XXX_Size() int {
  99. return xxx_messageInfo_BridgeConfig.Size(m)
  100. }
  101. func (m *BridgeConfig) XXX_DiscardUnknown() {
  102. xxx_messageInfo_BridgeConfig.DiscardUnknown(m)
  103. }
  104. var xxx_messageInfo_BridgeConfig proto.InternalMessageInfo
  105. func (m *BridgeConfig) GetTag() string {
  106. if m != nil {
  107. return m.Tag
  108. }
  109. return ""
  110. }
  111. func (m *BridgeConfig) GetDomain() string {
  112. if m != nil {
  113. return m.Domain
  114. }
  115. return ""
  116. }
  117. type PortalConfig struct {
  118. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  119. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  120. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  121. XXX_unrecognized []byte `json:"-"`
  122. XXX_sizecache int32 `json:"-"`
  123. }
  124. func (m *PortalConfig) Reset() { *m = PortalConfig{} }
  125. func (m *PortalConfig) String() string { return proto.CompactTextString(m) }
  126. func (*PortalConfig) ProtoMessage() {}
  127. func (*PortalConfig) Descriptor() ([]byte, []int) {
  128. return fileDescriptor_829a0eeb60380cbc, []int{2}
  129. }
  130. func (m *PortalConfig) XXX_Unmarshal(b []byte) error {
  131. return xxx_messageInfo_PortalConfig.Unmarshal(m, b)
  132. }
  133. func (m *PortalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  134. return xxx_messageInfo_PortalConfig.Marshal(b, m, deterministic)
  135. }
  136. func (m *PortalConfig) XXX_Merge(src proto.Message) {
  137. xxx_messageInfo_PortalConfig.Merge(m, src)
  138. }
  139. func (m *PortalConfig) XXX_Size() int {
  140. return xxx_messageInfo_PortalConfig.Size(m)
  141. }
  142. func (m *PortalConfig) XXX_DiscardUnknown() {
  143. xxx_messageInfo_PortalConfig.DiscardUnknown(m)
  144. }
  145. var xxx_messageInfo_PortalConfig proto.InternalMessageInfo
  146. func (m *PortalConfig) GetTag() string {
  147. if m != nil {
  148. return m.Tag
  149. }
  150. return ""
  151. }
  152. func (m *PortalConfig) GetDomain() string {
  153. if m != nil {
  154. return m.Domain
  155. }
  156. return ""
  157. }
  158. type Config struct {
  159. BridgeConfig []*BridgeConfig `protobuf:"bytes,1,rep,name=bridge_config,json=bridgeConfig,proto3" json:"bridge_config,omitempty"`
  160. PortalConfig []*PortalConfig `protobuf:"bytes,2,rep,name=portal_config,json=portalConfig,proto3" json:"portal_config,omitempty"`
  161. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  162. XXX_unrecognized []byte `json:"-"`
  163. XXX_sizecache int32 `json:"-"`
  164. }
  165. func (m *Config) Reset() { *m = Config{} }
  166. func (m *Config) String() string { return proto.CompactTextString(m) }
  167. func (*Config) ProtoMessage() {}
  168. func (*Config) Descriptor() ([]byte, []int) {
  169. return fileDescriptor_829a0eeb60380cbc, []int{3}
  170. }
  171. func (m *Config) XXX_Unmarshal(b []byte) error {
  172. return xxx_messageInfo_Config.Unmarshal(m, b)
  173. }
  174. func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  175. return xxx_messageInfo_Config.Marshal(b, m, deterministic)
  176. }
  177. func (m *Config) XXX_Merge(src proto.Message) {
  178. xxx_messageInfo_Config.Merge(m, src)
  179. }
  180. func (m *Config) XXX_Size() int {
  181. return xxx_messageInfo_Config.Size(m)
  182. }
  183. func (m *Config) XXX_DiscardUnknown() {
  184. xxx_messageInfo_Config.DiscardUnknown(m)
  185. }
  186. var xxx_messageInfo_Config proto.InternalMessageInfo
  187. func (m *Config) GetBridgeConfig() []*BridgeConfig {
  188. if m != nil {
  189. return m.BridgeConfig
  190. }
  191. return nil
  192. }
  193. func (m *Config) GetPortalConfig() []*PortalConfig {
  194. if m != nil {
  195. return m.PortalConfig
  196. }
  197. return nil
  198. }
  199. func init() {
  200. proto.RegisterEnum("v2ray.core.app.reverse.Control_State", Control_State_name, Control_State_value)
  201. proto.RegisterType((*Control)(nil), "v2ray.core.app.reverse.Control")
  202. proto.RegisterType((*BridgeConfig)(nil), "v2ray.core.app.reverse.BridgeConfig")
  203. proto.RegisterType((*PortalConfig)(nil), "v2ray.core.app.reverse.PortalConfig")
  204. proto.RegisterType((*Config)(nil), "v2ray.core.app.reverse.Config")
  205. }
  206. func init() {
  207. proto.RegisterFile("v2ray.com/core/app/reverse/config.proto", fileDescriptor_829a0eeb60380cbc)
  208. }
  209. var fileDescriptor_829a0eeb60380cbc = []byte{
  210. // 310 bytes of a gzipped FileDescriptorProto
  211. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0xc1, 0x4b, 0xfb, 0x30,
  212. 0x14, 0xc7, 0x7f, 0xd9, 0x58, 0xc7, 0xde, 0xaf, 0x93, 0x91, 0xc3, 0xe8, 0x41, 0x64, 0x0c, 0xc5,
  213. 0x9d, 0x52, 0xa8, 0x17, 0xc1, 0xd3, 0xd6, 0x79, 0xe8, 0x45, 0x46, 0x94, 0x1d, 0xbc, 0x48, 0xd6,
  214. 0xc5, 0x52, 0x58, 0xfb, 0x42, 0x16, 0x86, 0xbd, 0xf8, 0xa7, 0xf8, 0x07, 0xf8, 0x57, 0x4a, 0xd3,
  215. 0x14, 0x7a, 0x50, 0xc1, 0xdb, 0x7b, 0xc9, 0xe7, 0xf3, 0xf2, 0x4d, 0x02, 0xd7, 0xa7, 0x48, 0x8b,
  216. 0x8a, 0xa5, 0x58, 0x84, 0x29, 0x6a, 0x19, 0x0a, 0xa5, 0x42, 0x2d, 0x4f, 0x52, 0x1f, 0x65, 0x98,
  217. 0x62, 0xf9, 0x9a, 0x67, 0x4c, 0x69, 0x34, 0x48, 0xa7, 0x2d, 0xa8, 0x25, 0x13, 0x4a, 0x31, 0x07,
  218. 0xcd, 0xdf, 0x61, 0x18, 0x63, 0x69, 0x34, 0x1e, 0xe8, 0x1d, 0x0c, 0x8e, 0x46, 0x18, 0x19, 0x90,
  219. 0x19, 0x59, 0x9c, 0x45, 0x57, 0xec, 0x7b, 0x85, 0x39, 0x9e, 0x3d, 0xd6, 0x30, 0x6f, 0x1c, 0x3a,
  220. 0x05, 0x4f, 0x8b, 0x72, 0x8f, 0x45, 0x90, 0xce, 0xc8, 0xc2, 0xe7, 0xae, 0x9b, 0x5f, 0xc0, 0xc0,
  221. 0x72, 0x14, 0xc0, 0x5b, 0xc6, 0x4f, 0xc9, 0xf6, 0x7e, 0xf2, 0x8f, 0x8e, 0x60, 0xb0, 0xe6, 0xcb,
  222. 0xe4, 0x61, 0x42, 0xe6, 0xb7, 0xe0, 0xaf, 0x74, 0xbe, 0xcf, 0x64, 0x6c, 0xd3, 0xd2, 0x09, 0xf4,
  223. 0x8d, 0xc8, 0x6c, 0x84, 0x11, 0xaf, 0xcb, 0x7a, 0xf2, 0x1e, 0x0b, 0x91, 0x97, 0x41, 0xcf, 0x2e,
  224. 0xba, 0xae, 0x36, 0x37, 0xa8, 0x8d, 0x38, 0xfc, 0xd9, 0xfc, 0x20, 0xe0, 0x39, 0x29, 0x81, 0xf1,
  225. 0xce, 0x1e, 0xff, 0xd2, 0xbc, 0x56, 0x40, 0x66, 0xfd, 0xc5, 0xff, 0xe8, 0xf2, 0xa7, 0xbb, 0x77,
  226. 0xb3, 0x72, 0x7f, 0xd7, 0x4d, 0x9e, 0xc0, 0x58, 0xd9, 0x3c, 0xed, 0xa8, 0xde, 0xef, 0xa3, 0xba,
  227. 0xe1, 0xb9, 0xaf, 0x3a, 0xdd, 0x6a, 0x0d, 0xe7, 0x29, 0x16, 0x5d, 0x51, 0x69, 0x7c, 0xab, 0x5a,
  228. 0x75, 0x43, 0x9e, 0x87, 0xae, 0xfc, 0xec, 0x05, 0xdb, 0x88, 0x8b, 0x8a, 0xc5, 0x35, 0xb5, 0xb1,
  229. 0x14, 0x6f, 0xb6, 0x76, 0x9e, 0xfd, 0xf9, 0x9b, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb7, 0x83,
  230. 0x30, 0xdb, 0x24, 0x02, 0x00, 0x00,
  231. }