github.com/EagleQL/Xray-core@v1.4.3/proxy/http/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.14.0 5 // source: proxy/http/config.proto 6 7 package http 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 11 protocol "github.com/xtls/xray-core/common/protocol" 12 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 13 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 14 reflect "reflect" 15 sync "sync" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 // This is a compile-time assertion that a sufficiently up-to-date version 26 // of the legacy proto package is being used. 27 const _ = proto.ProtoPackageIsVersion4 28 29 type Account struct { 30 state protoimpl.MessageState 31 sizeCache protoimpl.SizeCache 32 unknownFields protoimpl.UnknownFields 33 34 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 35 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` 36 } 37 38 func (x *Account) Reset() { 39 *x = Account{} 40 if protoimpl.UnsafeEnabled { 41 mi := &file_proxy_http_config_proto_msgTypes[0] 42 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 43 ms.StoreMessageInfo(mi) 44 } 45 } 46 47 func (x *Account) String() string { 48 return protoimpl.X.MessageStringOf(x) 49 } 50 51 func (*Account) ProtoMessage() {} 52 53 func (x *Account) ProtoReflect() protoreflect.Message { 54 mi := &file_proxy_http_config_proto_msgTypes[0] 55 if protoimpl.UnsafeEnabled && x != nil { 56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 57 if ms.LoadMessageInfo() == nil { 58 ms.StoreMessageInfo(mi) 59 } 60 return ms 61 } 62 return mi.MessageOf(x) 63 } 64 65 // Deprecated: Use Account.ProtoReflect.Descriptor instead. 66 func (*Account) Descriptor() ([]byte, []int) { 67 return file_proxy_http_config_proto_rawDescGZIP(), []int{0} 68 } 69 70 func (x *Account) GetUsername() string { 71 if x != nil { 72 return x.Username 73 } 74 return "" 75 } 76 77 func (x *Account) GetPassword() string { 78 if x != nil { 79 return x.Password 80 } 81 return "" 82 } 83 84 // Config for HTTP proxy server. 85 type ServerConfig struct { 86 state protoimpl.MessageState 87 sizeCache protoimpl.SizeCache 88 unknownFields protoimpl.UnknownFields 89 90 // Deprecated: Do not use. 91 Timeout uint32 `protobuf:"varint,1,opt,name=timeout,proto3" json:"timeout,omitempty"` 92 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"` 93 AllowTransparent bool `protobuf:"varint,3,opt,name=allow_transparent,json=allowTransparent,proto3" json:"allow_transparent,omitempty"` 94 UserLevel uint32 `protobuf:"varint,4,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"` 95 } 96 97 func (x *ServerConfig) Reset() { 98 *x = ServerConfig{} 99 if protoimpl.UnsafeEnabled { 100 mi := &file_proxy_http_config_proto_msgTypes[1] 101 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 102 ms.StoreMessageInfo(mi) 103 } 104 } 105 106 func (x *ServerConfig) String() string { 107 return protoimpl.X.MessageStringOf(x) 108 } 109 110 func (*ServerConfig) ProtoMessage() {} 111 112 func (x *ServerConfig) ProtoReflect() protoreflect.Message { 113 mi := &file_proxy_http_config_proto_msgTypes[1] 114 if protoimpl.UnsafeEnabled && x != nil { 115 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 116 if ms.LoadMessageInfo() == nil { 117 ms.StoreMessageInfo(mi) 118 } 119 return ms 120 } 121 return mi.MessageOf(x) 122 } 123 124 // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead. 125 func (*ServerConfig) Descriptor() ([]byte, []int) { 126 return file_proxy_http_config_proto_rawDescGZIP(), []int{1} 127 } 128 129 // Deprecated: Do not use. 130 func (x *ServerConfig) GetTimeout() uint32 { 131 if x != nil { 132 return x.Timeout 133 } 134 return 0 135 } 136 137 func (x *ServerConfig) GetAccounts() map[string]string { 138 if x != nil { 139 return x.Accounts 140 } 141 return nil 142 } 143 144 func (x *ServerConfig) GetAllowTransparent() bool { 145 if x != nil { 146 return x.AllowTransparent 147 } 148 return false 149 } 150 151 func (x *ServerConfig) GetUserLevel() uint32 { 152 if x != nil { 153 return x.UserLevel 154 } 155 return 0 156 } 157 158 // ClientConfig is the protobuf config for HTTP proxy client. 159 type ClientConfig struct { 160 state protoimpl.MessageState 161 sizeCache protoimpl.SizeCache 162 unknownFields protoimpl.UnknownFields 163 164 // Sever is a list of HTTP server addresses. 165 Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"` 166 } 167 168 func (x *ClientConfig) Reset() { 169 *x = ClientConfig{} 170 if protoimpl.UnsafeEnabled { 171 mi := &file_proxy_http_config_proto_msgTypes[2] 172 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 173 ms.StoreMessageInfo(mi) 174 } 175 } 176 177 func (x *ClientConfig) String() string { 178 return protoimpl.X.MessageStringOf(x) 179 } 180 181 func (*ClientConfig) ProtoMessage() {} 182 183 func (x *ClientConfig) ProtoReflect() protoreflect.Message { 184 mi := &file_proxy_http_config_proto_msgTypes[2] 185 if protoimpl.UnsafeEnabled && x != nil { 186 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 187 if ms.LoadMessageInfo() == nil { 188 ms.StoreMessageInfo(mi) 189 } 190 return ms 191 } 192 return mi.MessageOf(x) 193 } 194 195 // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead. 196 func (*ClientConfig) Descriptor() ([]byte, []int) { 197 return file_proxy_http_config_proto_rawDescGZIP(), []int{2} 198 } 199 200 func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint { 201 if x != nil { 202 return x.Server 203 } 204 return nil 205 } 206 207 var File_proxy_http_config_proto protoreflect.FileDescriptor 208 209 var file_proxy_http_config_proto_rawDesc = []byte{ 210 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 211 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x78, 0x72, 0x61, 0x79, 0x2e, 212 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 213 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 214 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x41, 0x0a, 215 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 216 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 217 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 218 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 219 0x22, 0xfe, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 220 0x67, 0x12, 0x1c, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 221 0x28, 0x0d, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 222 0x47, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 223 0x0b, 0x32, 0x2b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x68, 224 0x74, 0x74, 0x70, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 225 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 226 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 227 0x77, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 228 0x01, 0x28, 0x08, 0x52, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 229 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 230 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 231 0x65, 0x76, 0x65, 0x6c, 0x1a, 0x3b, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 232 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 233 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 234 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 235 0x01, 0x22, 0x4c, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 236 0x67, 0x12, 0x3c, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 237 0x0b, 0x32, 0x24, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 238 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 239 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 240 0x4f, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 241 0x79, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x50, 0x01, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 242 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 243 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x68, 0x74, 0x74, 0x70, 0xaa, 0x02, 244 0x0f, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x48, 0x74, 0x74, 0x70, 245 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 246 } 247 248 var ( 249 file_proxy_http_config_proto_rawDescOnce sync.Once 250 file_proxy_http_config_proto_rawDescData = file_proxy_http_config_proto_rawDesc 251 ) 252 253 func file_proxy_http_config_proto_rawDescGZIP() []byte { 254 file_proxy_http_config_proto_rawDescOnce.Do(func() { 255 file_proxy_http_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_http_config_proto_rawDescData) 256 }) 257 return file_proxy_http_config_proto_rawDescData 258 } 259 260 var file_proxy_http_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 261 var file_proxy_http_config_proto_goTypes = []interface{}{ 262 (*Account)(nil), // 0: xray.proxy.http.Account 263 (*ServerConfig)(nil), // 1: xray.proxy.http.ServerConfig 264 (*ClientConfig)(nil), // 2: xray.proxy.http.ClientConfig 265 nil, // 3: xray.proxy.http.ServerConfig.AccountsEntry 266 (*protocol.ServerEndpoint)(nil), // 4: xray.common.protocol.ServerEndpoint 267 } 268 var file_proxy_http_config_proto_depIdxs = []int32{ 269 3, // 0: xray.proxy.http.ServerConfig.accounts:type_name -> xray.proxy.http.ServerConfig.AccountsEntry 270 4, // 1: xray.proxy.http.ClientConfig.server:type_name -> xray.common.protocol.ServerEndpoint 271 2, // [2:2] is the sub-list for method output_type 272 2, // [2:2] is the sub-list for method input_type 273 2, // [2:2] is the sub-list for extension type_name 274 2, // [2:2] is the sub-list for extension extendee 275 0, // [0:2] is the sub-list for field type_name 276 } 277 278 func init() { file_proxy_http_config_proto_init() } 279 func file_proxy_http_config_proto_init() { 280 if File_proxy_http_config_proto != nil { 281 return 282 } 283 if !protoimpl.UnsafeEnabled { 284 file_proxy_http_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 285 switch v := v.(*Account); i { 286 case 0: 287 return &v.state 288 case 1: 289 return &v.sizeCache 290 case 2: 291 return &v.unknownFields 292 default: 293 return nil 294 } 295 } 296 file_proxy_http_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 297 switch v := v.(*ServerConfig); i { 298 case 0: 299 return &v.state 300 case 1: 301 return &v.sizeCache 302 case 2: 303 return &v.unknownFields 304 default: 305 return nil 306 } 307 } 308 file_proxy_http_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 309 switch v := v.(*ClientConfig); i { 310 case 0: 311 return &v.state 312 case 1: 313 return &v.sizeCache 314 case 2: 315 return &v.unknownFields 316 default: 317 return nil 318 } 319 } 320 } 321 type x struct{} 322 out := protoimpl.TypeBuilder{ 323 File: protoimpl.DescBuilder{ 324 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 325 RawDescriptor: file_proxy_http_config_proto_rawDesc, 326 NumEnums: 0, 327 NumMessages: 4, 328 NumExtensions: 0, 329 NumServices: 0, 330 }, 331 GoTypes: file_proxy_http_config_proto_goTypes, 332 DependencyIndexes: file_proxy_http_config_proto_depIdxs, 333 MessageInfos: file_proxy_http_config_proto_msgTypes, 334 }.Build() 335 File_proxy_http_config_proto = out.File 336 file_proxy_http_config_proto_rawDesc = nil 337 file_proxy_http_config_proto_goTypes = nil 338 file_proxy_http_config_proto_depIdxs = nil 339 }