config.pb.go 15 KB

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