python-xray-api 26.10.21__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- python_xray_api-26.10.21.dist-info/METADATA +27 -0
- python_xray_api-26.10.21.dist-info/RECORD +258 -0
- python_xray_api-26.10.21.dist-info/WHEEL +5 -0
- python_xray_api-26.10.21.dist-info/licenses/LICENSE +674 -0
- python_xray_api-26.10.21.dist-info/top_level.txt +1 -0
- xray/__init__.py +0 -0
- xray/app/__init__.py +0 -0
- xray/app/commander/__init__.py +0 -0
- xray/app/commander/config_pb2.py +40 -0
- xray/app/commander/config_pb2_grpc.py +24 -0
- xray/app/dispatcher/__init__.py +0 -0
- xray/app/dispatcher/config_pb2.py +39 -0
- xray/app/dispatcher/config_pb2_grpc.py +24 -0
- xray/app/dns/__init__.py +0 -0
- xray/app/dns/config_pb2.py +45 -0
- xray/app/dns/config_pb2_grpc.py +24 -0
- xray/app/dns/fakedns/__init__.py +0 -0
- xray/app/dns/fakedns/fakedns_pb2.py +39 -0
- xray/app/dns/fakedns/fakedns_pb2_grpc.py +24 -0
- xray/app/geodata/__init__.py +0 -0
- xray/app/geodata/config_pb2.py +39 -0
- xray/app/geodata/config_pb2_grpc.py +24 -0
- xray/app/log/__init__.py +0 -0
- xray/app/log/command/__init__.py +0 -0
- xray/app/log/command/config_pb2.py +43 -0
- xray/app/log/command/config_pb2_grpc.py +97 -0
- xray/app/log/config_pb2.py +40 -0
- xray/app/log/config_pb2_grpc.py +24 -0
- xray/app/metrics/__init__.py +0 -0
- xray/app/metrics/config_pb2.py +37 -0
- xray/app/metrics/config_pb2_grpc.py +24 -0
- xray/app/observatory/__init__.py +0 -0
- xray/app/observatory/burst/__init__.py +0 -0
- xray/app/observatory/burst/config_pb2.py +39 -0
- xray/app/observatory/burst/config_pb2_grpc.py +24 -0
- xray/app/observatory/command/__init__.py +0 -0
- xray/app/observatory/command/command_pb2.py +44 -0
- xray/app/observatory/command/command_pb2_grpc.py +97 -0
- xray/app/observatory/config_pb2.py +47 -0
- xray/app/observatory/config_pb2_grpc.py +24 -0
- xray/app/policy/__init__.py +0 -0
- xray/app/policy/config_pb2.py +55 -0
- xray/app/policy/config_pb2_grpc.py +24 -0
- xray/app/proxyman/__init__.py +0 -0
- xray/app/proxyman/command/__init__.py +0 -0
- xray/app/proxyman/command/command_pb2.py +84 -0
- xray/app/proxyman/command/command_pb2_grpc.py +484 -0
- xray/app/proxyman/config_pb2.py +54 -0
- xray/app/proxyman/config_pb2_grpc.py +24 -0
- xray/app/reverse/__init__.py +0 -0
- xray/app/reverse/config_pb2.py +45 -0
- xray/app/reverse/config_pb2_grpc.py +24 -0
- xray/app/router/__init__.py +0 -0
- xray/app/router/command/__init__.py +0 -0
- xray/app/router/command/command_pb2.py +79 -0
- xray/app/router/command/command_pb2_grpc.py +355 -0
- xray/app/router/config_pb2.py +61 -0
- xray/app/router/config_pb2_grpc.py +24 -0
- xray/app/stats/__init__.py +0 -0
- xray/app/stats/command/__init__.py +0 -0
- xray/app/stats/command/command_pb2.py +73 -0
- xray/app/stats/command/command_pb2_grpc.py +355 -0
- xray/app/stats/config_pb2.py +39 -0
- xray/app/stats/config_pb2_grpc.py +24 -0
- xray/app/version/__init__.py +0 -0
- xray/app/version/config_pb2.py +37 -0
- xray/app/version/config_pb2_grpc.py +24 -0
- xray/common/__init__.py +0 -0
- xray/common/geodata/__init__.py +0 -0
- xray/common/geodata/geodat_pb2.py +61 -0
- xray/common/geodata/geodat_pb2_grpc.py +24 -0
- xray/common/log/__init__.py +0 -0
- xray/common/log/log_pb2.py +37 -0
- xray/common/log/log_pb2_grpc.py +24 -0
- xray/common/net/__init__.py +0 -0
- xray/common/net/address_pb2.py +37 -0
- xray/common/net/address_pb2_grpc.py +24 -0
- xray/common/net/destination_pb2.py +39 -0
- xray/common/net/destination_pb2_grpc.py +24 -0
- xray/common/net/network_pb2.py +39 -0
- xray/common/net/network_pb2_grpc.py +24 -0
- xray/common/net/port_pb2.py +39 -0
- xray/common/net/port_pb2_grpc.py +24 -0
- xray/common/protocol/__init__.py +0 -0
- xray/common/protocol/headers_pb2.py +39 -0
- xray/common/protocol/headers_pb2_grpc.py +24 -0
- xray/common/protocol/server_spec_pb2.py +39 -0
- xray/common/protocol/server_spec_pb2_grpc.py +24 -0
- xray/common/protocol/user_pb2.py +38 -0
- xray/common/protocol/user_pb2_grpc.py +24 -0
- xray/common/serial/__init__.py +0 -0
- xray/common/serial/typed_message_pb2.py +37 -0
- xray/common/serial/typed_message_pb2_grpc.py +24 -0
- xray/core/__init__.py +0 -0
- xray/core/config_pb2.py +42 -0
- xray/core/config_pb2_grpc.py +24 -0
- xray/proxy/__init__.py +0 -0
- xray/proxy/blackhole/__init__.py +0 -0
- xray/proxy/blackhole/config_pb2.py +39 -0
- xray/proxy/blackhole/config_pb2_grpc.py +24 -0
- xray/proxy/dns/__init__.py +0 -0
- xray/proxy/dns/config_pb2.py +43 -0
- xray/proxy/dns/config_pb2_grpc.py +24 -0
- xray/proxy/dokodemo/__init__.py +0 -0
- xray/proxy/dokodemo/config_pb2.py +43 -0
- xray/proxy/dokodemo/config_pb2_grpc.py +24 -0
- xray/proxy/freedom/__init__.py +0 -0
- xray/proxy/freedom/config_pb2.py +54 -0
- xray/proxy/freedom/config_pb2_grpc.py +24 -0
- xray/proxy/http/__init__.py +0 -0
- xray/proxy/http/config_pb2.py +48 -0
- xray/proxy/http/config_pb2_grpc.py +24 -0
- xray/proxy/hysteria/__init__.py +0 -0
- xray/proxy/hysteria/account/__init__.py +0 -0
- xray/proxy/hysteria/account/config_pb2.py +37 -0
- xray/proxy/hysteria/account/config_pb2_grpc.py +24 -0
- xray/proxy/hysteria/config_pb2.py +41 -0
- xray/proxy/hysteria/config_pb2_grpc.py +24 -0
- xray/proxy/loopback/__init__.py +0 -0
- xray/proxy/loopback/config_pb2.py +38 -0
- xray/proxy/loopback/config_pb2_grpc.py +24 -0
- xray/proxy/masque/__init__.py +0 -0
- xray/proxy/masque/config_pb2.py +43 -0
- xray/proxy/masque/config_pb2_grpc.py +24 -0
- xray/proxy/shadowsocks/__init__.py +0 -0
- xray/proxy/shadowsocks/config_pb2.py +46 -0
- xray/proxy/shadowsocks/config_pb2_grpc.py +24 -0
- xray/proxy/shadowsocks_2022/__init__.py +0 -0
- xray/proxy/shadowsocks_2022/config_pb2.py +50 -0
- xray/proxy/shadowsocks_2022/config_pb2_grpc.py +24 -0
- xray/proxy/socks/__init__.py +0 -0
- xray/proxy/socks/config_pb2.py +49 -0
- xray/proxy/socks/config_pb2_grpc.py +24 -0
- xray/proxy/trojan/__init__.py +0 -0
- xray/proxy/trojan/config_pb2.py +45 -0
- xray/proxy/trojan/config_pb2_grpc.py +24 -0
- xray/proxy/tun/__init__.py +0 -0
- xray/proxy/tun/config_pb2.py +37 -0
- xray/proxy/tun/config_pb2_grpc.py +24 -0
- xray/proxy/vless/__init__.py +0 -0
- xray/proxy/vless/account_pb2.py +40 -0
- xray/proxy/vless/account_pb2_grpc.py +24 -0
- xray/proxy/vless/encoding/__init__.py +0 -0
- xray/proxy/vless/encoding/addons_pb2.py +37 -0
- xray/proxy/vless/encoding/addons_pb2_grpc.py +24 -0
- xray/proxy/vless/inbound/__init__.py +0 -0
- xray/proxy/vless/inbound/config_pb2.py +40 -0
- xray/proxy/vless/inbound/config_pb2_grpc.py +24 -0
- xray/proxy/vless/outbound/__init__.py +0 -0
- xray/proxy/vless/outbound/config_pb2.py +38 -0
- xray/proxy/vless/outbound/config_pb2_grpc.py +24 -0
- xray/proxy/vmess/__init__.py +0 -0
- xray/proxy/vmess/account_pb2.py +38 -0
- xray/proxy/vmess/account_pb2_grpc.py +24 -0
- xray/proxy/vmess/inbound/__init__.py +0 -0
- xray/proxy/vmess/inbound/config_pb2.py +42 -0
- xray/proxy/vmess/inbound/config_pb2_grpc.py +24 -0
- xray/proxy/vmess/outbound/__init__.py +0 -0
- xray/proxy/vmess/outbound/config_pb2.py +38 -0
- xray/proxy/vmess/outbound/config_pb2_grpc.py +24 -0
- xray/proxy/wireguard/__init__.py +0 -0
- xray/proxy/wireguard/config_pb2.py +40 -0
- xray/proxy/wireguard/config_pb2_grpc.py +24 -0
- xray/transport/__init__.py +0 -0
- xray/transport/internet/__init__.py +0 -0
- xray/transport/internet/config_pb2.py +55 -0
- xray/transport/internet/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/__init__.py +0 -0
- xray/transport/internet/finalmask/filter/__init__.py +0 -0
- xray/transport/internet/finalmask/filter/config_pb2.py +38 -0
- xray/transport/internet/finalmask/filter/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/fragment/__init__.py +0 -0
- xray/transport/internet/finalmask/fragment/config_pb2.py +37 -0
- xray/transport/internet/finalmask/fragment/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/header/__init__.py +0 -0
- xray/transport/internet/finalmask/header/custom/__init__.py +0 -0
- xray/transport/internet/finalmask/header/custom/config_pb2.py +51 -0
- xray/transport/internet/finalmask/header/custom/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/mkcp/__init__.py +0 -0
- xray/transport/internet/finalmask/mkcp/aes128gcm/__init__.py +0 -0
- xray/transport/internet/finalmask/mkcp/aes128gcm/config_pb2.py +37 -0
- xray/transport/internet/finalmask/mkcp/aes128gcm/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/mkcp/header/__init__.py +0 -0
- xray/transport/internet/finalmask/mkcp/header/config_pb2.py +37 -0
- xray/transport/internet/finalmask/mkcp/header/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/mkcp/original/__init__.py +0 -0
- xray/transport/internet/finalmask/mkcp/original/config_pb2.py +37 -0
- xray/transport/internet/finalmask/mkcp/original/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/noise/__init__.py +0 -0
- xray/transport/internet/finalmask/noise/config_pb2.py +43 -0
- xray/transport/internet/finalmask/noise/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/realm/__init__.py +0 -0
- xray/transport/internet/finalmask/realm/config_pb2.py +42 -0
- xray/transport/internet/finalmask/realm/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/salamander/__init__.py +0 -0
- xray/transport/internet/finalmask/salamander/config_pb2.py +39 -0
- xray/transport/internet/finalmask/salamander/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/sudoku/__init__.py +0 -0
- xray/transport/internet/finalmask/sudoku/config_pb2.py +37 -0
- xray/transport/internet/finalmask/sudoku/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/udphop/__init__.py +0 -0
- xray/transport/internet/finalmask/udphop/config_pb2.py +37 -0
- xray/transport/internet/finalmask/udphop/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/xdns/__init__.py +0 -0
- xray/transport/internet/finalmask/xdns/config_pb2.py +44 -0
- xray/transport/internet/finalmask/xdns/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/xicmp/__init__.py +0 -0
- xray/transport/internet/finalmask/xicmp/config_pb2.py +37 -0
- xray/transport/internet/finalmask/xicmp/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/xmc/__init__.py +0 -0
- xray/transport/internet/finalmask/xmc/config_pb2.py +39 -0
- xray/transport/internet/finalmask/xmc/config_pb2_grpc.py +24 -0
- xray/transport/internet/grpc/__init__.py +0 -0
- xray/transport/internet/grpc/config_pb2.py +37 -0
- xray/transport/internet/grpc/config_pb2_grpc.py +24 -0
- xray/transport/internet/grpc/encoding/__init__.py +0 -0
- xray/transport/internet/grpc/encoding/stream_pb2.py +41 -0
- xray/transport/internet/grpc/encoding/stream_pb2_grpc.py +140 -0
- xray/transport/internet/headers/__init__.py +0 -0
- xray/transport/internet/headers/http/__init__.py +0 -0
- xray/transport/internet/headers/http/config_pb2.py +49 -0
- xray/transport/internet/headers/http/config_pb2_grpc.py +24 -0
- xray/transport/internet/headers/noop/__init__.py +0 -0
- xray/transport/internet/headers/noop/config_pb2.py +39 -0
- xray/transport/internet/headers/noop/config_pb2_grpc.py +24 -0
- xray/transport/internet/httpupgrade/__init__.py +0 -0
- xray/transport/internet/httpupgrade/config_pb2.py +41 -0
- xray/transport/internet/httpupgrade/config_pb2_grpc.py +24 -0
- xray/transport/internet/hysteria/__init__.py +0 -0
- xray/transport/internet/hysteria/config_pb2.py +41 -0
- xray/transport/internet/hysteria/config_pb2_grpc.py +24 -0
- xray/transport/internet/kcp/__init__.py +0 -0
- xray/transport/internet/kcp/config_pb2.py +37 -0
- xray/transport/internet/kcp/config_pb2_grpc.py +24 -0
- xray/transport/internet/masque/__init__.py +0 -0
- xray/transport/internet/masque/config_pb2.py +44 -0
- xray/transport/internet/masque/config_pb2_grpc.py +24 -0
- xray/transport/internet/reality/__init__.py +0 -0
- xray/transport/internet/reality/config_pb2.py +39 -0
- xray/transport/internet/reality/config_pb2_grpc.py +24 -0
- xray/transport/internet/splithttp/__init__.py +0 -0
- xray/transport/internet/splithttp/config_pb2.py +46 -0
- xray/transport/internet/splithttp/config_pb2_grpc.py +24 -0
- xray/transport/internet/tcp/__init__.py +0 -0
- xray/transport/internet/tcp/config_pb2.py +38 -0
- xray/transport/internet/tcp/config_pb2_grpc.py +24 -0
- xray/transport/internet/tls/__init__.py +0 -0
- xray/transport/internet/tls/config_pb2.py +42 -0
- xray/transport/internet/tls/config_pb2_grpc.py +24 -0
- xray/transport/internet/udp/__init__.py +0 -0
- xray/transport/internet/udp/config_pb2.py +37 -0
- xray/transport/internet/udp/config_pb2_grpc.py +24 -0
- xray/transport/internet/websocket/__init__.py +0 -0
- xray/transport/internet/websocket/config_pb2.py +41 -0
- xray/transport/internet/websocket/config_pb2_grpc.py +24 -0
- xray/transport/internet/xdrive/__init__.py +0 -0
- xray/transport/internet/xdrive/config_pb2.py +38 -0
- xray/transport/internet/xdrive/config_pb2_grpc.py +24 -0
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
from xray.app.proxyman.command import command_pb2 as app_dot_proxyman_dot_command_dot_command__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.84.1'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ ' but the generated code in app/proxyman/command/command_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class HandlerServiceStub:
|
|
29
|
+
"""Missing associated documentation comment in .proto file."""
|
|
30
|
+
|
|
31
|
+
def __init__(self, channel):
|
|
32
|
+
"""Constructor.
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
channel: A grpc.Channel.
|
|
36
|
+
"""
|
|
37
|
+
self.AddInbound = channel.unary_unary(
|
|
38
|
+
'/xray.app.proxyman.command.HandlerService/AddInbound',
|
|
39
|
+
request_serializer=app_dot_proxyman_dot_command_dot_command__pb2.AddInboundRequest.SerializeToString,
|
|
40
|
+
response_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.AddInboundResponse.FromString,
|
|
41
|
+
_registered_method=True)
|
|
42
|
+
self.RemoveInbound = channel.unary_unary(
|
|
43
|
+
'/xray.app.proxyman.command.HandlerService/RemoveInbound',
|
|
44
|
+
request_serializer=app_dot_proxyman_dot_command_dot_command__pb2.RemoveInboundRequest.SerializeToString,
|
|
45
|
+
response_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.RemoveInboundResponse.FromString,
|
|
46
|
+
_registered_method=True)
|
|
47
|
+
self.AlterInbound = channel.unary_unary(
|
|
48
|
+
'/xray.app.proxyman.command.HandlerService/AlterInbound',
|
|
49
|
+
request_serializer=app_dot_proxyman_dot_command_dot_command__pb2.AlterInboundRequest.SerializeToString,
|
|
50
|
+
response_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.AlterInboundResponse.FromString,
|
|
51
|
+
_registered_method=True)
|
|
52
|
+
self.ListInbounds = channel.unary_unary(
|
|
53
|
+
'/xray.app.proxyman.command.HandlerService/ListInbounds',
|
|
54
|
+
request_serializer=app_dot_proxyman_dot_command_dot_command__pb2.ListInboundsRequest.SerializeToString,
|
|
55
|
+
response_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.ListInboundsResponse.FromString,
|
|
56
|
+
_registered_method=True)
|
|
57
|
+
self.GetInboundUsers = channel.unary_unary(
|
|
58
|
+
'/xray.app.proxyman.command.HandlerService/GetInboundUsers',
|
|
59
|
+
request_serializer=app_dot_proxyman_dot_command_dot_command__pb2.GetInboundUserRequest.SerializeToString,
|
|
60
|
+
response_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.GetInboundUserResponse.FromString,
|
|
61
|
+
_registered_method=True)
|
|
62
|
+
self.GetInboundUsersCount = channel.unary_unary(
|
|
63
|
+
'/xray.app.proxyman.command.HandlerService/GetInboundUsersCount',
|
|
64
|
+
request_serializer=app_dot_proxyman_dot_command_dot_command__pb2.GetInboundUserRequest.SerializeToString,
|
|
65
|
+
response_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.GetInboundUsersCountResponse.FromString,
|
|
66
|
+
_registered_method=True)
|
|
67
|
+
self.AddOutbound = channel.unary_unary(
|
|
68
|
+
'/xray.app.proxyman.command.HandlerService/AddOutbound',
|
|
69
|
+
request_serializer=app_dot_proxyman_dot_command_dot_command__pb2.AddOutboundRequest.SerializeToString,
|
|
70
|
+
response_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.AddOutboundResponse.FromString,
|
|
71
|
+
_registered_method=True)
|
|
72
|
+
self.RemoveOutbound = channel.unary_unary(
|
|
73
|
+
'/xray.app.proxyman.command.HandlerService/RemoveOutbound',
|
|
74
|
+
request_serializer=app_dot_proxyman_dot_command_dot_command__pb2.RemoveOutboundRequest.SerializeToString,
|
|
75
|
+
response_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.RemoveOutboundResponse.FromString,
|
|
76
|
+
_registered_method=True)
|
|
77
|
+
self.AlterOutbound = channel.unary_unary(
|
|
78
|
+
'/xray.app.proxyman.command.HandlerService/AlterOutbound',
|
|
79
|
+
request_serializer=app_dot_proxyman_dot_command_dot_command__pb2.AlterOutboundRequest.SerializeToString,
|
|
80
|
+
response_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.AlterOutboundResponse.FromString,
|
|
81
|
+
_registered_method=True)
|
|
82
|
+
self.ListOutbounds = channel.unary_unary(
|
|
83
|
+
'/xray.app.proxyman.command.HandlerService/ListOutbounds',
|
|
84
|
+
request_serializer=app_dot_proxyman_dot_command_dot_command__pb2.ListOutboundsRequest.SerializeToString,
|
|
85
|
+
response_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.ListOutboundsResponse.FromString,
|
|
86
|
+
_registered_method=True)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
class HandlerServiceServicer:
|
|
90
|
+
"""Missing associated documentation comment in .proto file."""
|
|
91
|
+
|
|
92
|
+
def AddInbound(self, request, context):
|
|
93
|
+
"""Missing associated documentation comment in .proto file."""
|
|
94
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
95
|
+
context.set_details('Method not implemented!')
|
|
96
|
+
raise NotImplementedError('Method not implemented!')
|
|
97
|
+
|
|
98
|
+
def RemoveInbound(self, request, context):
|
|
99
|
+
"""Missing associated documentation comment in .proto file."""
|
|
100
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
101
|
+
context.set_details('Method not implemented!')
|
|
102
|
+
raise NotImplementedError('Method not implemented!')
|
|
103
|
+
|
|
104
|
+
def AlterInbound(self, request, context):
|
|
105
|
+
"""Missing associated documentation comment in .proto file."""
|
|
106
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
107
|
+
context.set_details('Method not implemented!')
|
|
108
|
+
raise NotImplementedError('Method not implemented!')
|
|
109
|
+
|
|
110
|
+
def ListInbounds(self, request, context):
|
|
111
|
+
"""Missing associated documentation comment in .proto file."""
|
|
112
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
113
|
+
context.set_details('Method not implemented!')
|
|
114
|
+
raise NotImplementedError('Method not implemented!')
|
|
115
|
+
|
|
116
|
+
def GetInboundUsers(self, request, context):
|
|
117
|
+
"""Missing associated documentation comment in .proto file."""
|
|
118
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
119
|
+
context.set_details('Method not implemented!')
|
|
120
|
+
raise NotImplementedError('Method not implemented!')
|
|
121
|
+
|
|
122
|
+
def GetInboundUsersCount(self, request, context):
|
|
123
|
+
"""Missing associated documentation comment in .proto file."""
|
|
124
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
125
|
+
context.set_details('Method not implemented!')
|
|
126
|
+
raise NotImplementedError('Method not implemented!')
|
|
127
|
+
|
|
128
|
+
def AddOutbound(self, request, context):
|
|
129
|
+
"""Missing associated documentation comment in .proto file."""
|
|
130
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
131
|
+
context.set_details('Method not implemented!')
|
|
132
|
+
raise NotImplementedError('Method not implemented!')
|
|
133
|
+
|
|
134
|
+
def RemoveOutbound(self, request, context):
|
|
135
|
+
"""Missing associated documentation comment in .proto file."""
|
|
136
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
137
|
+
context.set_details('Method not implemented!')
|
|
138
|
+
raise NotImplementedError('Method not implemented!')
|
|
139
|
+
|
|
140
|
+
def AlterOutbound(self, request, context):
|
|
141
|
+
"""Missing associated documentation comment in .proto file."""
|
|
142
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
143
|
+
context.set_details('Method not implemented!')
|
|
144
|
+
raise NotImplementedError('Method not implemented!')
|
|
145
|
+
|
|
146
|
+
def ListOutbounds(self, request, context):
|
|
147
|
+
"""Missing associated documentation comment in .proto file."""
|
|
148
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
149
|
+
context.set_details('Method not implemented!')
|
|
150
|
+
raise NotImplementedError('Method not implemented!')
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
def add_HandlerServiceServicer_to_server(servicer, server):
|
|
154
|
+
rpc_method_handlers = {
|
|
155
|
+
'AddInbound': grpc.unary_unary_rpc_method_handler(
|
|
156
|
+
servicer.AddInbound,
|
|
157
|
+
request_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.AddInboundRequest.FromString,
|
|
158
|
+
response_serializer=app_dot_proxyman_dot_command_dot_command__pb2.AddInboundResponse.SerializeToString,
|
|
159
|
+
),
|
|
160
|
+
'RemoveInbound': grpc.unary_unary_rpc_method_handler(
|
|
161
|
+
servicer.RemoveInbound,
|
|
162
|
+
request_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.RemoveInboundRequest.FromString,
|
|
163
|
+
response_serializer=app_dot_proxyman_dot_command_dot_command__pb2.RemoveInboundResponse.SerializeToString,
|
|
164
|
+
),
|
|
165
|
+
'AlterInbound': grpc.unary_unary_rpc_method_handler(
|
|
166
|
+
servicer.AlterInbound,
|
|
167
|
+
request_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.AlterInboundRequest.FromString,
|
|
168
|
+
response_serializer=app_dot_proxyman_dot_command_dot_command__pb2.AlterInboundResponse.SerializeToString,
|
|
169
|
+
),
|
|
170
|
+
'ListInbounds': grpc.unary_unary_rpc_method_handler(
|
|
171
|
+
servicer.ListInbounds,
|
|
172
|
+
request_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.ListInboundsRequest.FromString,
|
|
173
|
+
response_serializer=app_dot_proxyman_dot_command_dot_command__pb2.ListInboundsResponse.SerializeToString,
|
|
174
|
+
),
|
|
175
|
+
'GetInboundUsers': grpc.unary_unary_rpc_method_handler(
|
|
176
|
+
servicer.GetInboundUsers,
|
|
177
|
+
request_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.GetInboundUserRequest.FromString,
|
|
178
|
+
response_serializer=app_dot_proxyman_dot_command_dot_command__pb2.GetInboundUserResponse.SerializeToString,
|
|
179
|
+
),
|
|
180
|
+
'GetInboundUsersCount': grpc.unary_unary_rpc_method_handler(
|
|
181
|
+
servicer.GetInboundUsersCount,
|
|
182
|
+
request_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.GetInboundUserRequest.FromString,
|
|
183
|
+
response_serializer=app_dot_proxyman_dot_command_dot_command__pb2.GetInboundUsersCountResponse.SerializeToString,
|
|
184
|
+
),
|
|
185
|
+
'AddOutbound': grpc.unary_unary_rpc_method_handler(
|
|
186
|
+
servicer.AddOutbound,
|
|
187
|
+
request_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.AddOutboundRequest.FromString,
|
|
188
|
+
response_serializer=app_dot_proxyman_dot_command_dot_command__pb2.AddOutboundResponse.SerializeToString,
|
|
189
|
+
),
|
|
190
|
+
'RemoveOutbound': grpc.unary_unary_rpc_method_handler(
|
|
191
|
+
servicer.RemoveOutbound,
|
|
192
|
+
request_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.RemoveOutboundRequest.FromString,
|
|
193
|
+
response_serializer=app_dot_proxyman_dot_command_dot_command__pb2.RemoveOutboundResponse.SerializeToString,
|
|
194
|
+
),
|
|
195
|
+
'AlterOutbound': grpc.unary_unary_rpc_method_handler(
|
|
196
|
+
servicer.AlterOutbound,
|
|
197
|
+
request_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.AlterOutboundRequest.FromString,
|
|
198
|
+
response_serializer=app_dot_proxyman_dot_command_dot_command__pb2.AlterOutboundResponse.SerializeToString,
|
|
199
|
+
),
|
|
200
|
+
'ListOutbounds': grpc.unary_unary_rpc_method_handler(
|
|
201
|
+
servicer.ListOutbounds,
|
|
202
|
+
request_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.ListOutboundsRequest.FromString,
|
|
203
|
+
response_serializer=app_dot_proxyman_dot_command_dot_command__pb2.ListOutboundsResponse.SerializeToString,
|
|
204
|
+
),
|
|
205
|
+
}
|
|
206
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
207
|
+
'xray.app.proxyman.command.HandlerService', rpc_method_handlers)
|
|
208
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
209
|
+
server.add_registered_method_handlers('xray.app.proxyman.command.HandlerService', rpc_method_handlers)
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
# This class is part of an EXPERIMENTAL API.
|
|
213
|
+
class HandlerService:
|
|
214
|
+
"""Missing associated documentation comment in .proto file."""
|
|
215
|
+
|
|
216
|
+
@staticmethod
|
|
217
|
+
def AddInbound(request,
|
|
218
|
+
target,
|
|
219
|
+
options=(),
|
|
220
|
+
channel_credentials=None,
|
|
221
|
+
call_credentials=None,
|
|
222
|
+
insecure=False,
|
|
223
|
+
compression=None,
|
|
224
|
+
wait_for_ready=None,
|
|
225
|
+
timeout=None,
|
|
226
|
+
metadata=None):
|
|
227
|
+
return grpc.experimental.unary_unary(
|
|
228
|
+
request,
|
|
229
|
+
target,
|
|
230
|
+
'/xray.app.proxyman.command.HandlerService/AddInbound',
|
|
231
|
+
app_dot_proxyman_dot_command_dot_command__pb2.AddInboundRequest.SerializeToString,
|
|
232
|
+
app_dot_proxyman_dot_command_dot_command__pb2.AddInboundResponse.FromString,
|
|
233
|
+
options,
|
|
234
|
+
channel_credentials,
|
|
235
|
+
insecure,
|
|
236
|
+
call_credentials,
|
|
237
|
+
compression,
|
|
238
|
+
wait_for_ready,
|
|
239
|
+
timeout,
|
|
240
|
+
metadata,
|
|
241
|
+
_registered_method=True)
|
|
242
|
+
|
|
243
|
+
@staticmethod
|
|
244
|
+
def RemoveInbound(request,
|
|
245
|
+
target,
|
|
246
|
+
options=(),
|
|
247
|
+
channel_credentials=None,
|
|
248
|
+
call_credentials=None,
|
|
249
|
+
insecure=False,
|
|
250
|
+
compression=None,
|
|
251
|
+
wait_for_ready=None,
|
|
252
|
+
timeout=None,
|
|
253
|
+
metadata=None):
|
|
254
|
+
return grpc.experimental.unary_unary(
|
|
255
|
+
request,
|
|
256
|
+
target,
|
|
257
|
+
'/xray.app.proxyman.command.HandlerService/RemoveInbound',
|
|
258
|
+
app_dot_proxyman_dot_command_dot_command__pb2.RemoveInboundRequest.SerializeToString,
|
|
259
|
+
app_dot_proxyman_dot_command_dot_command__pb2.RemoveInboundResponse.FromString,
|
|
260
|
+
options,
|
|
261
|
+
channel_credentials,
|
|
262
|
+
insecure,
|
|
263
|
+
call_credentials,
|
|
264
|
+
compression,
|
|
265
|
+
wait_for_ready,
|
|
266
|
+
timeout,
|
|
267
|
+
metadata,
|
|
268
|
+
_registered_method=True)
|
|
269
|
+
|
|
270
|
+
@staticmethod
|
|
271
|
+
def AlterInbound(request,
|
|
272
|
+
target,
|
|
273
|
+
options=(),
|
|
274
|
+
channel_credentials=None,
|
|
275
|
+
call_credentials=None,
|
|
276
|
+
insecure=False,
|
|
277
|
+
compression=None,
|
|
278
|
+
wait_for_ready=None,
|
|
279
|
+
timeout=None,
|
|
280
|
+
metadata=None):
|
|
281
|
+
return grpc.experimental.unary_unary(
|
|
282
|
+
request,
|
|
283
|
+
target,
|
|
284
|
+
'/xray.app.proxyman.command.HandlerService/AlterInbound',
|
|
285
|
+
app_dot_proxyman_dot_command_dot_command__pb2.AlterInboundRequest.SerializeToString,
|
|
286
|
+
app_dot_proxyman_dot_command_dot_command__pb2.AlterInboundResponse.FromString,
|
|
287
|
+
options,
|
|
288
|
+
channel_credentials,
|
|
289
|
+
insecure,
|
|
290
|
+
call_credentials,
|
|
291
|
+
compression,
|
|
292
|
+
wait_for_ready,
|
|
293
|
+
timeout,
|
|
294
|
+
metadata,
|
|
295
|
+
_registered_method=True)
|
|
296
|
+
|
|
297
|
+
@staticmethod
|
|
298
|
+
def ListInbounds(request,
|
|
299
|
+
target,
|
|
300
|
+
options=(),
|
|
301
|
+
channel_credentials=None,
|
|
302
|
+
call_credentials=None,
|
|
303
|
+
insecure=False,
|
|
304
|
+
compression=None,
|
|
305
|
+
wait_for_ready=None,
|
|
306
|
+
timeout=None,
|
|
307
|
+
metadata=None):
|
|
308
|
+
return grpc.experimental.unary_unary(
|
|
309
|
+
request,
|
|
310
|
+
target,
|
|
311
|
+
'/xray.app.proxyman.command.HandlerService/ListInbounds',
|
|
312
|
+
app_dot_proxyman_dot_command_dot_command__pb2.ListInboundsRequest.SerializeToString,
|
|
313
|
+
app_dot_proxyman_dot_command_dot_command__pb2.ListInboundsResponse.FromString,
|
|
314
|
+
options,
|
|
315
|
+
channel_credentials,
|
|
316
|
+
insecure,
|
|
317
|
+
call_credentials,
|
|
318
|
+
compression,
|
|
319
|
+
wait_for_ready,
|
|
320
|
+
timeout,
|
|
321
|
+
metadata,
|
|
322
|
+
_registered_method=True)
|
|
323
|
+
|
|
324
|
+
@staticmethod
|
|
325
|
+
def GetInboundUsers(request,
|
|
326
|
+
target,
|
|
327
|
+
options=(),
|
|
328
|
+
channel_credentials=None,
|
|
329
|
+
call_credentials=None,
|
|
330
|
+
insecure=False,
|
|
331
|
+
compression=None,
|
|
332
|
+
wait_for_ready=None,
|
|
333
|
+
timeout=None,
|
|
334
|
+
metadata=None):
|
|
335
|
+
return grpc.experimental.unary_unary(
|
|
336
|
+
request,
|
|
337
|
+
target,
|
|
338
|
+
'/xray.app.proxyman.command.HandlerService/GetInboundUsers',
|
|
339
|
+
app_dot_proxyman_dot_command_dot_command__pb2.GetInboundUserRequest.SerializeToString,
|
|
340
|
+
app_dot_proxyman_dot_command_dot_command__pb2.GetInboundUserResponse.FromString,
|
|
341
|
+
options,
|
|
342
|
+
channel_credentials,
|
|
343
|
+
insecure,
|
|
344
|
+
call_credentials,
|
|
345
|
+
compression,
|
|
346
|
+
wait_for_ready,
|
|
347
|
+
timeout,
|
|
348
|
+
metadata,
|
|
349
|
+
_registered_method=True)
|
|
350
|
+
|
|
351
|
+
@staticmethod
|
|
352
|
+
def GetInboundUsersCount(request,
|
|
353
|
+
target,
|
|
354
|
+
options=(),
|
|
355
|
+
channel_credentials=None,
|
|
356
|
+
call_credentials=None,
|
|
357
|
+
insecure=False,
|
|
358
|
+
compression=None,
|
|
359
|
+
wait_for_ready=None,
|
|
360
|
+
timeout=None,
|
|
361
|
+
metadata=None):
|
|
362
|
+
return grpc.experimental.unary_unary(
|
|
363
|
+
request,
|
|
364
|
+
target,
|
|
365
|
+
'/xray.app.proxyman.command.HandlerService/GetInboundUsersCount',
|
|
366
|
+
app_dot_proxyman_dot_command_dot_command__pb2.GetInboundUserRequest.SerializeToString,
|
|
367
|
+
app_dot_proxyman_dot_command_dot_command__pb2.GetInboundUsersCountResponse.FromString,
|
|
368
|
+
options,
|
|
369
|
+
channel_credentials,
|
|
370
|
+
insecure,
|
|
371
|
+
call_credentials,
|
|
372
|
+
compression,
|
|
373
|
+
wait_for_ready,
|
|
374
|
+
timeout,
|
|
375
|
+
metadata,
|
|
376
|
+
_registered_method=True)
|
|
377
|
+
|
|
378
|
+
@staticmethod
|
|
379
|
+
def AddOutbound(request,
|
|
380
|
+
target,
|
|
381
|
+
options=(),
|
|
382
|
+
channel_credentials=None,
|
|
383
|
+
call_credentials=None,
|
|
384
|
+
insecure=False,
|
|
385
|
+
compression=None,
|
|
386
|
+
wait_for_ready=None,
|
|
387
|
+
timeout=None,
|
|
388
|
+
metadata=None):
|
|
389
|
+
return grpc.experimental.unary_unary(
|
|
390
|
+
request,
|
|
391
|
+
target,
|
|
392
|
+
'/xray.app.proxyman.command.HandlerService/AddOutbound',
|
|
393
|
+
app_dot_proxyman_dot_command_dot_command__pb2.AddOutboundRequest.SerializeToString,
|
|
394
|
+
app_dot_proxyman_dot_command_dot_command__pb2.AddOutboundResponse.FromString,
|
|
395
|
+
options,
|
|
396
|
+
channel_credentials,
|
|
397
|
+
insecure,
|
|
398
|
+
call_credentials,
|
|
399
|
+
compression,
|
|
400
|
+
wait_for_ready,
|
|
401
|
+
timeout,
|
|
402
|
+
metadata,
|
|
403
|
+
_registered_method=True)
|
|
404
|
+
|
|
405
|
+
@staticmethod
|
|
406
|
+
def RemoveOutbound(request,
|
|
407
|
+
target,
|
|
408
|
+
options=(),
|
|
409
|
+
channel_credentials=None,
|
|
410
|
+
call_credentials=None,
|
|
411
|
+
insecure=False,
|
|
412
|
+
compression=None,
|
|
413
|
+
wait_for_ready=None,
|
|
414
|
+
timeout=None,
|
|
415
|
+
metadata=None):
|
|
416
|
+
return grpc.experimental.unary_unary(
|
|
417
|
+
request,
|
|
418
|
+
target,
|
|
419
|
+
'/xray.app.proxyman.command.HandlerService/RemoveOutbound',
|
|
420
|
+
app_dot_proxyman_dot_command_dot_command__pb2.RemoveOutboundRequest.SerializeToString,
|
|
421
|
+
app_dot_proxyman_dot_command_dot_command__pb2.RemoveOutboundResponse.FromString,
|
|
422
|
+
options,
|
|
423
|
+
channel_credentials,
|
|
424
|
+
insecure,
|
|
425
|
+
call_credentials,
|
|
426
|
+
compression,
|
|
427
|
+
wait_for_ready,
|
|
428
|
+
timeout,
|
|
429
|
+
metadata,
|
|
430
|
+
_registered_method=True)
|
|
431
|
+
|
|
432
|
+
@staticmethod
|
|
433
|
+
def AlterOutbound(request,
|
|
434
|
+
target,
|
|
435
|
+
options=(),
|
|
436
|
+
channel_credentials=None,
|
|
437
|
+
call_credentials=None,
|
|
438
|
+
insecure=False,
|
|
439
|
+
compression=None,
|
|
440
|
+
wait_for_ready=None,
|
|
441
|
+
timeout=None,
|
|
442
|
+
metadata=None):
|
|
443
|
+
return grpc.experimental.unary_unary(
|
|
444
|
+
request,
|
|
445
|
+
target,
|
|
446
|
+
'/xray.app.proxyman.command.HandlerService/AlterOutbound',
|
|
447
|
+
app_dot_proxyman_dot_command_dot_command__pb2.AlterOutboundRequest.SerializeToString,
|
|
448
|
+
app_dot_proxyman_dot_command_dot_command__pb2.AlterOutboundResponse.FromString,
|
|
449
|
+
options,
|
|
450
|
+
channel_credentials,
|
|
451
|
+
insecure,
|
|
452
|
+
call_credentials,
|
|
453
|
+
compression,
|
|
454
|
+
wait_for_ready,
|
|
455
|
+
timeout,
|
|
456
|
+
metadata,
|
|
457
|
+
_registered_method=True)
|
|
458
|
+
|
|
459
|
+
@staticmethod
|
|
460
|
+
def ListOutbounds(request,
|
|
461
|
+
target,
|
|
462
|
+
options=(),
|
|
463
|
+
channel_credentials=None,
|
|
464
|
+
call_credentials=None,
|
|
465
|
+
insecure=False,
|
|
466
|
+
compression=None,
|
|
467
|
+
wait_for_ready=None,
|
|
468
|
+
timeout=None,
|
|
469
|
+
metadata=None):
|
|
470
|
+
return grpc.experimental.unary_unary(
|
|
471
|
+
request,
|
|
472
|
+
target,
|
|
473
|
+
'/xray.app.proxyman.command.HandlerService/ListOutbounds',
|
|
474
|
+
app_dot_proxyman_dot_command_dot_command__pb2.ListOutboundsRequest.SerializeToString,
|
|
475
|
+
app_dot_proxyman_dot_command_dot_command__pb2.ListOutboundsResponse.FromString,
|
|
476
|
+
options,
|
|
477
|
+
channel_credentials,
|
|
478
|
+
insecure,
|
|
479
|
+
call_credentials,
|
|
480
|
+
compression,
|
|
481
|
+
wait_for_ready,
|
|
482
|
+
timeout,
|
|
483
|
+
metadata,
|
|
484
|
+
_registered_method=True)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: app/proxyman/config.proto
|
|
5
|
+
# Protobuf Python Version: 7.35.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
7,
|
|
15
|
+
35,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'app/proxyman/config.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from xray.common.net import address_pb2 as common_dot_net_dot_address__pb2
|
|
26
|
+
from xray.common.net import port_pb2 as common_dot_net_dot_port__pb2
|
|
27
|
+
from xray.transport.internet import config_pb2 as transport_dot_internet_dot_config__pb2
|
|
28
|
+
from xray.common.serial import typed_message_pb2 as common_dot_serial_dot_typed__message__pb2
|
|
29
|
+
from xray.common.geodata import geodat_pb2 as common_dot_geodata_dot_geodat__pb2
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x61pp/proxyman/config.proto\x12\x11xray.app.proxyman\x1a\x18\x63ommon/net/address.proto\x1a\x15\x63ommon/net/port.proto\x1a\x1ftransport/internet/config.proto\x1a!common/serial/typed_message.proto\x1a\x1b\x63ommon/geodata/geodat.proto\"\x0f\n\rInboundConfig\"\xd8\x01\n\x0eSniffingConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x1c\n\x14\x64\x65stination_override\x18\x02 \x03(\t\x12\x39\n\x10\x64omains_excluded\x18\x03 \x03(\x0b\x32\x1f.xray.common.geodata.DomainRule\x12\x31\n\x0cips_excluded\x18\x06 \x03(\x0b\x32\x1b.xray.common.geodata.IPRule\x12\x15\n\rmetadata_only\x18\x04 \x01(\x08\x12\x12\n\nroute_only\x18\x05 \x01(\x08\"\x95\x02\n\x0eReceiverConfig\x12,\n\tport_list\x18\x01 \x01(\x0b\x32\x19.xray.common.net.PortList\x12+\n\x06listen\x18\x02 \x01(\x0b\x32\x1b.xray.common.net.IPOrDomain\x12>\n\x0fstream_settings\x18\x03 \x01(\x0b\x32%.xray.transport.internet.StreamConfig\x12$\n\x1creceive_original_destination\x18\x04 \x01(\x08\x12<\n\x11sniffing_settings\x18\x06 \x01(\x0b\x32!.xray.app.proxyman.SniffingConfigJ\x04\x08\x05\x10\x06\"\x9a\x01\n\x14InboundHandlerConfig\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12;\n\x11receiver_settings\x18\x02 \x01(\x0b\x32 .xray.common.serial.TypedMessage\x12\x38\n\x0eproxy_settings\x18\x03 \x01(\x0b\x32 .xray.common.serial.TypedMessage\"\x10\n\x0eOutboundConfig\"\x95\x02\n\x0cSenderConfig\x12(\n\x03via\x18\x01 \x01(\x0b\x32\x1b.xray.common.net.IPOrDomain\x12>\n\x0fstream_settings\x18\x02 \x01(\x0b\x32%.xray.transport.internet.StreamConfig\x12\x41\n\x12multiplex_settings\x18\x04 \x01(\x0b\x32%.xray.app.proxyman.MultiplexingConfig\x12\x10\n\x08via_cidr\x18\x05 \x01(\t\x12@\n\x0ftarget_strategy\x18\x06 \x01(\x0e\x32\'.xray.transport.internet.DomainStrategyJ\x04\x08\x03\x10\x04\"l\n\x12MultiplexingConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x13\n\x0b\x63oncurrency\x18\x02 \x01(\x05\x12\x17\n\x0fxudpConcurrency\x18\x03 \x01(\x05\x12\x17\n\x0fxudpProxyUDP443\x18\x04 \x01(\tBU\n\x15\x63om.xray.app.proxymanP\x01Z&github.com/xtls/xray-core/app/proxyman\xaa\x02\x11Xray.App.Proxymanb\x06proto3')
|
|
33
|
+
|
|
34
|
+
_globals = globals()
|
|
35
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
36
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.proxyman.config_pb2', _globals)
|
|
37
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
38
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
39
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\025com.xray.app.proxymanP\001Z&github.com/xtls/xray-core/app/proxyman\252\002\021Xray.App.Proxyman'
|
|
40
|
+
_globals['_INBOUNDCONFIG']._serialized_start=194
|
|
41
|
+
_globals['_INBOUNDCONFIG']._serialized_end=209
|
|
42
|
+
_globals['_SNIFFINGCONFIG']._serialized_start=212
|
|
43
|
+
_globals['_SNIFFINGCONFIG']._serialized_end=428
|
|
44
|
+
_globals['_RECEIVERCONFIG']._serialized_start=431
|
|
45
|
+
_globals['_RECEIVERCONFIG']._serialized_end=708
|
|
46
|
+
_globals['_INBOUNDHANDLERCONFIG']._serialized_start=711
|
|
47
|
+
_globals['_INBOUNDHANDLERCONFIG']._serialized_end=865
|
|
48
|
+
_globals['_OUTBOUNDCONFIG']._serialized_start=867
|
|
49
|
+
_globals['_OUTBOUNDCONFIG']._serialized_end=883
|
|
50
|
+
_globals['_SENDERCONFIG']._serialized_start=886
|
|
51
|
+
_globals['_SENDERCONFIG']._serialized_end=1163
|
|
52
|
+
_globals['_MULTIPLEXINGCONFIG']._serialized_start=1165
|
|
53
|
+
_globals['_MULTIPLEXINGCONFIG']._serialized_end=1273
|
|
54
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.84.1'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ ' but the generated code in app/proxyman/config_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
File without changes
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: app/reverse/config.proto
|
|
5
|
+
# Protobuf Python Version: 7.35.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
7,
|
|
15
|
+
35,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'app/reverse/config.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18\x61pp/reverse/config.proto\x12\x10xray.app.reverse\"i\n\x07\x43ontrol\x12.\n\x05state\x18\x01 \x01(\x0e\x32\x1f.xray.app.reverse.Control.State\x12\x0e\n\x06random\x18\x63 \x01(\x0c\"\x1e\n\x05State\x12\n\n\x06\x41\x43TIVE\x10\x00\x12\t\n\x05\x44RAIN\x10\x01\"+\n\x0c\x42ridgeConfig\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0e\n\x06\x64omain\x18\x02 \x01(\t\"+\n\x0cPortalConfig\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x0e\n\x06\x64omain\x18\x02 \x01(\t\"v\n\x06\x43onfig\x12\x35\n\rbridge_config\x18\x01 \x03(\x0b\x32\x1e.xray.app.reverse.BridgeConfig\x12\x35\n\rportal_config\x18\x02 \x03(\x0b\x32\x1e.xray.app.reverse.PortalConfigBV\n\x16\x63om.xray.proxy.reverseP\x01Z%github.com/xtls/xray-core/app/reverse\xaa\x02\x12Xray.Proxy.Reverseb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.reverse.config_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\026com.xray.proxy.reverseP\001Z%github.com/xtls/xray-core/app/reverse\252\002\022Xray.Proxy.Reverse'
|
|
35
|
+
_globals['_CONTROL']._serialized_start=46
|
|
36
|
+
_globals['_CONTROL']._serialized_end=151
|
|
37
|
+
_globals['_CONTROL_STATE']._serialized_start=121
|
|
38
|
+
_globals['_CONTROL_STATE']._serialized_end=151
|
|
39
|
+
_globals['_BRIDGECONFIG']._serialized_start=153
|
|
40
|
+
_globals['_BRIDGECONFIG']._serialized_end=196
|
|
41
|
+
_globals['_PORTALCONFIG']._serialized_start=198
|
|
42
|
+
_globals['_PORTALCONFIG']._serialized_end=241
|
|
43
|
+
_globals['_CONFIG']._serialized_start=243
|
|
44
|
+
_globals['_CONFIG']._serialized_end=361
|
|
45
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.84.1'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ ' but the generated code in app/reverse/config_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
File without changes
|
|
File without changes
|