config.pb.go 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. package dokodemo
  2. import (
  3. fmt "fmt"
  4. proto "github.com/golang/protobuf/proto"
  5. math "math"
  6. net "v2ray.com/core/common/net"
  7. )
  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 Config struct {
  18. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  19. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  20. // List of networks that the Dokodemo accepts.
  21. // Deprecated. Use networks.
  22. NetworkList *net.NetworkList `protobuf:"bytes,3,opt,name=network_list,json=networkList,proto3" json:"network_list,omitempty"` // Deprecated: Do not use.
  23. // List of networks that the Dokodemo accepts.
  24. Networks []net.Network `protobuf:"varint,7,rep,packed,name=networks,proto3,enum=v2ray.core.common.net.Network" json:"networks,omitempty"`
  25. Timeout uint32 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"` // Deprecated: Do not use.
  26. FollowRedirect bool `protobuf:"varint,5,opt,name=follow_redirect,json=followRedirect,proto3" json:"follow_redirect,omitempty"`
  27. UserLevel uint32 `protobuf:"varint,6,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  28. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  29. XXX_unrecognized []byte `json:"-"`
  30. XXX_sizecache int32 `json:"-"`
  31. }
  32. func (m *Config) Reset() { *m = Config{} }
  33. func (m *Config) String() string { return proto.CompactTextString(m) }
  34. func (*Config) ProtoMessage() {}
  35. func (*Config) Descriptor() ([]byte, []int) {
  36. return fileDescriptor_de04411d7254f312, []int{0}
  37. }
  38. func (m *Config) XXX_Unmarshal(b []byte) error {
  39. return xxx_messageInfo_Config.Unmarshal(m, b)
  40. }
  41. func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  42. return xxx_messageInfo_Config.Marshal(b, m, deterministic)
  43. }
  44. func (m *Config) XXX_Merge(src proto.Message) {
  45. xxx_messageInfo_Config.Merge(m, src)
  46. }
  47. func (m *Config) XXX_Size() int {
  48. return xxx_messageInfo_Config.Size(m)
  49. }
  50. func (m *Config) XXX_DiscardUnknown() {
  51. xxx_messageInfo_Config.DiscardUnknown(m)
  52. }
  53. var xxx_messageInfo_Config proto.InternalMessageInfo
  54. func (m *Config) GetAddress() *net.IPOrDomain {
  55. if m != nil {
  56. return m.Address
  57. }
  58. return nil
  59. }
  60. func (m *Config) GetPort() uint32 {
  61. if m != nil {
  62. return m.Port
  63. }
  64. return 0
  65. }
  66. // Deprecated: Do not use.
  67. func (m *Config) GetNetworkList() *net.NetworkList {
  68. if m != nil {
  69. return m.NetworkList
  70. }
  71. return nil
  72. }
  73. func (m *Config) GetNetworks() []net.Network {
  74. if m != nil {
  75. return m.Networks
  76. }
  77. return nil
  78. }
  79. // Deprecated: Do not use.
  80. func (m *Config) GetTimeout() uint32 {
  81. if m != nil {
  82. return m.Timeout
  83. }
  84. return 0
  85. }
  86. func (m *Config) GetFollowRedirect() bool {
  87. if m != nil {
  88. return m.FollowRedirect
  89. }
  90. return false
  91. }
  92. func (m *Config) GetUserLevel() uint32 {
  93. if m != nil {
  94. return m.UserLevel
  95. }
  96. return 0
  97. }
  98. func init() {
  99. proto.RegisterType((*Config)(nil), "v2ray.core.proxy.dokodemo.Config")
  100. }
  101. func init() {
  102. proto.RegisterFile("v2ray.com/core/proxy/dokodemo/config.proto", fileDescriptor_de04411d7254f312)
  103. }
  104. var fileDescriptor_de04411d7254f312 = []byte{
  105. // 331 bytes of a gzipped FileDescriptorProto
  106. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x41, 0x4f, 0xea, 0x40,
  107. 0x10, 0xc7, 0xd3, 0xc2, 0x03, 0xde, 0xf2, 0x1e, 0x26, 0x7b, 0x5a, 0x8c, 0x98, 0xca, 0x85, 0xc6,
  108. 0xc3, 0x36, 0xa9, 0x37, 0xbd, 0x01, 0x89, 0x21, 0x21, 0x4a, 0xf6, 0xe0, 0xc1, 0x0b, 0xa9, 0xed,
  109. 0x60, 0x1a, 0xba, 0x3b, 0x64, 0xbb, 0x80, 0x7c, 0x25, 0x3f, 0x88, 0x9f, 0xcb, 0x74, 0xdb, 0xaa,
  110. 0x31, 0x81, 0xdb, 0xec, 0x7f, 0x7f, 0xfb, 0x9b, 0xd9, 0x0c, 0xb9, 0xde, 0x85, 0x3a, 0x3a, 0xf0,
  111. 0x18, 0x65, 0x10, 0xa3, 0x86, 0x60, 0xa3, 0xf1, 0xed, 0x10, 0x24, 0xb8, 0xc6, 0x04, 0x24, 0x06,
  112. 0x31, 0xaa, 0x55, 0xfa, 0xca, 0x37, 0x1a, 0x0d, 0xd2, 0x7e, 0xcd, 0x6a, 0xe0, 0x96, 0xe3, 0x35,
  113. 0x77, 0x3e, 0xfa, 0xa5, 0x89, 0x51, 0x4a, 0x54, 0x81, 0x02, 0x13, 0x44, 0x49, 0xa2, 0x21, 0xcf,
  114. 0x4b, 0xc7, 0x29, 0x50, 0x81, 0xd9, 0xa3, 0x5e, 0x97, 0xe0, 0xf0, 0xc3, 0x25, 0xad, 0x89, 0xed,
  115. 0x4e, 0xef, 0x48, 0xbb, 0x92, 0x30, 0xc7, 0x73, 0xfc, 0x6e, 0x78, 0xc5, 0x7f, 0x4c, 0x52, 0x1a,
  116. 0xb8, 0x02, 0xc3, 0x67, 0x8b, 0x47, 0x3d, 0x45, 0x19, 0xa5, 0x4a, 0xd4, 0x2f, 0x28, 0x25, 0xcd,
  117. 0x0d, 0x6a, 0xc3, 0x5c, 0xcf, 0xf1, 0xff, 0x0b, 0x5b, 0xd3, 0x19, 0xf9, 0x57, 0x35, 0x5b, 0x66,
  118. 0x69, 0x6e, 0x58, 0xc3, 0x5a, 0x87, 0x47, 0xac, 0x0f, 0x25, 0x3a, 0x4f, 0x73, 0x33, 0x76, 0x99,
  119. 0x23, 0xba, 0xea, 0x3b, 0xa0, 0xb7, 0xa4, 0x53, 0x1d, 0x73, 0xd6, 0xf6, 0x1a, 0x7e, 0x2f, 0xbc,
  120. 0x3c, 0xad, 0x11, 0x5f, 0x3c, 0xbd, 0x20, 0x6d, 0x93, 0x4a, 0xc0, 0xad, 0x61, 0xcd, 0x62, 0x3a,
  121. 0x6b, 0xaf, 0x23, 0x3a, 0x22, 0x67, 0x2b, 0xcc, 0x32, 0xdc, 0x2f, 0x35, 0x24, 0xa9, 0x86, 0xd8,
  122. 0xb0, 0x3f, 0x9e, 0xe3, 0x77, 0x44, 0xaf, 0x8c, 0x45, 0x95, 0xd2, 0x01, 0x21, 0xdb, 0x1c, 0xf4,
  123. 0x32, 0x83, 0x1d, 0x64, 0xac, 0x65, 0xff, 0xf9, 0xb7, 0x48, 0xe6, 0x45, 0x30, 0xbe, 0x27, 0x83,
  124. 0x18, 0x25, 0x3f, 0xba, 0xbb, 0x85, 0xf3, 0xdc, 0xa9, 0xeb, 0x77, 0xb7, 0xff, 0x14, 0x8a, 0xe8,
  125. 0xc0, 0x27, 0x05, 0xb7, 0xb0, 0xdc, 0xb4, 0xba, 0x7b, 0x69, 0xd9, 0xc5, 0xdc, 0x7c, 0x06, 0x00,
  126. 0x00, 0xff, 0xff, 0xec, 0xf1, 0xbb, 0x96, 0x33, 0x02, 0x00, 0x00,
  127. }