python-xray-api 1.8.12__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-1.8.12.dist-info/METADATA +27 -0
- python_xray_api-1.8.12.dist-info/RECORD +306 -0
- python_xray_api-1.8.12.dist-info/WHEEL +5 -0
- python_xray_api-1.8.12.dist-info/licenses/LICENSE +674 -0
- python_xray_api-1.8.12.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 +60 -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 +70 -0
- xray/app/proxyman/command/command_pb2_grpc.py +312 -0
- xray/app/proxyman/config_pb2.py +65 -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 +73 -0
- xray/app/router/command/command_pb2_grpc.py +312 -0
- xray/app/router/config_pb2.py +78 -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 +53 -0
- xray/app/stats/command/command_pb2_grpc.py +183 -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 +59 -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 +41 -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 +45 -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 +42 -0
- xray/proxy/blackhole/config_pb2_grpc.py +24 -0
- xray/proxy/dns/__init__.py +0 -0
- xray/proxy/dns/config_pb2.py +38 -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 +46 -0
- xray/proxy/freedom/config_pb2_grpc.py +24 -0
- xray/proxy/http/__init__.py +0 -0
- xray/proxy/http/config_pb2.py +50 -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 +38 -0
- xray/proxy/hysteria/config_pb2_grpc.py +24 -0
- xray/proxy/loopback/__init__.py +0 -0
- xray/proxy/loopback/config_pb2.py +37 -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 +49 -0
- xray/proxy/shadowsocks_2022/config_pb2_grpc.py +24 -0
- xray/proxy/socks/__init__.py +0 -0
- xray/proxy/socks/config_pb2.py +53 -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 +37 -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 +41 -0
- xray/proxy/wireguard/config_pb2_grpc.py +24 -0
- xray/transport/__init__.py +0 -0
- xray/transport/global/__init__.py +0 -0
- xray/transport/global/config_pb2.py +40 -0
- xray/transport/global/config_pb2_grpc.py +24 -0
- xray/transport/internet/__init__.py +0 -0
- xray/transport/internet/config_pb2.py +54 -0
- xray/transport/internet/config_pb2_grpc.py +24 -0
- xray/transport/internet/domainsocket/__init__.py +0 -0
- xray/transport/internet/domainsocket/config_pb2.py +37 -0
- xray/transport/internet/domainsocket/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 +45 -0
- xray/transport/internet/finalmask/header/custom/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/header/dns/__init__.py +0 -0
- xray/transport/internet/finalmask/header/dns/config_pb2.py +37 -0
- xray/transport/internet/finalmask/header/dns/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/header/dtls/__init__.py +0 -0
- xray/transport/internet/finalmask/header/dtls/config_pb2.py +37 -0
- xray/transport/internet/finalmask/header/dtls/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/header/srtp/__init__.py +0 -0
- xray/transport/internet/finalmask/header/srtp/config_pb2.py +37 -0
- xray/transport/internet/finalmask/header/srtp/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/header/utp/__init__.py +0 -0
- xray/transport/internet/finalmask/header/utp/config_pb2.py +37 -0
- xray/transport/internet/finalmask/header/utp/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/header/wechat/__init__.py +0 -0
- xray/transport/internet/finalmask/header/wechat/config_pb2.py +37 -0
- xray/transport/internet/finalmask/header/wechat/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/header/wireguard/__init__.py +0 -0
- xray/transport/internet/finalmask/header/wireguard/config_pb2.py +37 -0
- xray/transport/internet/finalmask/header/wireguard/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 +39 -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 +38 -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 +37 -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 +38 -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 +37 -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 +37 -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/dns/__init__.py +0 -0
- xray/transport/internet/headers/dns/config_pb2.py +37 -0
- xray/transport/internet/headers/dns/config_pb2_grpc.py +24 -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/headers/srtp/__init__.py +0 -0
- xray/transport/internet/headers/srtp/config_pb2.py +37 -0
- xray/transport/internet/headers/srtp/config_pb2_grpc.py +24 -0
- xray/transport/internet/headers/tls/__init__.py +0 -0
- xray/transport/internet/headers/tls/config_pb2.py +37 -0
- xray/transport/internet/headers/tls/config_pb2_grpc.py +24 -0
- xray/transport/internet/headers/utp/__init__.py +0 -0
- xray/transport/internet/headers/utp/config_pb2.py +37 -0
- xray/transport/internet/headers/utp/config_pb2_grpc.py +24 -0
- xray/transport/internet/headers/wechat/__init__.py +0 -0
- xray/transport/internet/headers/wechat/config_pb2.py +37 -0
- xray/transport/internet/headers/wechat/config_pb2_grpc.py +24 -0
- xray/transport/internet/headers/wireguard/__init__.py +0 -0
- xray/transport/internet/headers/wireguard/config_pb2.py +37 -0
- xray/transport/internet/headers/wireguard/config_pb2_grpc.py +24 -0
- xray/transport/internet/http/__init__.py +0 -0
- xray/transport/internet/http/config_pb2.py +38 -0
- xray/transport/internet/http/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 +37 -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 +54 -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 +41 -0
- xray/transport/internet/masque/config_pb2_grpc.py +24 -0
- xray/transport/internet/quic/__init__.py +0 -0
- xray/transport/internet/quic/config_pb2.py +39 -0
- xray/transport/internet/quic/config_pb2_grpc.py +24 -0
- xray/transport/internet/reality/__init__.py +0 -0
- xray/transport/internet/reality/config_pb2.py +37 -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 +41 -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 +43 -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 +37 -0
- xray/transport/internet/xdrive/config_pb2_grpc.py +24 -0
|
@@ -0,0 +1,312 @@
|
|
|
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.0'
|
|
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.AddOutbound = channel.unary_unary(
|
|
53
|
+
'/xray.app.proxyman.command.HandlerService/AddOutbound',
|
|
54
|
+
request_serializer=app_dot_proxyman_dot_command_dot_command__pb2.AddOutboundRequest.SerializeToString,
|
|
55
|
+
response_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.AddOutboundResponse.FromString,
|
|
56
|
+
_registered_method=True)
|
|
57
|
+
self.RemoveOutbound = channel.unary_unary(
|
|
58
|
+
'/xray.app.proxyman.command.HandlerService/RemoveOutbound',
|
|
59
|
+
request_serializer=app_dot_proxyman_dot_command_dot_command__pb2.RemoveOutboundRequest.SerializeToString,
|
|
60
|
+
response_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.RemoveOutboundResponse.FromString,
|
|
61
|
+
_registered_method=True)
|
|
62
|
+
self.AlterOutbound = channel.unary_unary(
|
|
63
|
+
'/xray.app.proxyman.command.HandlerService/AlterOutbound',
|
|
64
|
+
request_serializer=app_dot_proxyman_dot_command_dot_command__pb2.AlterOutboundRequest.SerializeToString,
|
|
65
|
+
response_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.AlterOutboundResponse.FromString,
|
|
66
|
+
_registered_method=True)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class HandlerServiceServicer:
|
|
70
|
+
"""Missing associated documentation comment in .proto file."""
|
|
71
|
+
|
|
72
|
+
def AddInbound(self, request, context):
|
|
73
|
+
"""Missing associated documentation comment in .proto file."""
|
|
74
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
75
|
+
context.set_details('Method not implemented!')
|
|
76
|
+
raise NotImplementedError('Method not implemented!')
|
|
77
|
+
|
|
78
|
+
def RemoveInbound(self, request, context):
|
|
79
|
+
"""Missing associated documentation comment in .proto file."""
|
|
80
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
81
|
+
context.set_details('Method not implemented!')
|
|
82
|
+
raise NotImplementedError('Method not implemented!')
|
|
83
|
+
|
|
84
|
+
def AlterInbound(self, request, context):
|
|
85
|
+
"""Missing associated documentation comment in .proto file."""
|
|
86
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
87
|
+
context.set_details('Method not implemented!')
|
|
88
|
+
raise NotImplementedError('Method not implemented!')
|
|
89
|
+
|
|
90
|
+
def AddOutbound(self, request, context):
|
|
91
|
+
"""Missing associated documentation comment in .proto file."""
|
|
92
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
93
|
+
context.set_details('Method not implemented!')
|
|
94
|
+
raise NotImplementedError('Method not implemented!')
|
|
95
|
+
|
|
96
|
+
def RemoveOutbound(self, request, context):
|
|
97
|
+
"""Missing associated documentation comment in .proto file."""
|
|
98
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
99
|
+
context.set_details('Method not implemented!')
|
|
100
|
+
raise NotImplementedError('Method not implemented!')
|
|
101
|
+
|
|
102
|
+
def AlterOutbound(self, request, context):
|
|
103
|
+
"""Missing associated documentation comment in .proto file."""
|
|
104
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
105
|
+
context.set_details('Method not implemented!')
|
|
106
|
+
raise NotImplementedError('Method not implemented!')
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def add_HandlerServiceServicer_to_server(servicer, server):
|
|
110
|
+
rpc_method_handlers = {
|
|
111
|
+
'AddInbound': grpc.unary_unary_rpc_method_handler(
|
|
112
|
+
servicer.AddInbound,
|
|
113
|
+
request_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.AddInboundRequest.FromString,
|
|
114
|
+
response_serializer=app_dot_proxyman_dot_command_dot_command__pb2.AddInboundResponse.SerializeToString,
|
|
115
|
+
),
|
|
116
|
+
'RemoveInbound': grpc.unary_unary_rpc_method_handler(
|
|
117
|
+
servicer.RemoveInbound,
|
|
118
|
+
request_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.RemoveInboundRequest.FromString,
|
|
119
|
+
response_serializer=app_dot_proxyman_dot_command_dot_command__pb2.RemoveInboundResponse.SerializeToString,
|
|
120
|
+
),
|
|
121
|
+
'AlterInbound': grpc.unary_unary_rpc_method_handler(
|
|
122
|
+
servicer.AlterInbound,
|
|
123
|
+
request_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.AlterInboundRequest.FromString,
|
|
124
|
+
response_serializer=app_dot_proxyman_dot_command_dot_command__pb2.AlterInboundResponse.SerializeToString,
|
|
125
|
+
),
|
|
126
|
+
'AddOutbound': grpc.unary_unary_rpc_method_handler(
|
|
127
|
+
servicer.AddOutbound,
|
|
128
|
+
request_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.AddOutboundRequest.FromString,
|
|
129
|
+
response_serializer=app_dot_proxyman_dot_command_dot_command__pb2.AddOutboundResponse.SerializeToString,
|
|
130
|
+
),
|
|
131
|
+
'RemoveOutbound': grpc.unary_unary_rpc_method_handler(
|
|
132
|
+
servicer.RemoveOutbound,
|
|
133
|
+
request_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.RemoveOutboundRequest.FromString,
|
|
134
|
+
response_serializer=app_dot_proxyman_dot_command_dot_command__pb2.RemoveOutboundResponse.SerializeToString,
|
|
135
|
+
),
|
|
136
|
+
'AlterOutbound': grpc.unary_unary_rpc_method_handler(
|
|
137
|
+
servicer.AlterOutbound,
|
|
138
|
+
request_deserializer=app_dot_proxyman_dot_command_dot_command__pb2.AlterOutboundRequest.FromString,
|
|
139
|
+
response_serializer=app_dot_proxyman_dot_command_dot_command__pb2.AlterOutboundResponse.SerializeToString,
|
|
140
|
+
),
|
|
141
|
+
}
|
|
142
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
143
|
+
'xray.app.proxyman.command.HandlerService', rpc_method_handlers)
|
|
144
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
145
|
+
server.add_registered_method_handlers('xray.app.proxyman.command.HandlerService', rpc_method_handlers)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
# This class is part of an EXPERIMENTAL API.
|
|
149
|
+
class HandlerService:
|
|
150
|
+
"""Missing associated documentation comment in .proto file."""
|
|
151
|
+
|
|
152
|
+
@staticmethod
|
|
153
|
+
def AddInbound(request,
|
|
154
|
+
target,
|
|
155
|
+
options=(),
|
|
156
|
+
channel_credentials=None,
|
|
157
|
+
call_credentials=None,
|
|
158
|
+
insecure=False,
|
|
159
|
+
compression=None,
|
|
160
|
+
wait_for_ready=None,
|
|
161
|
+
timeout=None,
|
|
162
|
+
metadata=None):
|
|
163
|
+
return grpc.experimental.unary_unary(
|
|
164
|
+
request,
|
|
165
|
+
target,
|
|
166
|
+
'/xray.app.proxyman.command.HandlerService/AddInbound',
|
|
167
|
+
app_dot_proxyman_dot_command_dot_command__pb2.AddInboundRequest.SerializeToString,
|
|
168
|
+
app_dot_proxyman_dot_command_dot_command__pb2.AddInboundResponse.FromString,
|
|
169
|
+
options,
|
|
170
|
+
channel_credentials,
|
|
171
|
+
insecure,
|
|
172
|
+
call_credentials,
|
|
173
|
+
compression,
|
|
174
|
+
wait_for_ready,
|
|
175
|
+
timeout,
|
|
176
|
+
metadata,
|
|
177
|
+
_registered_method=True)
|
|
178
|
+
|
|
179
|
+
@staticmethod
|
|
180
|
+
def RemoveInbound(request,
|
|
181
|
+
target,
|
|
182
|
+
options=(),
|
|
183
|
+
channel_credentials=None,
|
|
184
|
+
call_credentials=None,
|
|
185
|
+
insecure=False,
|
|
186
|
+
compression=None,
|
|
187
|
+
wait_for_ready=None,
|
|
188
|
+
timeout=None,
|
|
189
|
+
metadata=None):
|
|
190
|
+
return grpc.experimental.unary_unary(
|
|
191
|
+
request,
|
|
192
|
+
target,
|
|
193
|
+
'/xray.app.proxyman.command.HandlerService/RemoveInbound',
|
|
194
|
+
app_dot_proxyman_dot_command_dot_command__pb2.RemoveInboundRequest.SerializeToString,
|
|
195
|
+
app_dot_proxyman_dot_command_dot_command__pb2.RemoveInboundResponse.FromString,
|
|
196
|
+
options,
|
|
197
|
+
channel_credentials,
|
|
198
|
+
insecure,
|
|
199
|
+
call_credentials,
|
|
200
|
+
compression,
|
|
201
|
+
wait_for_ready,
|
|
202
|
+
timeout,
|
|
203
|
+
metadata,
|
|
204
|
+
_registered_method=True)
|
|
205
|
+
|
|
206
|
+
@staticmethod
|
|
207
|
+
def AlterInbound(request,
|
|
208
|
+
target,
|
|
209
|
+
options=(),
|
|
210
|
+
channel_credentials=None,
|
|
211
|
+
call_credentials=None,
|
|
212
|
+
insecure=False,
|
|
213
|
+
compression=None,
|
|
214
|
+
wait_for_ready=None,
|
|
215
|
+
timeout=None,
|
|
216
|
+
metadata=None):
|
|
217
|
+
return grpc.experimental.unary_unary(
|
|
218
|
+
request,
|
|
219
|
+
target,
|
|
220
|
+
'/xray.app.proxyman.command.HandlerService/AlterInbound',
|
|
221
|
+
app_dot_proxyman_dot_command_dot_command__pb2.AlterInboundRequest.SerializeToString,
|
|
222
|
+
app_dot_proxyman_dot_command_dot_command__pb2.AlterInboundResponse.FromString,
|
|
223
|
+
options,
|
|
224
|
+
channel_credentials,
|
|
225
|
+
insecure,
|
|
226
|
+
call_credentials,
|
|
227
|
+
compression,
|
|
228
|
+
wait_for_ready,
|
|
229
|
+
timeout,
|
|
230
|
+
metadata,
|
|
231
|
+
_registered_method=True)
|
|
232
|
+
|
|
233
|
+
@staticmethod
|
|
234
|
+
def AddOutbound(request,
|
|
235
|
+
target,
|
|
236
|
+
options=(),
|
|
237
|
+
channel_credentials=None,
|
|
238
|
+
call_credentials=None,
|
|
239
|
+
insecure=False,
|
|
240
|
+
compression=None,
|
|
241
|
+
wait_for_ready=None,
|
|
242
|
+
timeout=None,
|
|
243
|
+
metadata=None):
|
|
244
|
+
return grpc.experimental.unary_unary(
|
|
245
|
+
request,
|
|
246
|
+
target,
|
|
247
|
+
'/xray.app.proxyman.command.HandlerService/AddOutbound',
|
|
248
|
+
app_dot_proxyman_dot_command_dot_command__pb2.AddOutboundRequest.SerializeToString,
|
|
249
|
+
app_dot_proxyman_dot_command_dot_command__pb2.AddOutboundResponse.FromString,
|
|
250
|
+
options,
|
|
251
|
+
channel_credentials,
|
|
252
|
+
insecure,
|
|
253
|
+
call_credentials,
|
|
254
|
+
compression,
|
|
255
|
+
wait_for_ready,
|
|
256
|
+
timeout,
|
|
257
|
+
metadata,
|
|
258
|
+
_registered_method=True)
|
|
259
|
+
|
|
260
|
+
@staticmethod
|
|
261
|
+
def RemoveOutbound(request,
|
|
262
|
+
target,
|
|
263
|
+
options=(),
|
|
264
|
+
channel_credentials=None,
|
|
265
|
+
call_credentials=None,
|
|
266
|
+
insecure=False,
|
|
267
|
+
compression=None,
|
|
268
|
+
wait_for_ready=None,
|
|
269
|
+
timeout=None,
|
|
270
|
+
metadata=None):
|
|
271
|
+
return grpc.experimental.unary_unary(
|
|
272
|
+
request,
|
|
273
|
+
target,
|
|
274
|
+
'/xray.app.proxyman.command.HandlerService/RemoveOutbound',
|
|
275
|
+
app_dot_proxyman_dot_command_dot_command__pb2.RemoveOutboundRequest.SerializeToString,
|
|
276
|
+
app_dot_proxyman_dot_command_dot_command__pb2.RemoveOutboundResponse.FromString,
|
|
277
|
+
options,
|
|
278
|
+
channel_credentials,
|
|
279
|
+
insecure,
|
|
280
|
+
call_credentials,
|
|
281
|
+
compression,
|
|
282
|
+
wait_for_ready,
|
|
283
|
+
timeout,
|
|
284
|
+
metadata,
|
|
285
|
+
_registered_method=True)
|
|
286
|
+
|
|
287
|
+
@staticmethod
|
|
288
|
+
def AlterOutbound(request,
|
|
289
|
+
target,
|
|
290
|
+
options=(),
|
|
291
|
+
channel_credentials=None,
|
|
292
|
+
call_credentials=None,
|
|
293
|
+
insecure=False,
|
|
294
|
+
compression=None,
|
|
295
|
+
wait_for_ready=None,
|
|
296
|
+
timeout=None,
|
|
297
|
+
metadata=None):
|
|
298
|
+
return grpc.experimental.unary_unary(
|
|
299
|
+
request,
|
|
300
|
+
target,
|
|
301
|
+
'/xray.app.proxyman.command.HandlerService/AlterOutbound',
|
|
302
|
+
app_dot_proxyman_dot_command_dot_command__pb2.AlterOutboundRequest.SerializeToString,
|
|
303
|
+
app_dot_proxyman_dot_command_dot_command__pb2.AlterOutboundResponse.FromString,
|
|
304
|
+
options,
|
|
305
|
+
channel_credentials,
|
|
306
|
+
insecure,
|
|
307
|
+
call_credentials,
|
|
308
|
+
compression,
|
|
309
|
+
wait_for_ready,
|
|
310
|
+
timeout,
|
|
311
|
+
metadata,
|
|
312
|
+
_registered_method=True)
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
|
|
30
|
+
|
|
31
|
+
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\"\x0f\n\rInboundConfig\"\x84\x03\n\x12\x41llocationStrategy\x12\x38\n\x04type\x18\x01 \x01(\x0e\x32*.xray.app.proxyman.AllocationStrategy.Type\x12X\n\x0b\x63oncurrency\x18\x02 \x01(\x0b\x32\x43.xray.app.proxyman.AllocationStrategy.AllocationStrategyConcurrency\x12P\n\x07refresh\x18\x03 \x01(\x0b\x32?.xray.app.proxyman.AllocationStrategy.AllocationStrategyRefresh\x1a.\n\x1d\x41llocationStrategyConcurrency\x12\r\n\x05value\x18\x01 \x01(\r\x1a*\n\x19\x41llocationStrategyRefresh\x12\r\n\x05value\x18\x01 \x01(\r\",\n\x04Type\x12\n\n\x06\x41lways\x10\x00\x12\n\n\x06Random\x10\x01\x12\x0c\n\x08\x45xternal\x10\x02\"\x84\x01\n\x0eSniffingConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x1c\n\x14\x64\x65stination_override\x18\x02 \x03(\t\x12\x18\n\x10\x64omains_excluded\x18\x03 \x03(\t\x12\x15\n\rmetadata_only\x18\x04 \x01(\x08\x12\x12\n\nroute_only\x18\x05 \x01(\x08\"\x99\x03\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\x42\n\x13\x61llocation_strategy\x18\x03 \x01(\x0b\x32%.xray.app.proxyman.AllocationStrategy\x12>\n\x0fstream_settings\x18\x04 \x01(\x0b\x32%.xray.transport.internet.StreamConfig\x12$\n\x1creceive_original_destination\x18\x05 \x01(\x08\x12>\n\x0f\x64omain_override\x18\x07 \x03(\x0e\x32!.xray.app.proxyman.KnownProtocolsB\x02\x18\x01\x12<\n\x11sniffing_settings\x18\x08 \x01(\x0b\x32!.xray.app.proxyman.SniffingConfigJ\x04\x08\x06\x10\x07\"\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\"\x8b\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<\n\x0eproxy_settings\x18\x03 \x01(\x0b\x32$.xray.transport.internet.ProxyConfig\x12\x41\n\x12multiplex_settings\x18\x04 \x01(\x0b\x32%.xray.app.proxyman.MultiplexingConfig\x12\x10\n\x08via_cidr\x18\x05 \x01(\t\"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(\t*#\n\x0eKnownProtocols\x12\x08\n\x04HTTP\x10\x00\x12\x07\n\x03TLS\x10\x01\x42U\n\x15\x63om.xray.app.proxymanP\x01Z&github.com/xtls/xray-core/app/proxyman\xaa\x02\x11Xray.App.Proxymanb\x06proto3')
|
|
32
|
+
|
|
33
|
+
_globals = globals()
|
|
34
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
35
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.proxyman.config_pb2', _globals)
|
|
36
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
37
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
38
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\025com.xray.app.proxymanP\001Z&github.com/xtls/xray-core/app/proxyman\252\002\021Xray.App.Proxyman'
|
|
39
|
+
_globals['_RECEIVERCONFIG'].fields_by_name['domain_override']._loaded_options = None
|
|
40
|
+
_globals['_RECEIVERCONFIG'].fields_by_name['domain_override']._serialized_options = b'\030\001'
|
|
41
|
+
_globals['_KNOWNPROTOCOLS']._serialized_start=1675
|
|
42
|
+
_globals['_KNOWNPROTOCOLS']._serialized_end=1710
|
|
43
|
+
_globals['_INBOUNDCONFIG']._serialized_start=165
|
|
44
|
+
_globals['_INBOUNDCONFIG']._serialized_end=180
|
|
45
|
+
_globals['_ALLOCATIONSTRATEGY']._serialized_start=183
|
|
46
|
+
_globals['_ALLOCATIONSTRATEGY']._serialized_end=571
|
|
47
|
+
_globals['_ALLOCATIONSTRATEGY_ALLOCATIONSTRATEGYCONCURRENCY']._serialized_start=435
|
|
48
|
+
_globals['_ALLOCATIONSTRATEGY_ALLOCATIONSTRATEGYCONCURRENCY']._serialized_end=481
|
|
49
|
+
_globals['_ALLOCATIONSTRATEGY_ALLOCATIONSTRATEGYREFRESH']._serialized_start=483
|
|
50
|
+
_globals['_ALLOCATIONSTRATEGY_ALLOCATIONSTRATEGYREFRESH']._serialized_end=525
|
|
51
|
+
_globals['_ALLOCATIONSTRATEGY_TYPE']._serialized_start=527
|
|
52
|
+
_globals['_ALLOCATIONSTRATEGY_TYPE']._serialized_end=571
|
|
53
|
+
_globals['_SNIFFINGCONFIG']._serialized_start=574
|
|
54
|
+
_globals['_SNIFFINGCONFIG']._serialized_end=706
|
|
55
|
+
_globals['_RECEIVERCONFIG']._serialized_start=709
|
|
56
|
+
_globals['_RECEIVERCONFIG']._serialized_end=1118
|
|
57
|
+
_globals['_INBOUNDHANDLERCONFIG']._serialized_start=1121
|
|
58
|
+
_globals['_INBOUNDHANDLERCONFIG']._serialized_end=1275
|
|
59
|
+
_globals['_OUTBOUNDCONFIG']._serialized_start=1277
|
|
60
|
+
_globals['_OUTBOUNDCONFIG']._serialized_end=1293
|
|
61
|
+
_globals['_SENDERCONFIG']._serialized_start=1296
|
|
62
|
+
_globals['_SENDERCONFIG']._serialized_end=1563
|
|
63
|
+
_globals['_MULTIPLEXINGCONFIG']._serialized_start=1565
|
|
64
|
+
_globals['_MULTIPLEXINGCONFIG']._serialized_end=1673
|
|
65
|
+
# @@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.0'
|
|
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.0'
|
|
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
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: app/router/command/command.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/router/command/command.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from xray.common.net import network_pb2 as common_dot_net_dot_network__pb2
|
|
26
|
+
from xray.common.serial import typed_message_pb2 as common_dot_serial_dot_typed__message__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n app/router/command/command.proto\x12\x17xray.app.router.command\x1a\x18\x63ommon/net/network.proto\x1a!common/serial/typed_message.proto\"\x83\x03\n\x0eRoutingContext\x12\x12\n\nInboundTag\x18\x01 \x01(\t\x12)\n\x07Network\x18\x02 \x01(\x0e\x32\x18.xray.common.net.Network\x12\x11\n\tSourceIPs\x18\x03 \x03(\x0c\x12\x11\n\tTargetIPs\x18\x04 \x03(\x0c\x12\x12\n\nSourcePort\x18\x05 \x01(\r\x12\x12\n\nTargetPort\x18\x06 \x01(\r\x12\x14\n\x0cTargetDomain\x18\x07 \x01(\t\x12\x10\n\x08Protocol\x18\x08 \x01(\t\x12\x0c\n\x04User\x18\t \x01(\t\x12K\n\nAttributes\x18\n \x03(\x0b\x32\x37.xray.app.router.command.RoutingContext.AttributesEntry\x12\x19\n\x11OutboundGroupTags\x18\x0b \x03(\t\x12\x13\n\x0bOutboundTag\x18\x0c \x01(\t\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"6\n\x1cSubscribeRoutingStatsRequest\x12\x16\n\x0e\x46ieldSelectors\x18\x01 \x03(\t\"\x82\x01\n\x10TestRouteRequest\x12?\n\x0eRoutingContext\x18\x01 \x01(\x0b\x32\'.xray.app.router.command.RoutingContext\x12\x16\n\x0e\x46ieldSelectors\x18\x02 \x03(\t\x12\x15\n\rPublishResult\x18\x03 \x01(\x08\"\"\n\x13PrincipleTargetInfo\x12\x0b\n\x03tag\x18\x01 \x03(\t\"\x1e\n\x0cOverrideInfo\x12\x0e\n\x06target\x18\x02 \x01(\t\"\x8e\x01\n\x0b\x42\x61lancerMsg\x12\x37\n\x08override\x18\x05 \x01(\x0b\x32%.xray.app.router.command.OverrideInfo\x12\x46\n\x10principle_target\x18\x06 \x01(\x0b\x32,.xray.app.router.command.PrincipleTargetInfo\"%\n\x16GetBalancerInfoRequest\x12\x0b\n\x03tag\x18\x01 \x01(\t\"Q\n\x17GetBalancerInfoResponse\x12\x36\n\x08\x62\x61lancer\x18\x01 \x01(\x0b\x32$.xray.app.router.command.BalancerMsg\"D\n\x1dOverrideBalancerTargetRequest\x12\x13\n\x0b\x62\x61lancerTag\x18\x01 \x01(\t\x12\x0e\n\x06target\x18\x02 \x01(\t\" \n\x1eOverrideBalancerTargetResponse\"X\n\x0e\x41\x64\x64RuleRequest\x12\x30\n\x06\x63onfig\x18\x01 \x01(\x0b\x32 .xray.common.serial.TypedMessage\x12\x14\n\x0cshouldAppend\x18\x02 \x01(\x08\"\x11\n\x0f\x41\x64\x64RuleResponse\"$\n\x11RemoveRuleRequest\x12\x0f\n\x07ruleTag\x18\x01 \x01(\t\"\x14\n\x12RemoveRuleResponse\"\x08\n\x06\x43onfig2\xbf\x05\n\x0eRoutingService\x12{\n\x15SubscribeRoutingStats\x12\x35.xray.app.router.command.SubscribeRoutingStatsRequest\x1a\'.xray.app.router.command.RoutingContext\"\x00\x30\x01\x12\x61\n\tTestRoute\x12).xray.app.router.command.TestRouteRequest\x1a\'.xray.app.router.command.RoutingContext\"\x00\x12v\n\x0fGetBalancerInfo\x12/.xray.app.router.command.GetBalancerInfoRequest\x1a\x30.xray.app.router.command.GetBalancerInfoResponse\"\x00\x12\x8b\x01\n\x16OverrideBalancerTarget\x12\x36.xray.app.router.command.OverrideBalancerTargetRequest\x1a\x37.xray.app.router.command.OverrideBalancerTargetResponse\"\x00\x12^\n\x07\x41\x64\x64Rule\x12\'.xray.app.router.command.AddRuleRequest\x1a(.xray.app.router.command.AddRuleResponse\"\x00\x12g\n\nRemoveRule\x12*.xray.app.router.command.RemoveRuleRequest\x1a+.xray.app.router.command.RemoveRuleResponse\"\x00\x42g\n\x1b\x63om.xray.app.router.commandP\x01Z,github.com/xtls/xray-core/app/router/command\xaa\x02\x17Xray.App.Router.Commandb\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.router.command.command_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\033com.xray.app.router.commandP\001Z,github.com/xtls/xray-core/app/router/command\252\002\027Xray.App.Router.Command'
|
|
37
|
+
_globals['_ROUTINGCONTEXT_ATTRIBUTESENTRY']._loaded_options = None
|
|
38
|
+
_globals['_ROUTINGCONTEXT_ATTRIBUTESENTRY']._serialized_options = b'8\001'
|
|
39
|
+
_globals['_ROUTINGCONTEXT']._serialized_start=123
|
|
40
|
+
_globals['_ROUTINGCONTEXT']._serialized_end=510
|
|
41
|
+
_globals['_ROUTINGCONTEXT_ATTRIBUTESENTRY']._serialized_start=461
|
|
42
|
+
_globals['_ROUTINGCONTEXT_ATTRIBUTESENTRY']._serialized_end=510
|
|
43
|
+
_globals['_SUBSCRIBEROUTINGSTATSREQUEST']._serialized_start=512
|
|
44
|
+
_globals['_SUBSCRIBEROUTINGSTATSREQUEST']._serialized_end=566
|
|
45
|
+
_globals['_TESTROUTEREQUEST']._serialized_start=569
|
|
46
|
+
_globals['_TESTROUTEREQUEST']._serialized_end=699
|
|
47
|
+
_globals['_PRINCIPLETARGETINFO']._serialized_start=701
|
|
48
|
+
_globals['_PRINCIPLETARGETINFO']._serialized_end=735
|
|
49
|
+
_globals['_OVERRIDEINFO']._serialized_start=737
|
|
50
|
+
_globals['_OVERRIDEINFO']._serialized_end=767
|
|
51
|
+
_globals['_BALANCERMSG']._serialized_start=770
|
|
52
|
+
_globals['_BALANCERMSG']._serialized_end=912
|
|
53
|
+
_globals['_GETBALANCERINFOREQUEST']._serialized_start=914
|
|
54
|
+
_globals['_GETBALANCERINFOREQUEST']._serialized_end=951
|
|
55
|
+
_globals['_GETBALANCERINFORESPONSE']._serialized_start=953
|
|
56
|
+
_globals['_GETBALANCERINFORESPONSE']._serialized_end=1034
|
|
57
|
+
_globals['_OVERRIDEBALANCERTARGETREQUEST']._serialized_start=1036
|
|
58
|
+
_globals['_OVERRIDEBALANCERTARGETREQUEST']._serialized_end=1104
|
|
59
|
+
_globals['_OVERRIDEBALANCERTARGETRESPONSE']._serialized_start=1106
|
|
60
|
+
_globals['_OVERRIDEBALANCERTARGETRESPONSE']._serialized_end=1138
|
|
61
|
+
_globals['_ADDRULEREQUEST']._serialized_start=1140
|
|
62
|
+
_globals['_ADDRULEREQUEST']._serialized_end=1228
|
|
63
|
+
_globals['_ADDRULERESPONSE']._serialized_start=1230
|
|
64
|
+
_globals['_ADDRULERESPONSE']._serialized_end=1247
|
|
65
|
+
_globals['_REMOVERULEREQUEST']._serialized_start=1249
|
|
66
|
+
_globals['_REMOVERULEREQUEST']._serialized_end=1285
|
|
67
|
+
_globals['_REMOVERULERESPONSE']._serialized_start=1287
|
|
68
|
+
_globals['_REMOVERULERESPONSE']._serialized_end=1307
|
|
69
|
+
_globals['_CONFIG']._serialized_start=1309
|
|
70
|
+
_globals['_CONFIG']._serialized_end=1317
|
|
71
|
+
_globals['_ROUTINGSERVICE']._serialized_start=1320
|
|
72
|
+
_globals['_ROUTINGSERVICE']._serialized_end=2023
|
|
73
|
+
# @@protoc_insertion_point(module_scope)
|