config.pb.go 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. package core
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. import v2ray_core_app_proxyman "v2ray.com/core/app/proxyman"
  6. import v2ray_core_common_serial "v2ray.com/core/common/serial"
  7. import v2ray_core_transport "v2ray.com/core/transport"
  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. // Configuration serialization format.
  18. type ConfigFormat int32
  19. const (
  20. ConfigFormat_Protobuf ConfigFormat = 0
  21. ConfigFormat_JSON ConfigFormat = 1
  22. )
  23. var ConfigFormat_name = map[int32]string{
  24. 0: "Protobuf",
  25. 1: "JSON",
  26. }
  27. var ConfigFormat_value = map[string]int32{
  28. "Protobuf": 0,
  29. "JSON": 1,
  30. }
  31. func (x ConfigFormat) String() string {
  32. return proto.EnumName(ConfigFormat_name, int32(x))
  33. }
  34. func (ConfigFormat) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  35. // Master config of V2Ray. V2Ray Core takes this config as input and functions accordingly.
  36. type Config struct {
  37. // Inbound handler configurations. Must have at least one item.
  38. Inbound []*v2ray_core_app_proxyman.InboundHandlerConfig `protobuf:"bytes,1,rep,name=inbound" json:"inbound,omitempty"`
  39. // Outbound handler configurations. Must have at least one item. The first item is used as default for routing.
  40. Outbound []*v2ray_core_app_proxyman.OutboundHandlerConfig `protobuf:"bytes,2,rep,name=outbound" json:"outbound,omitempty"`
  41. // App configuration. Must be one in the app directory.
  42. App []*v2ray_core_common_serial.TypedMessage `protobuf:"bytes,4,rep,name=app" json:"app,omitempty"`
  43. // Transport settings.
  44. Transport *v2ray_core_transport.Config `protobuf:"bytes,5,opt,name=transport" json:"transport,omitempty"`
  45. }
  46. func (m *Config) Reset() { *m = Config{} }
  47. func (m *Config) String() string { return proto.CompactTextString(m) }
  48. func (*Config) ProtoMessage() {}
  49. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  50. func (m *Config) GetInbound() []*v2ray_core_app_proxyman.InboundHandlerConfig {
  51. if m != nil {
  52. return m.Inbound
  53. }
  54. return nil
  55. }
  56. func (m *Config) GetOutbound() []*v2ray_core_app_proxyman.OutboundHandlerConfig {
  57. if m != nil {
  58. return m.Outbound
  59. }
  60. return nil
  61. }
  62. func (m *Config) GetApp() []*v2ray_core_common_serial.TypedMessage {
  63. if m != nil {
  64. return m.App
  65. }
  66. return nil
  67. }
  68. func (m *Config) GetTransport() *v2ray_core_transport.Config {
  69. if m != nil {
  70. return m.Transport
  71. }
  72. return nil
  73. }
  74. func init() {
  75. proto.RegisterType((*Config)(nil), "v2ray.core.Config")
  76. proto.RegisterEnum("v2ray.core.ConfigFormat", ConfigFormat_name, ConfigFormat_value)
  77. }
  78. func init() { proto.RegisterFile("v2ray.com/core/config.proto", fileDescriptor0) }
  79. var fileDescriptor0 = []byte{
  80. // 319 bytes of a gzipped FileDescriptorProto
  81. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x5f, 0x4b, 0xf3, 0x30,
  82. 0x14, 0xc6, 0xdf, 0x6e, 0x7d, 0x67, 0x3d, 0x1b, 0x32, 0x72, 0x35, 0xa6, 0x17, 0x43, 0xd8, 0x18,
  83. 0x82, 0xa9, 0xd4, 0x1b, 0xf1, 0xd2, 0x81, 0x7f, 0x06, 0xba, 0x31, 0xc5, 0x0b, 0x6f, 0x24, 0xeb,
  84. 0xb2, 0x31, 0x58, 0x72, 0x42, 0x9a, 0x89, 0xfd, 0x28, 0x7e, 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