config.pb.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. package proxyman
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. import v2ray_core_common_net "v2ray.com/core/common/net"
  6. import v2ray_core_common_net1 "v2ray.com/core/common/net"
  7. import v2ray_core_transport_internet "v2ray.com/core/transport/internet"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. type KnownProtocols int32
  18. const (
  19. KnownProtocols_HTTP KnownProtocols = 0
  20. KnownProtocols_TLS KnownProtocols = 1
  21. )
  22. var KnownProtocols_name = map[int32]string{
  23. 0: "HTTP",
  24. 1: "TLS",
  25. }
  26. var KnownProtocols_value = map[string]int32{
  27. "HTTP": 0,
  28. "TLS": 1,
  29. }
  30. func (x KnownProtocols) String() string {
  31. return proto.EnumName(KnownProtocols_name, int32(x))
  32. }
  33. func (KnownProtocols) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  34. type AllocationStrategy_Type int32
  35. const (
  36. // Always allocate all connection handlers.
  37. AllocationStrategy_Always AllocationStrategy_Type = 0
  38. // Randomly allocate specific range of handlers.
  39. AllocationStrategy_Random AllocationStrategy_Type = 1
  40. // External. Not supported yet.
  41. AllocationStrategy_External AllocationStrategy_Type = 2
  42. )
  43. var AllocationStrategy_Type_name = map[int32]string{
  44. 0: "Always",
  45. 1: "Random",
  46. 2: "External",
  47. }
  48. var AllocationStrategy_Type_value = map[string]int32{
  49. "Always": 0,
  50. "Random": 1,
  51. "External": 2,
  52. }
  53. func (x AllocationStrategy_Type) String() string {
  54. return proto.EnumName(AllocationStrategy_Type_name, int32(x))
  55. }
  56. func (AllocationStrategy_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
  57. type InboundConfig struct {
  58. }
  59. func (m *InboundConfig) Reset() { *m = InboundConfig{} }
  60. func (m *InboundConfig) String() string { return proto.CompactTextString(m) }
  61. func (*InboundConfig) ProtoMessage() {}
  62. func (*InboundConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  63. type AllocationStrategy struct {
  64. Type AllocationStrategy_Type `protobuf:"varint,1,opt,name=type,enum=v2ray.core.app.proxyman.AllocationStrategy_Type" json:"type,omitempty"`
  65. // Number of handlers (ports) running in parallel.
  66. // Default value is 3 if unset.
  67. Concurrency *AllocationStrategy_AllocationStrategyConcurrency `protobuf:"bytes,2,opt,name=concurrency" json:"concurrency,omitempty"`
  68. // Number of minutes before a handler is regenerated.
  69. // Default value is 5 if unset.
  70. Refresh *AllocationStrategy_AllocationStrategyRefresh `protobuf:"bytes,3,opt,name=refresh" json:"refresh,omitempty"`
  71. }
  72. func (m *AllocationStrategy) Reset() { *m = AllocationStrategy{} }
  73. func (m *AllocationStrategy) String() string { return proto.CompactTextString(m) }
  74. func (*AllocationStrategy) ProtoMessage() {}
  75. func (*AllocationStrategy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  76. func (m *AllocationStrategy) GetType() AllocationStrategy_Type {
  77. if m != nil {
  78. return m.Type
  79. }
  80. return AllocationStrategy_Always
  81. }
  82. func (m *AllocationStrategy) GetConcurrency() *AllocationStrategy_AllocationStrategyConcurrency {
  83. if m != nil {
  84. return m.Concurrency
  85. }
  86. return nil
  87. }
  88. func (m *AllocationStrategy) GetRefresh() *AllocationStrategy_AllocationStrategyRefresh {
  89. if m != nil {
  90. return m.Refresh
  91. }
  92. return nil
  93. }
  94. type AllocationStrategy_AllocationStrategyConcurrency struct {
  95. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  96. }
  97. func (m *AllocationStrategy_AllocationStrategyConcurrency) Reset() {
  98. *m = AllocationStrategy_AllocationStrategyConcurrency{}
  99. }
  100. func (m *AllocationStrategy_AllocationStrategyConcurrency) String() string {
  101. return proto.CompactTextString(m)
  102. }
  103. func (*AllocationStrategy_AllocationStrategyConcurrency) ProtoMessage() {}
  104. func (*AllocationStrategy_AllocationStrategyConcurrency) Descriptor() ([]byte, []int) {
  105. return fileDescriptor0, []int{1, 0}
  106. }
  107. func (m *AllocationStrategy_AllocationStrategyConcurrency) GetValue() uint32 {
  108. if m != nil {
  109. return m.Value
  110. }
  111. return 0
  112. }
  113. type AllocationStrategy_AllocationStrategyRefresh struct {
  114. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  115. }
  116. func (m *AllocationStrategy_AllocationStrategyRefresh) Reset() {
  117. *m = AllocationStrategy_AllocationStrategyRefresh{}
  118. }
  119. func (m *AllocationStrategy_AllocationStrategyRefresh) String() string {
  120. return proto.CompactTextString(m)
  121. }
  122. func (*AllocationStrategy_AllocationStrategyRefresh) ProtoMessage() {}
  123. func (*AllocationStrategy_AllocationStrategyRefresh) Descriptor() ([]byte, []int) {
  124. return fileDescriptor0, []int{1, 1}
  125. }
  126. func (m *AllocationStrategy_AllocationStrategyRefresh) GetValue() uint32 {
  127. if m != nil {
  128. return m.Value
  129. }
  130. return 0
  131. }
  132. type ReceiverConfig struct {
  133. PortRange *v2ray_core_common_net1.PortRange `protobuf:"bytes,1,opt,name=port_range,json=portRange" json:"port_range,omitempty"`
  134. Listen *v2ray_core_common_net.IPOrDomain `protobuf:"bytes,2,opt,name=listen" json:"listen,omitempty"`
  135. AllocationStrategy *AllocationStrategy `protobuf:"bytes,3,opt,name=allocation_strategy,json=allocationStrategy" json:"allocation_strategy,omitempty"`
  136. StreamSettings *v2ray_core_transport_internet.StreamConfig `protobuf:"bytes,4,opt,name=stream_settings,json=streamSettings" json:"stream_settings,omitempty"`
  137. ReceiveOriginalDestination bool `protobuf:"varint,5,opt,name=receive_original_destination,json=receiveOriginalDestination" json:"receive_original_destination,omitempty"`
  138. DomainOverride []KnownProtocols `protobuf:"varint,7,rep,packed,name=domain_override,json=domainOverride,enum=v2ray.core.app.proxyman.KnownProtocols" json:"domain_override,omitempty"`
  139. }
  140. func (m *ReceiverConfig) Reset() { *m = ReceiverConfig{} }
  141. func (m *ReceiverConfig) String() string { return proto.CompactTextString(m) }
  142. func (*ReceiverConfig) ProtoMessage() {}
  143. func (*ReceiverConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  144. func (m *ReceiverConfig) GetPortRange() *v2ray_core_common_net1.PortRange {
  145. if m != nil {
  146. return m.PortRange
  147. }
  148. return nil
  149. }
  150. func (m *ReceiverConfig) GetListen() *v2ray_core_common_net.IPOrDomain {
  151. if m != nil {
  152. return m.Listen
  153. }
  154. return nil
  155. }
  156. func (m *ReceiverConfig) GetAllocationStrategy() *AllocationStrategy {
  157. if m != nil {
  158. return m.AllocationStrategy
  159. }
  160. return nil
  161. }
  162. func (m *ReceiverConfig) GetStreamSettings() *v2ray_core_transport_internet.StreamConfig {
  163. if m != nil {
  164. return m.StreamSettings
  165. }
  166. return nil
  167. }
  168. func (m *ReceiverConfig) GetReceiveOriginalDestination() bool {
  169. if m != nil {
  170. return m.ReceiveOriginalDestination
  171. }
  172. return false
  173. }
  174. func (m *ReceiverConfig) GetDomainOverride() []KnownProtocols {
  175. if m != nil {
  176. return m.DomainOverride
  177. }
  178. return nil
  179. }
  180. type OutboundConfig struct {
  181. }
  182. func (m *OutboundConfig) Reset() { *m = OutboundConfig{} }
  183. func (m *OutboundConfig) String() string { return proto.CompactTextString(m) }
  184. func (*OutboundConfig) ProtoMessage() {}
  185. func (*OutboundConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  186. type SenderConfig struct {
  187. // Send traffic through the given IP. Only IP is allowed.
  188. Via *v2ray_core_common_net.IPOrDomain `protobuf:"bytes,1,opt,name=via" json:"via,omitempty"`
  189. StreamSettings *v2ray_core_transport_internet.StreamConfig `protobuf:"bytes,2,opt,name=stream_settings,json=streamSettings" json:"stream_settings,omitempty"`
  190. ProxySettings *v2ray_core_transport_internet.ProxyConfig `protobuf:"bytes,3,opt,name=proxy_settings,json=proxySettings" json:"proxy_settings,omitempty"`
  191. MultiplexSettings *MultiplexingConfig `protobuf:"bytes,4,opt,name=multiplex_settings,json=multiplexSettings" json:"multiplex_settings,omitempty"`
  192. }
  193. func (m *SenderConfig) Reset() { *m = SenderConfig{} }
  194. func (m *SenderConfig) String() string { return proto.CompactTextString(m) }
  195. func (*SenderConfig) ProtoMessage() {}
  196. func (*SenderConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  197. func (m *SenderConfig) GetVia() *v2ray_core_common_net.IPOrDomain {
  198. if m != nil {
  199. return m.Via
  200. }
  201. return nil
  202. }
  203. func (m *SenderConfig) GetStreamSettings() *v2ray_core_transport_internet.StreamConfig {
  204. if m != nil {
  205. return m.StreamSettings
  206. }
  207. return nil
  208. }
  209. func (m *SenderConfig) GetProxySettings() *v2ray_core_transport_internet.ProxyConfig {
  210. if m != nil {
  211. return m.ProxySettings
  212. }
  213. return nil
  214. }
  215. func (m *SenderConfig) GetMultiplexSettings() *MultiplexingConfig {
  216. if m != nil {
  217. return m.MultiplexSettings
  218. }
  219. return nil
  220. }
  221. type MultiplexingConfig struct {
  222. // Whether or not Mux is enabled.
  223. Enabled bool `protobuf:"varint,1,opt,name=enabled" json:"enabled,omitempty"`
  224. // Max number of concurrent connections that one Mux connection can handle.
  225. Concurrency uint32 `protobuf:"varint,2,opt,name=concurrency" json:"concurrency,omitempty"`
  226. }
  227. func (m *MultiplexingConfig) Reset() { *m = MultiplexingConfig{} }
  228. func (m *MultiplexingConfig) String() string { return proto.CompactTextString(m) }
  229. func (*MultiplexingConfig) ProtoMessage() {}
  230. func (*MultiplexingConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  231. func (m *MultiplexingConfig) GetEnabled() bool {
  232. if m != nil {
  233. return m.Enabled
  234. }
  235. return false
  236. }
  237. func (m *MultiplexingConfig) GetConcurrency() uint32 {
  238. if m != nil {
  239. return m.Concurrency
  240. }
  241. return 0
  242. }
  243. func init() {
  244. proto.RegisterType((*InboundConfig)(nil), "v2ray.core.app.proxyman.InboundConfig")
  245. proto.RegisterType((*AllocationStrategy)(nil), "v2ray.core.app.proxyman.AllocationStrategy")
  246. proto.RegisterType((*AllocationStrategy_AllocationStrategyConcurrency)(nil), "v2ray.core.app.proxyman.AllocationStrategy.AllocationStrategyConcurrency")
  247. proto.RegisterType((*AllocationStrategy_AllocationStrategyRefresh)(nil), "v2ray.core.app.proxyman.AllocationStrategy.AllocationStrategyRefresh")
  248. proto.RegisterType((*ReceiverConfig)(nil), "v2ray.core.app.proxyman.ReceiverConfig")
  249. proto.RegisterType((*OutboundConfig)(nil), "v2ray.core.app.proxyman.OutboundConfig")
  250. proto.RegisterType((*SenderConfig)(nil), "v2ray.core.app.proxyman.SenderConfig")
  251. proto.RegisterType((*MultiplexingConfig)(nil), "v2ray.core.app.proxyman.MultiplexingConfig")
  252. proto.RegisterEnum("v2ray.core.app.proxyman.KnownProtocols", KnownProtocols_name, KnownProtocols_value)
  253. proto.RegisterEnum("v2ray.core.app.proxyman.AllocationStrategy_Type", AllocationStrategy_Type_name, AllocationStrategy_Type_value)
  254. }
  255. func init() { proto.RegisterFile("v2ray.com/core/app/proxyman/config.proto", fileDescriptor0) }
  256. var fileDescriptor0 = []byte{
  257. // 691 bytes of a gzipped FileDescriptorProto
  258. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0x5d, 0x6f, 0xd3, 0x3a,
  259. 0x1c, 0xc6, 0x97, 0xb6, 0x6b, 0x7b, 0xfe, 0x5b, 0xb3, 0x1c, 0x9f, 0x23, 0x2d, 0xa7, 0x07, 0xa4,
  260. 0x52, 0x90, 0x56, 0x0d, 0x94, 0x40, 0x27, 0x2e, 0xb8, 0x82, 0xd1, 0x4d, 0x62, 0xbc, 0xa8, 0xc1,
  261. 0xad, 0xb8, 0x98, 0x90, 0x22, 0x2f, 0xf1, 0x8a, 0x45, 0x62, 0x47, 0x8e, 0xdb, 0x2d, 0x5f, 0x89,
  262. 0x4f, 0xc1, 0x25, 0x9f, 0x81, 0x4f, 0x83, 0xf2, 0xd6, 0x75, 0xeb, 0x3a, 0x98, 0x76, 0xe7, 0xa6,
  263. 0xcf, 0xf3, 0xb3, 0xfd, 0x3c, 0xb6, 0xa1, 0x37, 0xeb, 0x4b, 0x92, 0x58, 0x9e, 0x08, 0x6d, 0x4f,
  264. 0x48, 0x6a, 0x93, 0x28, 0xb2, 0x23, 0x29, 0xce, 0x93, 0x90, 0x70, 0xdb, 0x13, 0xfc, 0x94, 0x4d,
  265. 0xac, 0x48, 0x0a, 0x25, 0xd0, 0x76, 0xa9, 0x94, 0xd4, 0x22, 0x51, 0x64, 0x95, 0xaa, 0xf6, 0xce,
  266. 0x15, 0x84, 0x27, 0xc2, 0x50, 0x70, 0x9b, 0x53, 0x65, 0x13, 0xdf, 0x97, 0x34, 0x8e, 0x73, 0x42,
  267. 0xfb, 0xd1, 0x6a, 0x61, 0x24, 0xa4, 0x2a, 0x54, 0xd6, 0x15, 0x95, 0x92, 0x84, 0xc7, 0xe9, 0xff,
  268. 0x36, 0xe3, 0x8a, 0xca, 0x54, 0xbd, 0xb8, 0xae, 0xee, 0x16, 0xb4, 0x8e, 0xf8, 0x89, 0x98, 0x72,
  269. 0x7f, 0x90, 0x7d, 0xee, 0x7e, 0xaf, 0x02, 0xda, 0x0f, 0x02, 0xe1, 0x11, 0xc5, 0x04, 0x1f, 0x29,
  270. 0x49, 0x14, 0x9d, 0x24, 0xe8, 0x00, 0x6a, 0x2a, 0x89, 0xa8, 0xa9, 0x75, 0xb4, 0x9e, 0xde, 0x7f,
  271. 0x6a, 0xad, 0xd8, 0x8e, 0xb5, 0x6c, 0xb5, 0xc6, 0x49, 0x44, 0x71, 0xe6, 0x46, 0x5f, 0x61, 0xc3,
  272. 0x13, 0xdc, 0x9b, 0x4a, 0x49, 0xb9, 0x97, 0x98, 0x95, 0x8e, 0xd6, 0xdb, 0xe8, 0x1f, 0xdd, 0x06,
  273. 0xb6, 0xfc, 0x69, 0x70, 0x01, 0xc4, 0x8b, 0x74, 0xe4, 0x42, 0x43, 0xd2, 0x53, 0x49, 0xe3, 0x2f,
  274. 0x66, 0x35, 0x9b, 0xe8, 0xf0, 0x6e, 0x13, 0xe1, 0x1c, 0x86, 0x4b, 0x6a, 0xfb, 0x39, 0xdc, 0xbf,
  275. 0x71, 0x39, 0xe8, 0x5f, 0x58, 0x9f, 0x91, 0x60, 0x9a, 0xa7, 0xd6, 0xc2, 0xf9, 0x8f, 0xf6, 0x33,
  276. 0xf8, 0x6f, 0x25, 0xfc, 0x7a, 0x4b, 0xf7, 0x09, 0xd4, 0xd2, 0x14, 0x11, 0x40, 0x7d, 0x3f, 0x38,
  277. 0x23, 0x49, 0x6c, 0xac, 0xa5, 0x63, 0x4c, 0xb8, 0x2f, 0x42, 0x43, 0x43, 0x9b, 0xd0, 0x3c, 0x3c,
  278. 0x4f, 0xeb, 0x25, 0x81, 0x51, 0xe9, 0xfe, 0xac, 0x82, 0x8e, 0xa9, 0x47, 0xd9, 0x8c, 0xca, 0xbc,
  279. 0x55, 0xf4, 0x12, 0x20, 0x3d, 0x04, 0xae, 0x24, 0x7c, 0x92, 0xb3, 0x37, 0xfa, 0x9d, 0xc5, 0x38,
  280. 0xf2, 0xd3, 0x64, 0x71, 0xaa, 0x2c, 0x47, 0x48, 0x85, 0x53, 0x1d, 0xfe, 0x2b, 0x2a, 0x87, 0xe8,
  281. 0x05, 0xd4, 0x03, 0x16, 0x2b, 0xca, 0x8b, 0xd2, 0x1e, 0xac, 0x30, 0x1f, 0x39, 0x43, 0x79, 0x20,
  282. 0x42, 0xc2, 0x38, 0x2e, 0x0c, 0xe8, 0x33, 0xfc, 0x43, 0xe6, 0xfb, 0x75, 0xe3, 0x62, 0xc3, 0x45,
  283. 0x27, 0x8f, 0x6f, 0xd1, 0x09, 0x46, 0x64, 0xf9, 0x60, 0x8e, 0x61, 0x2b, 0x56, 0x92, 0x92, 0xd0,
  284. 0x8d, 0xa9, 0x52, 0x8c, 0x4f, 0x62, 0xb3, 0xb6, 0x4c, 0x9e, 0x5f, 0x03, 0xab, 0xbc, 0x06, 0xd6,
  285. 0x28, 0x73, 0xe5, 0xf9, 0x60, 0x3d, 0x67, 0x8c, 0x0a, 0x04, 0x7a, 0x05, 0xf7, 0x64, 0x9e, 0xa0,
  286. 0x2b, 0x24, 0x9b, 0x30, 0x4e, 0x02, 0xd7, 0xa7, 0xb1, 0x62, 0x3c, 0x9b, 0xdd, 0x5c, 0xef, 0x68,
  287. 0xbd, 0x26, 0x6e, 0x17, 0x9a, 0x61, 0x21, 0x39, 0xb8, 0x50, 0x20, 0x07, 0xb6, 0xfc, 0x2c, 0x07,
  288. 0x57, 0xcc, 0xa8, 0x94, 0xcc, 0xa7, 0x66, 0xa3, 0x53, 0xed, 0xe9, 0xfd, 0x9d, 0x95, 0x3b, 0x7e,
  289. 0xc7, 0xc5, 0x19, 0x77, 0xd2, 0x6b, 0xe9, 0x89, 0x20, 0xc6, 0x7a, 0xee, 0x1f, 0x16, 0xf6, 0xb7,
  290. 0xb5, 0x66, 0xdd, 0x68, 0x74, 0x0d, 0xd0, 0x87, 0x53, 0xb5, 0x78, 0x63, 0x7f, 0x54, 0x60, 0x73,
  291. 0x44, 0xb9, 0x3f, 0x2f, 0x7b, 0x0f, 0xaa, 0x33, 0x46, 0x8a, 0x96, 0xff, 0xa0, 0xa8, 0x54, 0x7d,
  292. 0x5d, 0x8e, 0x95, 0xbb, 0xe7, 0xf8, 0x11, 0xf4, 0x6c, 0x7b, 0x17, 0xd0, 0xbc, 0xf6, 0xdd, 0xdf,
  293. 0x40, 0x9d, 0xd4, 0x54, 0x30, 0x5b, 0x19, 0x61, 0x8e, 0x3c, 0x06, 0x14, 0x4e, 0x03, 0xc5, 0xa2,
  294. 0x80, 0x9e, 0xdf, 0xd8, 0xf9, 0xa5, 0x6c, 0x3f, 0x94, 0x16, 0xc6, 0x27, 0x05, 0xf7, 0xef, 0x39,
  295. 0xa6, 0x64, 0x77, 0x1d, 0x40, 0xcb, 0x42, 0x64, 0x42, 0x83, 0x72, 0x72, 0x12, 0x50, 0x3f, 0xcb,
  296. 0xb4, 0x89, 0xcb, 0x9f, 0xa8, 0xb3, 0xfc, 0x9e, 0xb5, 0x2e, 0x3d, 0x42, 0xbb, 0x0f, 0x41, 0xbf,
  297. 0x5c, 0x2b, 0x6a, 0x42, 0xed, 0xcd, 0x78, 0xec, 0x18, 0x6b, 0xa8, 0x01, 0xd5, 0xf1, 0xfb, 0x91,
  298. 0xa1, 0xbd, 0x1e, 0xc0, 0xff, 0x9e, 0x08, 0x57, 0xad, 0xdd, 0xd1, 0x8e, 0x9b, 0xe5, 0xf8, 0x5b,
  299. 0x65, 0xfb, 0x53, 0x1f, 0x93, 0xc4, 0x1a, 0xa4, 0xaa, 0xfd, 0x28, 0xca, 0x93, 0x0a, 0x09, 0x3f,
  300. 0xa9, 0x67, 0x0f, 0xfa, 0xde, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x77, 0x7f, 0xdc, 0x8e, 0x94,
  301. 0x06, 0x00, 0x00,
  302. }