config.pb.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. // Code generated by protoc-gen-go.
  2. // source: v2ray.com/core/config.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package core is a generated protocol buffer package.
  6. It is generated from these files:
  7. v2ray.com/core/config.proto
  8. It has these top-level messages:
  9. AllocationStrategyConcurrency
  10. AllocationStrategyRefresh
  11. AllocationStrategy
  12. InboundConnectionConfig
  13. OutboundConnectionConfig
  14. Config
  15. */
  16. package core
  17. import proto "github.com/golang/protobuf/proto"
  18. import fmt "fmt"
  19. import math "math"
  20. import v2ray_core_app_router "v2ray.com/core/app/router"
  21. import v2ray_core_app_dns "v2ray.com/core/app/dns"
  22. import v2ray_core_common_net "v2ray.com/core/common/net"
  23. import v2ray_core_common_net2 "v2ray.com/core/common/net"
  24. import v2ray_core_common_log "v2ray.com/core/common/log"
  25. import v2ray_core_transport_internet "v2ray.com/core/transport/internet"
  26. import v2ray_core_transport "v2ray.com/core/transport"
  27. import google_protobuf "github.com/golang/protobuf/ptypes/any"
  28. // Reference imports to suppress errors if they are not otherwise used.
  29. var _ = proto.Marshal
  30. var _ = fmt.Errorf
  31. var _ = math.Inf
  32. // This is a compile-time assertion to ensure that this generated file
  33. // is compatible with the proto package it is being compiled against.
  34. // A compilation error at this line likely means your copy of the
  35. // proto package needs to be updated.
  36. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  37. type AllocationStrategy_Type int32
  38. const (
  39. // Always allocate all connection handlers.
  40. AllocationStrategy_Always AllocationStrategy_Type = 0
  41. // Randomly allocate specific range of handlers.
  42. AllocationStrategy_Random AllocationStrategy_Type = 1
  43. // External. Not supported yet.
  44. AllocationStrategy_External AllocationStrategy_Type = 2
  45. )
  46. var AllocationStrategy_Type_name = map[int32]string{
  47. 0: "Always",
  48. 1: "Random",
  49. 2: "External",
  50. }
  51. var AllocationStrategy_Type_value = map[string]int32{
  52. "Always": 0,
  53. "Random": 1,
  54. "External": 2,
  55. }
  56. func (x AllocationStrategy_Type) String() string {
  57. return proto.EnumName(AllocationStrategy_Type_name, int32(x))
  58. }
  59. func (AllocationStrategy_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
  60. type AllocationStrategyConcurrency struct {
  61. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  62. }
  63. func (m *AllocationStrategyConcurrency) Reset() { *m = AllocationStrategyConcurrency{} }
  64. func (m *AllocationStrategyConcurrency) String() string { return proto.CompactTextString(m) }
  65. func (*AllocationStrategyConcurrency) ProtoMessage() {}
  66. func (*AllocationStrategyConcurrency) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  67. type AllocationStrategyRefresh struct {
  68. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  69. }
  70. func (m *AllocationStrategyRefresh) Reset() { *m = AllocationStrategyRefresh{} }
  71. func (m *AllocationStrategyRefresh) String() string { return proto.CompactTextString(m) }
  72. func (*AllocationStrategyRefresh) ProtoMessage() {}
  73. func (*AllocationStrategyRefresh) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  74. type AllocationStrategy struct {
  75. Type AllocationStrategy_Type `protobuf:"varint,1,opt,name=type,enum=v2ray.core.AllocationStrategy_Type" json:"type,omitempty"`
  76. // Number of handlers (ports) running in parallel.
  77. Concurrency *AllocationStrategyConcurrency `protobuf:"bytes,2,opt,name=concurrency" json:"concurrency,omitempty"`
  78. // Number of minutes before a handler is regenerated.
  79. Refresh *AllocationStrategyRefresh `protobuf:"bytes,3,opt,name=refresh" json:"refresh,omitempty"`
  80. }
  81. func (m *AllocationStrategy) Reset() { *m = AllocationStrategy{} }
  82. func (m *AllocationStrategy) String() string { return proto.CompactTextString(m) }
  83. func (*AllocationStrategy) ProtoMessage() {}
  84. func (*AllocationStrategy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  85. func (m *AllocationStrategy) GetConcurrency() *AllocationStrategyConcurrency {
  86. if m != nil {
  87. return m.Concurrency
  88. }
  89. return nil
  90. }
  91. func (m *AllocationStrategy) GetRefresh() *AllocationStrategyRefresh {
  92. if m != nil {
  93. return m.Refresh
  94. }
  95. return nil
  96. }
  97. // Config for an inbound connection handler.
  98. type InboundConnectionConfig struct {
  99. Protocol string `protobuf:"bytes,1,opt,name=protocol" json:"protocol,omitempty"`
  100. PortRange *v2ray_core_common_net.PortRange `protobuf:"bytes,2,opt,name=port_range,json=portRange" json:"port_range,omitempty"`
  101. ListenOn *v2ray_core_common_net2.IPOrDomain `protobuf:"bytes,3,opt,name=listen_on,json=listenOn" json:"listen_on,omitempty"`
  102. Tag string `protobuf:"bytes,4,opt,name=tag" json:"tag,omitempty"`
  103. AllocationStrategy *AllocationStrategy `protobuf:"bytes,5,opt,name=allocation_strategy,json=allocationStrategy" json:"allocation_strategy,omitempty"`
  104. StreamSettings *v2ray_core_transport_internet.StreamConfig `protobuf:"bytes,6,opt,name=stream_settings,json=streamSettings" json:"stream_settings,omitempty"`
  105. Settings *google_protobuf.Any `protobuf:"bytes,7,opt,name=settings" json:"settings,omitempty"`
  106. AllowPassiveConnection bool `protobuf:"varint,8,opt,name=allow_passive_connection,json=allowPassiveConnection" json:"allow_passive_connection,omitempty"`
  107. }
  108. func (m *InboundConnectionConfig) Reset() { *m = InboundConnectionConfig{} }
  109. func (m *InboundConnectionConfig) String() string { return proto.CompactTextString(m) }
  110. func (*InboundConnectionConfig) ProtoMessage() {}
  111. func (*InboundConnectionConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  112. func (m *InboundConnectionConfig) GetPortRange() *v2ray_core_common_net.PortRange {
  113. if m != nil {
  114. return m.PortRange
  115. }
  116. return nil
  117. }
  118. func (m *InboundConnectionConfig) GetListenOn() *v2ray_core_common_net2.IPOrDomain {
  119. if m != nil {
  120. return m.ListenOn
  121. }
  122. return nil
  123. }
  124. func (m *InboundConnectionConfig) GetAllocationStrategy() *AllocationStrategy {
  125. if m != nil {
  126. return m.AllocationStrategy
  127. }
  128. return nil
  129. }
  130. func (m *InboundConnectionConfig) GetStreamSettings() *v2ray_core_transport_internet.StreamConfig {
  131. if m != nil {
  132. return m.StreamSettings
  133. }
  134. return nil
  135. }
  136. func (m *InboundConnectionConfig) GetSettings() *google_protobuf.Any {
  137. if m != nil {
  138. return m.Settings
  139. }
  140. return nil
  141. }
  142. type OutboundConnectionConfig struct {
  143. Protocol string `protobuf:"bytes,1,opt,name=protocol" json:"protocol,omitempty"`
  144. SendThrough *v2ray_core_common_net2.IPOrDomain `protobuf:"bytes,2,opt,name=send_through,json=sendThrough" json:"send_through,omitempty"`
  145. StreamSettings *v2ray_core_transport_internet.StreamConfig `protobuf:"bytes,3,opt,name=stream_settings,json=streamSettings" json:"stream_settings,omitempty"`
  146. Tag string `protobuf:"bytes,4,opt,name=tag" json:"tag,omitempty"`
  147. Settings *google_protobuf.Any `protobuf:"bytes,5,opt,name=settings" json:"settings,omitempty"`
  148. }
  149. func (m *OutboundConnectionConfig) Reset() { *m = OutboundConnectionConfig{} }
  150. func (m *OutboundConnectionConfig) String() string { return proto.CompactTextString(m) }
  151. func (*OutboundConnectionConfig) ProtoMessage() {}
  152. func (*OutboundConnectionConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  153. func (m *OutboundConnectionConfig) GetSendThrough() *v2ray_core_common_net2.IPOrDomain {
  154. if m != nil {
  155. return m.SendThrough
  156. }
  157. return nil
  158. }
  159. func (m *OutboundConnectionConfig) GetStreamSettings() *v2ray_core_transport_internet.StreamConfig {
  160. if m != nil {
  161. return m.StreamSettings
  162. }
  163. return nil
  164. }
  165. func (m *OutboundConnectionConfig) GetSettings() *google_protobuf.Any {
  166. if m != nil {
  167. return m.Settings
  168. }
  169. return nil
  170. }
  171. type Config struct {
  172. Inbound []*InboundConnectionConfig `protobuf:"bytes,1,rep,name=inbound" json:"inbound,omitempty"`
  173. Outbound []*OutboundConnectionConfig `protobuf:"bytes,2,rep,name=outbound" json:"outbound,omitempty"`
  174. Log *v2ray_core_common_log.Config `protobuf:"bytes,3,opt,name=log" json:"log,omitempty"`
  175. Router *v2ray_core_app_router.Config `protobuf:"bytes,4,opt,name=router" json:"router,omitempty"`
  176. Dns *v2ray_core_app_dns.Config `protobuf:"bytes,5,opt,name=dns" json:"dns,omitempty"`
  177. Transport *v2ray_core_transport.Config `protobuf:"bytes,6,opt,name=transport" json:"transport,omitempty"`
  178. }
  179. func (m *Config) Reset() { *m = Config{} }
  180. func (m *Config) String() string { return proto.CompactTextString(m) }
  181. func (*Config) ProtoMessage() {}
  182. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  183. func (m *Config) GetInbound() []*InboundConnectionConfig {
  184. if m != nil {
  185. return m.Inbound
  186. }
  187. return nil
  188. }
  189. func (m *Config) GetOutbound() []*OutboundConnectionConfig {
  190. if m != nil {
  191. return m.Outbound
  192. }
  193. return nil
  194. }
  195. func (m *Config) GetLog() *v2ray_core_common_log.Config {
  196. if m != nil {
  197. return m.Log
  198. }
  199. return nil
  200. }
  201. func (m *Config) GetRouter() *v2ray_core_app_router.Config {
  202. if m != nil {
  203. return m.Router
  204. }
  205. return nil
  206. }
  207. func (m *Config) GetDns() *v2ray_core_app_dns.Config {
  208. if m != nil {
  209. return m.Dns
  210. }
  211. return nil
  212. }
  213. func (m *Config) GetTransport() *v2ray_core_transport.Config {
  214. if m != nil {
  215. return m.Transport
  216. }
  217. return nil
  218. }
  219. func init() {
  220. proto.RegisterType((*AllocationStrategyConcurrency)(nil), "v2ray.core.AllocationStrategyConcurrency")
  221. proto.RegisterType((*AllocationStrategyRefresh)(nil), "v2ray.core.AllocationStrategyRefresh")
  222. proto.RegisterType((*AllocationStrategy)(nil), "v2ray.core.AllocationStrategy")
  223. proto.RegisterType((*InboundConnectionConfig)(nil), "v2ray.core.InboundConnectionConfig")
  224. proto.RegisterType((*OutboundConnectionConfig)(nil), "v2ray.core.OutboundConnectionConfig")
  225. proto.RegisterType((*Config)(nil), "v2ray.core.Config")
  226. proto.RegisterEnum("v2ray.core.AllocationStrategy_Type", AllocationStrategy_Type_name, AllocationStrategy_Type_value)
  227. }
  228. func init() { proto.RegisterFile("v2ray.com/core/config.proto", fileDescriptor0) }
  229. var fileDescriptor0 = []byte{
  230. // 723 bytes of a gzipped FileDescriptorProto
  231. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x95, 0xdb, 0x6e, 0xd3, 0x30,
  232. 0x18, 0xc7, 0xe9, 0x61, 0x5d, 0xfb, 0x75, 0x8c, 0xca, 0x4c, 0x90, 0x15, 0x86, 0x4a, 0x77, 0xa0,
  233. 0x88, 0x29, 0x81, 0xa1, 0x09, 0x84, 0x04, 0x63, 0x07, 0x2e, 0x26, 0x2e, 0x5a, 0x65, 0xbb, 0xe2,
  234. 0xa6, 0xf2, 0x12, 0x2f, 0x8b, 0x94, 0xda, 0x91, 0xed, 0x6e, 0xe4, 0x11, 0x78, 0x01, 0x5e, 0x6e,
  235. 0x2f, 0x83, 0x62, 0x3b, 0xe9, 0x79, 0x0c, 0x71, 0x17, 0xd7, 0xff, 0xdf, 0xe7, 0xcf, 0xff, 0xbf,
  236. 0x3f, 0x15, 0x9e, 0x5d, 0xef, 0x71, 0x9c, 0xd8, 0x1e, 0x1b, 0x38, 0x1e, 0xe3, 0xc4, 0xf1, 0x18,
  237. 0xbd, 0x0c, 0x03, 0x3b, 0xe6, 0x4c, 0x32, 0x04, 0xd9, 0x26, 0x27, 0xcd, 0x9d, 0x29, 0x21, 0x8e,
  238. 0x63, 0x87, 0xb3, 0xa1, 0x24, 0x7c, 0x82, 0x69, 0x6e, 0xce, 0xd1, 0xf9, 0x54, 0x4c, 0x8a, 0xb6,
  239. 0x66, 0x4e, 0x1d, 0x0c, 0x18, 0x75, 0x28, 0x91, 0x4e, 0xcc, 0xb8, 0x34, 0xaa, 0x57, 0x8b, 0x55,
  240. 0xd8, 0xf7, 0x39, 0x11, 0xc2, 0x08, 0x77, 0xe6, 0x0b, 0x23, 0x16, 0x4c, 0x1e, 0x6b, 0x4f, 0xe9,
  241. 0x24, 0xc7, 0x54, 0xa4, 0x07, 0x3a, 0x21, 0x95, 0x84, 0xa7, 0x85, 0x27, 0xf4, 0xdb, 0x0b, 0xf5,
  242. 0x13, 0xb2, 0xf5, 0x80, 0xb1, 0x20, 0x22, 0x8e, 0x5a, 0x5d, 0x0c, 0x2f, 0x1d, 0x4c, 0x13, 0xbd,
  243. 0xd5, 0xde, 0x87, 0x8d, 0xc3, 0x28, 0x62, 0x1e, 0x96, 0x21, 0xa3, 0x67, 0x92, 0x63, 0x49, 0x82,
  244. 0xe4, 0x98, 0x51, 0x6f, 0xc8, 0x39, 0xa1, 0x5e, 0x82, 0xd6, 0x60, 0xe9, 0x1a, 0x47, 0x43, 0x62,
  245. 0x15, 0x5a, 0x85, 0xce, 0x43, 0x57, 0x2f, 0xda, 0xef, 0x60, 0x7d, 0x16, 0x73, 0xc9, 0x25, 0x27,
  246. 0xe2, 0x6a, 0x01, 0xf2, 0xab, 0x08, 0x68, 0x96, 0x41, 0x1f, 0xa0, 0x2c, 0x93, 0x58, 0x6b, 0x57,
  247. 0xf7, 0x36, 0xed, 0x51, 0xa2, 0xf6, 0xac, 0xda, 0x3e, 0x4f, 0x62, 0xe2, 0x2a, 0x00, 0x7d, 0x87,
  248. 0xba, 0x37, 0xea, 0xd3, 0x2a, 0xb6, 0x0a, 0x9d, 0xfa, 0xde, 0xeb, 0xbb, 0xf9, 0xb1, 0x8b, 0xb9,
  249. 0xe3, 0x34, 0x3a, 0x80, 0x65, 0xae, 0xbb, 0xb7, 0x4a, 0xaa, 0xd0, 0xf6, 0xdd, 0x85, 0xcc, 0x55,
  250. 0xdd, 0x8c, 0x6a, 0xef, 0x42, 0x39, 0xed, 0x0d, 0x01, 0x54, 0x0e, 0xa3, 0x1b, 0x9c, 0x88, 0xc6,
  251. 0x83, 0xf4, 0xdb, 0xc5, 0xd4, 0x67, 0x83, 0x46, 0x01, 0xad, 0x40, 0xf5, 0xdb, 0xcf, 0x34, 0x42,
  252. 0x1c, 0x35, 0x8a, 0xed, 0xdb, 0x12, 0x3c, 0x3d, 0xa5, 0x17, 0x6c, 0x48, 0xfd, 0x63, 0x46, 0x29,
  253. 0xf1, 0xd2, 0xda, 0xc7, 0x2a, 0x32, 0xd4, 0x84, 0xaa, 0x8a, 0xc6, 0x63, 0x91, 0x32, 0xa5, 0xe6,
  254. 0xe6, 0x6b, 0x74, 0x00, 0x90, 0xa6, 0xdb, 0xe7, 0x98, 0x06, 0xc4, 0x5c, 0xb9, 0x35, 0xde, 0xa9,
  255. 0x7e, 0x58, 0x36, 0x25, 0xd2, 0xee, 0x31, 0x2e, 0xdd, 0x54, 0xe7, 0xd6, 0xe2, 0xec, 0x13, 0x7d,
  256. 0x81, 0x5a, 0x14, 0x0a, 0x49, 0x68, 0x9f, 0x51, 0x73, 0xd3, 0x97, 0x0b, 0xf8, 0xd3, 0x5e, 0x97,
  257. 0x9f, 0xb0, 0x01, 0x0e, 0xa9, 0x5b, 0xd5, 0x4c, 0x97, 0xa2, 0x06, 0x94, 0x24, 0x0e, 0xac, 0xb2,
  258. 0xea, 0x2b, 0xfd, 0x44, 0x5d, 0x78, 0x8c, 0x73, 0x7b, 0xfa, 0xc2, 0xf8, 0x63, 0x2d, 0xa9, 0xda,
  259. 0x2f, 0xfe, 0xe2, 0x22, 0xc2, 0xb3, 0x0f, 0xe2, 0x1c, 0x1e, 0x09, 0xc9, 0x09, 0x1e, 0xf4, 0x05,
  260. 0x91, 0x32, 0xa4, 0x81, 0xb0, 0x2a, 0xaa, 0xd8, 0x9b, 0xf1, 0x62, 0xf9, 0x4b, 0xb7, 0xb3, 0xc9,
  261. 0xb0, 0xcf, 0x14, 0xa5, 0x5d, 0x74, 0x57, 0x75, 0x8d, 0x33, 0x53, 0x02, 0xbd, 0x85, 0x6a, 0x5e,
  262. 0x6e, 0x59, 0x95, 0x5b, 0xb3, 0xf5, 0x54, 0xd8, 0xd9, 0x54, 0xd8, 0x87, 0x34, 0x71, 0x73, 0x15,
  263. 0xfa, 0x08, 0x56, 0xda, 0xdd, 0x4d, 0x3f, 0xc6, 0x42, 0x84, 0xd7, 0xa4, 0xef, 0xe5, 0x49, 0x59,
  264. 0xd5, 0x56, 0xa1, 0x53, 0x75, 0x9f, 0xa8, 0xfd, 0x9e, 0xde, 0x1e, 0xe5, 0xd8, 0xfe, 0x5d, 0x04,
  265. 0xab, 0x3b, 0x94, 0xff, 0x1e, 0xef, 0x09, 0xac, 0x08, 0x42, 0xfd, 0xbe, 0xbc, 0xe2, 0x6c, 0x18,
  266. 0x5c, 0x99, 0x80, 0xef, 0x11, 0x50, 0x3d, 0xc5, 0xce, 0x35, 0x35, 0xcf, 0xc0, 0xd2, 0xff, 0x1b,
  267. 0x38, 0x9b, 0xfc, 0xb8, 0xa5, 0x4b, 0xf7, 0xb1, 0xb4, 0x7d, 0x5b, 0x84, 0x8a, 0xb1, 0xe1, 0x33,
  268. 0x2c, 0x87, 0x7a, 0x00, 0xac, 0x42, 0xab, 0xd4, 0xa9, 0x4f, 0x4e, 0xfe, 0x82, 0xd9, 0x70, 0x33,
  269. 0x06, 0x7d, 0x85, 0x2a, 0x33, 0x0e, 0x5b, 0x45, 0xc5, 0x6f, 0x8d, 0xf3, 0x8b, 0xdc, 0x77, 0x73,
  270. 0x0a, 0x39, 0x50, 0x8a, 0x58, 0x60, 0x9c, 0xd9, 0x98, 0x63, 0x71, 0xc4, 0x02, 0xdb, 0x50, 0xa9,
  271. 0x12, 0xed, 0x43, 0x45, 0xff, 0x9d, 0x28, 0x0f, 0xa6, 0x18, 0x1c, 0xc7, 0xb6, 0xde, 0xcd, 0x18,
  272. 0x23, 0x46, 0xbb, 0x50, 0xf2, 0x69, 0x66, 0x50, 0x73, 0x9a, 0xf1, 0xa9, 0xc8, 0x0f, 0xf1, 0xa9,
  273. 0x40, 0x9f, 0xa0, 0x96, 0x07, 0x63, 0x9e, 0xfd, 0xf3, 0xf9, 0xa9, 0x19, 0x6a, 0x24, 0x3f, 0xda,
  274. 0x84, 0x55, 0x8f, 0x0d, 0xc6, 0xd4, 0x47, 0x75, 0x2d, 0xea, 0xa5, 0x69, 0xfc, 0x28, 0xa7, 0x3f,
  275. 0x5d, 0x54, 0x54, 0x34, 0xef, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x05, 0x33, 0xc3, 0x7f, 0x57,
  276. 0x07, 0x00, 0x00,
  277. }