config.pb.go 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. package http
  2. import (
  3. fmt "fmt"
  4. proto "github.com/golang/protobuf/proto"
  5. math "math"
  6. protocol "v2ray.com/core/common/protocol"
  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.ProtoPackageIsVersion3 // please upgrade the proto package
  17. type Account struct {
  18. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  19. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  20. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  21. XXX_unrecognized []byte `json:"-"`
  22. XXX_sizecache int32 `json:"-"`
  23. }
  24. func (m *Account) Reset() { *m = Account{} }
  25. func (m *Account) String() string { return proto.CompactTextString(m) }
  26. func (*Account) ProtoMessage() {}
  27. func (*Account) Descriptor() ([]byte, []int) {
  28. return fileDescriptor_e66c3db3a635d8e4, []int{0}
  29. }
  30. func (m *Account) XXX_Unmarshal(b []byte) error {
  31. return xxx_messageInfo_Account.Unmarshal(m, b)
  32. }
  33. func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  34. return xxx_messageInfo_Account.Marshal(b, m, deterministic)
  35. }
  36. func (m *Account) XXX_Merge(src proto.Message) {
  37. xxx_messageInfo_Account.Merge(m, src)
  38. }
  39. func (m *Account) XXX_Size() int {
  40. return xxx_messageInfo_Account.Size(m)
  41. }
  42. func (m *Account) XXX_DiscardUnknown() {
  43. xxx_messageInfo_Account.DiscardUnknown(m)
  44. }
  45. var xxx_messageInfo_Account proto.InternalMessageInfo
  46. func (m *Account) GetUsername() string {
  47. if m != nil {
  48. return m.Username
  49. }
  50. return ""
  51. }
  52. func (m *Account) GetPassword() string {
  53. if m != nil {
  54. return m.Password
  55. }
  56. return ""
  57. }
  58. // Config for HTTP proxy server.
  59. type ServerConfig struct {
  60. Timeout uint32 `protobuf:"varint,1,opt,name=timeout,proto3" json:"timeout,omitempty"` // Deprecated: Do not use.
  61. Accounts map[string]string `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  62. AllowTransparent bool `protobuf:"varint,3,opt,name=allow_transparent,json=allowTransparent,proto3" json:"allow_transparent,omitempty"`
  63. UserLevel uint32 `protobuf:"varint,4,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  64. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  65. XXX_unrecognized []byte `json:"-"`
  66. XXX_sizecache int32 `json:"-"`
  67. }
  68. func (m *ServerConfig) Reset() { *m = ServerConfig{} }
  69. func (m *ServerConfig) String() string { return proto.CompactTextString(m) }
  70. func (*ServerConfig) ProtoMessage() {}
  71. func (*ServerConfig) Descriptor() ([]byte, []int) {
  72. return fileDescriptor_e66c3db3a635d8e4, []int{1}
  73. }
  74. func (m *ServerConfig) XXX_Unmarshal(b []byte) error {
  75. return xxx_messageInfo_ServerConfig.Unmarshal(m, b)
  76. }
  77. func (m *ServerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  78. return xxx_messageInfo_ServerConfig.Marshal(b, m, deterministic)
  79. }
  80. func (m *ServerConfig) XXX_Merge(src proto.Message) {
  81. xxx_messageInfo_ServerConfig.Merge(m, src)
  82. }
  83. func (m *ServerConfig) XXX_Size() int {
  84. return xxx_messageInfo_ServerConfig.Size(m)
  85. }
  86. func (m *ServerConfig) XXX_DiscardUnknown() {
  87. xxx_messageInfo_ServerConfig.DiscardUnknown(m)
  88. }
  89. var xxx_messageInfo_ServerConfig proto.InternalMessageInfo
  90. // Deprecated: Do not use.
  91. func (m *ServerConfig) GetTimeout() uint32 {
  92. if m != nil {
  93. return m.Timeout
  94. }
  95. return 0
  96. }
  97. func (m *ServerConfig) GetAccounts() map[string]string {
  98. if m != nil {
  99. return m.Accounts
  100. }
  101. return nil
  102. }
  103. func (m *ServerConfig) GetAllowTransparent() bool {
  104. if m != nil {
  105. return m.AllowTransparent
  106. }
  107. return false
  108. }
  109. func (m *ServerConfig) GetUserLevel() uint32 {
  110. if m != nil {
  111. return m.UserLevel
  112. }
  113. return 0
  114. }
  115. // ClientConfig is the protobuf config for HTTP proxy client.
  116. type ClientConfig struct {
  117. // Sever is a list of HTTP server addresses.
  118. Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"`
  119. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  120. XXX_unrecognized []byte `json:"-"`
  121. XXX_sizecache int32 `json:"-"`
  122. }
  123. func (m *ClientConfig) Reset() { *m = ClientConfig{} }
  124. func (m *ClientConfig) String() string { return proto.CompactTextString(m) }
  125. func (*ClientConfig) ProtoMessage() {}
  126. func (*ClientConfig) Descriptor() ([]byte, []int) {
  127. return fileDescriptor_e66c3db3a635d8e4, []int{2}
  128. }
  129. func (m *ClientConfig) XXX_Unmarshal(b []byte) error {
  130. return xxx_messageInfo_ClientConfig.Unmarshal(m, b)
  131. }
  132. func (m *ClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  133. return xxx_messageInfo_ClientConfig.Marshal(b, m, deterministic)
  134. }
  135. func (m *ClientConfig) XXX_Merge(src proto.Message) {
  136. xxx_messageInfo_ClientConfig.Merge(m, src)
  137. }
  138. func (m *ClientConfig) XXX_Size() int {
  139. return xxx_messageInfo_ClientConfig.Size(m)
  140. }
  141. func (m *ClientConfig) XXX_DiscardUnknown() {
  142. xxx_messageInfo_ClientConfig.DiscardUnknown(m)
  143. }
  144. var xxx_messageInfo_ClientConfig proto.InternalMessageInfo
  145. func (m *ClientConfig) GetServer() []*protocol.ServerEndpoint {
  146. if m != nil {
  147. return m.Server
  148. }
  149. return nil
  150. }
  151. func init() {
  152. proto.RegisterType((*Account)(nil), "v2ray.core.proxy.http.Account")
  153. proto.RegisterType((*ServerConfig)(nil), "v2ray.core.proxy.http.ServerConfig")
  154. proto.RegisterMapType((map[string]string)(nil), "v2ray.core.proxy.http.ServerConfig.AccountsEntry")
  155. proto.RegisterType((*ClientConfig)(nil), "v2ray.core.proxy.http.ClientConfig")
  156. }
  157. func init() {
  158. proto.RegisterFile("v2ray.com/core/proxy/http/config.proto", fileDescriptor_e66c3db3a635d8e4)
  159. }
  160. var fileDescriptor_e66c3db3a635d8e4 = []byte{
  161. // 375 bytes of a gzipped FileDescriptorProto
  162. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x51, 0x4d, 0x6b, 0xe3, 0x30,
  163. 0x10, 0xc5, 0x4e, 0x36, 0x1f, 0xda, 0x04, 0xb2, 0x62, 0x03, 0xde, 0xb0, 0x0b, 0x21, 0x87, 0x25,
  164. 0xb4, 0x20, 0xb7, 0xe9, 0xa5, 0x34, 0xa7, 0x24, 0x04, 0x7a, 0x68, 0x21, 0xa8, 0xa5, 0x87, 0x5e,
  165. 0x82, 0xaa, 0xa8, 0xad, 0xa9, 0x2d, 0x09, 0x49, 0x76, 0xea, 0x7b, 0x7f, 0x4d, 0x7f, 0x65, 0x91,
  166. 0x6c, 0xa7, 0x69, 0xc9, 0xc9, 0x9e, 0xf7, 0x66, 0x9e, 0xe6, 0xbd, 0x01, 0xff, 0xb3, 0x89, 0x22,
  167. 0x39, 0xa2, 0x22, 0x09, 0xa9, 0x50, 0x2c, 0x94, 0x4a, 0xbc, 0xe6, 0xe1, 0xb3, 0x31, 0x32, 0xa4,
  168. 0x82, 0x3f, 0x46, 0x4f, 0x48, 0x2a, 0x61, 0x04, 0xec, 0x57, 0x7d, 0x8a, 0x21, 0xd7, 0x83, 0x6c,
  169. 0xcf, 0xe0, 0xe4, 0xdb, 0x38, 0x15, 0x49, 0x22, 0x78, 0xe8, 0x66, 0xa8, 0x88, 0x43, 0xcd, 0x54,
  170. 0xc6, 0xd4, 0x5a, 0x4b, 0x46, 0x0b, 0xa1, 0xd1, 0x0c, 0x34, 0x67, 0x94, 0x8a, 0x94, 0x1b, 0x38,
  171. 0x00, 0xad, 0x54, 0x33, 0xc5, 0x49, 0xc2, 0x02, 0x6f, 0xe8, 0x8d, 0xdb, 0x78, 0x57, 0x5b, 0x4e,
  172. 0x12, 0xad, 0xb7, 0x42, 0x6d, 0x02, 0xbf, 0xe0, 0xaa, 0x7a, 0xf4, 0xe6, 0x83, 0xce, 0x8d, 0x13,
  173. 0x5e, 0xb8, 0x15, 0xe1, 0x5f, 0xd0, 0x34, 0x51, 0xc2, 0x44, 0x6a, 0x9c, 0x4e, 0x77, 0xee, 0x07,
  174. 0x1e, 0xae, 0x20, 0x78, 0x0d, 0x5a, 0xa4, 0x78, 0x51, 0x07, 0xfe, 0xb0, 0x36, 0xfe, 0x39, 0x39,
  175. 0x45, 0x07, 0xdd, 0xa0, 0x7d, 0x51, 0x54, 0x6e, 0xa9, 0x97, 0xdc, 0xa8, 0x1c, 0xef, 0x24, 0xe0,
  176. 0x31, 0xf8, 0x45, 0xe2, 0x58, 0x6c, 0xd7, 0x46, 0x11, 0xae, 0x25, 0x51, 0x8c, 0x9b, 0xa0, 0x36,
  177. 0xf4, 0xc6, 0x2d, 0xdc, 0x73, 0xc4, 0xed, 0x27, 0x0e, 0xff, 0x01, 0x60, 0x2d, 0xad, 0x63, 0x96,
  178. 0xb1, 0x38, 0xa8, 0xdb, 0xe5, 0x70, 0xdb, 0x22, 0x57, 0x16, 0x18, 0x4c, 0x41, 0xf7, 0xcb, 0x33,
  179. 0xb0, 0x07, 0x6a, 0x2f, 0x2c, 0x2f, 0xd3, 0xb0, 0xbf, 0xf0, 0x37, 0xf8, 0x91, 0x91, 0x38, 0x65,
  180. 0x65, 0x0a, 0x45, 0x71, 0xe1, 0x9f, 0x7b, 0x23, 0x0c, 0x3a, 0x8b, 0x38, 0x62, 0xdc, 0x94, 0x29,
  181. 0xcc, 0x41, 0xa3, 0x88, 0x3b, 0xf0, 0x9c, 0xcb, 0xa3, 0x7d, 0x97, 0xc5, 0x61, 0x50, 0x75, 0x98,
  182. 0xd2, 0xea, 0x92, 0x6f, 0xa4, 0x88, 0xb8, 0xc1, 0xe5, 0xe4, 0x7c, 0x0a, 0xfe, 0x50, 0x91, 0x1c,
  183. 0x8e, 0x67, 0xe5, 0xdd, 0xd7, 0xed, 0xf7, 0xdd, 0xef, 0xdf, 0x4d, 0x30, 0xc9, 0xd1, 0xc2, 0xf2,
  184. 0x2b, 0xc7, 0x5f, 0x1a, 0x23, 0x1f, 0x1a, 0x4e, 0xfd, 0xec, 0x23, 0x00, 0x00, 0xff, 0xff, 0xac,
  185. 0x7a, 0x67, 0x04, 0x54, 0x02, 0x00, 0x00,
  186. }