config.pb.go 14 KB

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