python-xray-api 26.9.30__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.9.30.dist-info/METADATA +27 -0
- python_xray_api-26.9.30.dist-info/RECORD +258 -0
- python_xray_api-26.9.30.dist-info/WHEEL +5 -0
- python_xray_api-26.9.30.dist-info/licenses/LICENSE +674 -0
- python_xray_api-26.9.30.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 +41 -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 +37 -0
- xray/transport/internet/xdrive/config_pb2_grpc.py +24 -0
|
@@ -0,0 +1,355 @@
|
|
|
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.stats.command import command_pb2 as app_dot_stats_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/stats/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 StatsServiceStub:
|
|
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.GetStats = channel.unary_unary(
|
|
38
|
+
'/xray.app.stats.command.StatsService/GetStats',
|
|
39
|
+
request_serializer=app_dot_stats_dot_command_dot_command__pb2.GetStatsRequest.SerializeToString,
|
|
40
|
+
response_deserializer=app_dot_stats_dot_command_dot_command__pb2.GetStatsResponse.FromString,
|
|
41
|
+
_registered_method=True)
|
|
42
|
+
self.GetStatsOnline = channel.unary_unary(
|
|
43
|
+
'/xray.app.stats.command.StatsService/GetStatsOnline',
|
|
44
|
+
request_serializer=app_dot_stats_dot_command_dot_command__pb2.GetStatsRequest.SerializeToString,
|
|
45
|
+
response_deserializer=app_dot_stats_dot_command_dot_command__pb2.GetStatsResponse.FromString,
|
|
46
|
+
_registered_method=True)
|
|
47
|
+
self.QueryStats = channel.unary_unary(
|
|
48
|
+
'/xray.app.stats.command.StatsService/QueryStats',
|
|
49
|
+
request_serializer=app_dot_stats_dot_command_dot_command__pb2.QueryStatsRequest.SerializeToString,
|
|
50
|
+
response_deserializer=app_dot_stats_dot_command_dot_command__pb2.QueryStatsResponse.FromString,
|
|
51
|
+
_registered_method=True)
|
|
52
|
+
self.GetSysStats = channel.unary_unary(
|
|
53
|
+
'/xray.app.stats.command.StatsService/GetSysStats',
|
|
54
|
+
request_serializer=app_dot_stats_dot_command_dot_command__pb2.SysStatsRequest.SerializeToString,
|
|
55
|
+
response_deserializer=app_dot_stats_dot_command_dot_command__pb2.SysStatsResponse.FromString,
|
|
56
|
+
_registered_method=True)
|
|
57
|
+
self.GetStatsOnlineIpList = channel.unary_unary(
|
|
58
|
+
'/xray.app.stats.command.StatsService/GetStatsOnlineIpList',
|
|
59
|
+
request_serializer=app_dot_stats_dot_command_dot_command__pb2.GetStatsRequest.SerializeToString,
|
|
60
|
+
response_deserializer=app_dot_stats_dot_command_dot_command__pb2.GetStatsOnlineIpListResponse.FromString,
|
|
61
|
+
_registered_method=True)
|
|
62
|
+
self.GetAllOnlineUsers = channel.unary_unary(
|
|
63
|
+
'/xray.app.stats.command.StatsService/GetAllOnlineUsers',
|
|
64
|
+
request_serializer=app_dot_stats_dot_command_dot_command__pb2.GetAllOnlineUsersRequest.SerializeToString,
|
|
65
|
+
response_deserializer=app_dot_stats_dot_command_dot_command__pb2.GetAllOnlineUsersResponse.FromString,
|
|
66
|
+
_registered_method=True)
|
|
67
|
+
self.GetUsersStats = channel.unary_unary(
|
|
68
|
+
'/xray.app.stats.command.StatsService/GetUsersStats',
|
|
69
|
+
request_serializer=app_dot_stats_dot_command_dot_command__pb2.GetUsersStatsRequest.SerializeToString,
|
|
70
|
+
response_deserializer=app_dot_stats_dot_command_dot_command__pb2.GetUsersStatsResponse.FromString,
|
|
71
|
+
_registered_method=True)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class StatsServiceServicer:
|
|
75
|
+
"""Missing associated documentation comment in .proto file."""
|
|
76
|
+
|
|
77
|
+
def GetStats(self, request, context):
|
|
78
|
+
"""Missing associated documentation comment in .proto file."""
|
|
79
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
80
|
+
context.set_details('Method not implemented!')
|
|
81
|
+
raise NotImplementedError('Method not implemented!')
|
|
82
|
+
|
|
83
|
+
def GetStatsOnline(self, request, context):
|
|
84
|
+
"""Missing associated documentation comment in .proto file."""
|
|
85
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
86
|
+
context.set_details('Method not implemented!')
|
|
87
|
+
raise NotImplementedError('Method not implemented!')
|
|
88
|
+
|
|
89
|
+
def QueryStats(self, request, context):
|
|
90
|
+
"""Missing associated documentation comment in .proto file."""
|
|
91
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
92
|
+
context.set_details('Method not implemented!')
|
|
93
|
+
raise NotImplementedError('Method not implemented!')
|
|
94
|
+
|
|
95
|
+
def GetSysStats(self, request, context):
|
|
96
|
+
"""Missing associated documentation comment in .proto file."""
|
|
97
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
98
|
+
context.set_details('Method not implemented!')
|
|
99
|
+
raise NotImplementedError('Method not implemented!')
|
|
100
|
+
|
|
101
|
+
def GetStatsOnlineIpList(self, request, context):
|
|
102
|
+
"""Missing associated documentation comment in .proto file."""
|
|
103
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
104
|
+
context.set_details('Method not implemented!')
|
|
105
|
+
raise NotImplementedError('Method not implemented!')
|
|
106
|
+
|
|
107
|
+
def GetAllOnlineUsers(self, request, context):
|
|
108
|
+
"""Missing associated documentation comment in .proto file."""
|
|
109
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
110
|
+
context.set_details('Method not implemented!')
|
|
111
|
+
raise NotImplementedError('Method not implemented!')
|
|
112
|
+
|
|
113
|
+
def GetUsersStats(self, request, context):
|
|
114
|
+
"""Missing associated documentation comment in .proto file."""
|
|
115
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
116
|
+
context.set_details('Method not implemented!')
|
|
117
|
+
raise NotImplementedError('Method not implemented!')
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def add_StatsServiceServicer_to_server(servicer, server):
|
|
121
|
+
rpc_method_handlers = {
|
|
122
|
+
'GetStats': grpc.unary_unary_rpc_method_handler(
|
|
123
|
+
servicer.GetStats,
|
|
124
|
+
request_deserializer=app_dot_stats_dot_command_dot_command__pb2.GetStatsRequest.FromString,
|
|
125
|
+
response_serializer=app_dot_stats_dot_command_dot_command__pb2.GetStatsResponse.SerializeToString,
|
|
126
|
+
),
|
|
127
|
+
'GetStatsOnline': grpc.unary_unary_rpc_method_handler(
|
|
128
|
+
servicer.GetStatsOnline,
|
|
129
|
+
request_deserializer=app_dot_stats_dot_command_dot_command__pb2.GetStatsRequest.FromString,
|
|
130
|
+
response_serializer=app_dot_stats_dot_command_dot_command__pb2.GetStatsResponse.SerializeToString,
|
|
131
|
+
),
|
|
132
|
+
'QueryStats': grpc.unary_unary_rpc_method_handler(
|
|
133
|
+
servicer.QueryStats,
|
|
134
|
+
request_deserializer=app_dot_stats_dot_command_dot_command__pb2.QueryStatsRequest.FromString,
|
|
135
|
+
response_serializer=app_dot_stats_dot_command_dot_command__pb2.QueryStatsResponse.SerializeToString,
|
|
136
|
+
),
|
|
137
|
+
'GetSysStats': grpc.unary_unary_rpc_method_handler(
|
|
138
|
+
servicer.GetSysStats,
|
|
139
|
+
request_deserializer=app_dot_stats_dot_command_dot_command__pb2.SysStatsRequest.FromString,
|
|
140
|
+
response_serializer=app_dot_stats_dot_command_dot_command__pb2.SysStatsResponse.SerializeToString,
|
|
141
|
+
),
|
|
142
|
+
'GetStatsOnlineIpList': grpc.unary_unary_rpc_method_handler(
|
|
143
|
+
servicer.GetStatsOnlineIpList,
|
|
144
|
+
request_deserializer=app_dot_stats_dot_command_dot_command__pb2.GetStatsRequest.FromString,
|
|
145
|
+
response_serializer=app_dot_stats_dot_command_dot_command__pb2.GetStatsOnlineIpListResponse.SerializeToString,
|
|
146
|
+
),
|
|
147
|
+
'GetAllOnlineUsers': grpc.unary_unary_rpc_method_handler(
|
|
148
|
+
servicer.GetAllOnlineUsers,
|
|
149
|
+
request_deserializer=app_dot_stats_dot_command_dot_command__pb2.GetAllOnlineUsersRequest.FromString,
|
|
150
|
+
response_serializer=app_dot_stats_dot_command_dot_command__pb2.GetAllOnlineUsersResponse.SerializeToString,
|
|
151
|
+
),
|
|
152
|
+
'GetUsersStats': grpc.unary_unary_rpc_method_handler(
|
|
153
|
+
servicer.GetUsersStats,
|
|
154
|
+
request_deserializer=app_dot_stats_dot_command_dot_command__pb2.GetUsersStatsRequest.FromString,
|
|
155
|
+
response_serializer=app_dot_stats_dot_command_dot_command__pb2.GetUsersStatsResponse.SerializeToString,
|
|
156
|
+
),
|
|
157
|
+
}
|
|
158
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
159
|
+
'xray.app.stats.command.StatsService', rpc_method_handlers)
|
|
160
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
161
|
+
server.add_registered_method_handlers('xray.app.stats.command.StatsService', rpc_method_handlers)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
# This class is part of an EXPERIMENTAL API.
|
|
165
|
+
class StatsService:
|
|
166
|
+
"""Missing associated documentation comment in .proto file."""
|
|
167
|
+
|
|
168
|
+
@staticmethod
|
|
169
|
+
def GetStats(request,
|
|
170
|
+
target,
|
|
171
|
+
options=(),
|
|
172
|
+
channel_credentials=None,
|
|
173
|
+
call_credentials=None,
|
|
174
|
+
insecure=False,
|
|
175
|
+
compression=None,
|
|
176
|
+
wait_for_ready=None,
|
|
177
|
+
timeout=None,
|
|
178
|
+
metadata=None):
|
|
179
|
+
return grpc.experimental.unary_unary(
|
|
180
|
+
request,
|
|
181
|
+
target,
|
|
182
|
+
'/xray.app.stats.command.StatsService/GetStats',
|
|
183
|
+
app_dot_stats_dot_command_dot_command__pb2.GetStatsRequest.SerializeToString,
|
|
184
|
+
app_dot_stats_dot_command_dot_command__pb2.GetStatsResponse.FromString,
|
|
185
|
+
options,
|
|
186
|
+
channel_credentials,
|
|
187
|
+
insecure,
|
|
188
|
+
call_credentials,
|
|
189
|
+
compression,
|
|
190
|
+
wait_for_ready,
|
|
191
|
+
timeout,
|
|
192
|
+
metadata,
|
|
193
|
+
_registered_method=True)
|
|
194
|
+
|
|
195
|
+
@staticmethod
|
|
196
|
+
def GetStatsOnline(request,
|
|
197
|
+
target,
|
|
198
|
+
options=(),
|
|
199
|
+
channel_credentials=None,
|
|
200
|
+
call_credentials=None,
|
|
201
|
+
insecure=False,
|
|
202
|
+
compression=None,
|
|
203
|
+
wait_for_ready=None,
|
|
204
|
+
timeout=None,
|
|
205
|
+
metadata=None):
|
|
206
|
+
return grpc.experimental.unary_unary(
|
|
207
|
+
request,
|
|
208
|
+
target,
|
|
209
|
+
'/xray.app.stats.command.StatsService/GetStatsOnline',
|
|
210
|
+
app_dot_stats_dot_command_dot_command__pb2.GetStatsRequest.SerializeToString,
|
|
211
|
+
app_dot_stats_dot_command_dot_command__pb2.GetStatsResponse.FromString,
|
|
212
|
+
options,
|
|
213
|
+
channel_credentials,
|
|
214
|
+
insecure,
|
|
215
|
+
call_credentials,
|
|
216
|
+
compression,
|
|
217
|
+
wait_for_ready,
|
|
218
|
+
timeout,
|
|
219
|
+
metadata,
|
|
220
|
+
_registered_method=True)
|
|
221
|
+
|
|
222
|
+
@staticmethod
|
|
223
|
+
def QueryStats(request,
|
|
224
|
+
target,
|
|
225
|
+
options=(),
|
|
226
|
+
channel_credentials=None,
|
|
227
|
+
call_credentials=None,
|
|
228
|
+
insecure=False,
|
|
229
|
+
compression=None,
|
|
230
|
+
wait_for_ready=None,
|
|
231
|
+
timeout=None,
|
|
232
|
+
metadata=None):
|
|
233
|
+
return grpc.experimental.unary_unary(
|
|
234
|
+
request,
|
|
235
|
+
target,
|
|
236
|
+
'/xray.app.stats.command.StatsService/QueryStats',
|
|
237
|
+
app_dot_stats_dot_command_dot_command__pb2.QueryStatsRequest.SerializeToString,
|
|
238
|
+
app_dot_stats_dot_command_dot_command__pb2.QueryStatsResponse.FromString,
|
|
239
|
+
options,
|
|
240
|
+
channel_credentials,
|
|
241
|
+
insecure,
|
|
242
|
+
call_credentials,
|
|
243
|
+
compression,
|
|
244
|
+
wait_for_ready,
|
|
245
|
+
timeout,
|
|
246
|
+
metadata,
|
|
247
|
+
_registered_method=True)
|
|
248
|
+
|
|
249
|
+
@staticmethod
|
|
250
|
+
def GetSysStats(request,
|
|
251
|
+
target,
|
|
252
|
+
options=(),
|
|
253
|
+
channel_credentials=None,
|
|
254
|
+
call_credentials=None,
|
|
255
|
+
insecure=False,
|
|
256
|
+
compression=None,
|
|
257
|
+
wait_for_ready=None,
|
|
258
|
+
timeout=None,
|
|
259
|
+
metadata=None):
|
|
260
|
+
return grpc.experimental.unary_unary(
|
|
261
|
+
request,
|
|
262
|
+
target,
|
|
263
|
+
'/xray.app.stats.command.StatsService/GetSysStats',
|
|
264
|
+
app_dot_stats_dot_command_dot_command__pb2.SysStatsRequest.SerializeToString,
|
|
265
|
+
app_dot_stats_dot_command_dot_command__pb2.SysStatsResponse.FromString,
|
|
266
|
+
options,
|
|
267
|
+
channel_credentials,
|
|
268
|
+
insecure,
|
|
269
|
+
call_credentials,
|
|
270
|
+
compression,
|
|
271
|
+
wait_for_ready,
|
|
272
|
+
timeout,
|
|
273
|
+
metadata,
|
|
274
|
+
_registered_method=True)
|
|
275
|
+
|
|
276
|
+
@staticmethod
|
|
277
|
+
def GetStatsOnlineIpList(request,
|
|
278
|
+
target,
|
|
279
|
+
options=(),
|
|
280
|
+
channel_credentials=None,
|
|
281
|
+
call_credentials=None,
|
|
282
|
+
insecure=False,
|
|
283
|
+
compression=None,
|
|
284
|
+
wait_for_ready=None,
|
|
285
|
+
timeout=None,
|
|
286
|
+
metadata=None):
|
|
287
|
+
return grpc.experimental.unary_unary(
|
|
288
|
+
request,
|
|
289
|
+
target,
|
|
290
|
+
'/xray.app.stats.command.StatsService/GetStatsOnlineIpList',
|
|
291
|
+
app_dot_stats_dot_command_dot_command__pb2.GetStatsRequest.SerializeToString,
|
|
292
|
+
app_dot_stats_dot_command_dot_command__pb2.GetStatsOnlineIpListResponse.FromString,
|
|
293
|
+
options,
|
|
294
|
+
channel_credentials,
|
|
295
|
+
insecure,
|
|
296
|
+
call_credentials,
|
|
297
|
+
compression,
|
|
298
|
+
wait_for_ready,
|
|
299
|
+
timeout,
|
|
300
|
+
metadata,
|
|
301
|
+
_registered_method=True)
|
|
302
|
+
|
|
303
|
+
@staticmethod
|
|
304
|
+
def GetAllOnlineUsers(request,
|
|
305
|
+
target,
|
|
306
|
+
options=(),
|
|
307
|
+
channel_credentials=None,
|
|
308
|
+
call_credentials=None,
|
|
309
|
+
insecure=False,
|
|
310
|
+
compression=None,
|
|
311
|
+
wait_for_ready=None,
|
|
312
|
+
timeout=None,
|
|
313
|
+
metadata=None):
|
|
314
|
+
return grpc.experimental.unary_unary(
|
|
315
|
+
request,
|
|
316
|
+
target,
|
|
317
|
+
'/xray.app.stats.command.StatsService/GetAllOnlineUsers',
|
|
318
|
+
app_dot_stats_dot_command_dot_command__pb2.GetAllOnlineUsersRequest.SerializeToString,
|
|
319
|
+
app_dot_stats_dot_command_dot_command__pb2.GetAllOnlineUsersResponse.FromString,
|
|
320
|
+
options,
|
|
321
|
+
channel_credentials,
|
|
322
|
+
insecure,
|
|
323
|
+
call_credentials,
|
|
324
|
+
compression,
|
|
325
|
+
wait_for_ready,
|
|
326
|
+
timeout,
|
|
327
|
+
metadata,
|
|
328
|
+
_registered_method=True)
|
|
329
|
+
|
|
330
|
+
@staticmethod
|
|
331
|
+
def GetUsersStats(request,
|
|
332
|
+
target,
|
|
333
|
+
options=(),
|
|
334
|
+
channel_credentials=None,
|
|
335
|
+
call_credentials=None,
|
|
336
|
+
insecure=False,
|
|
337
|
+
compression=None,
|
|
338
|
+
wait_for_ready=None,
|
|
339
|
+
timeout=None,
|
|
340
|
+
metadata=None):
|
|
341
|
+
return grpc.experimental.unary_unary(
|
|
342
|
+
request,
|
|
343
|
+
target,
|
|
344
|
+
'/xray.app.stats.command.StatsService/GetUsersStats',
|
|
345
|
+
app_dot_stats_dot_command_dot_command__pb2.GetUsersStatsRequest.SerializeToString,
|
|
346
|
+
app_dot_stats_dot_command_dot_command__pb2.GetUsersStatsResponse.FromString,
|
|
347
|
+
options,
|
|
348
|
+
channel_credentials,
|
|
349
|
+
insecure,
|
|
350
|
+
call_credentials,
|
|
351
|
+
compression,
|
|
352
|
+
wait_for_ready,
|
|
353
|
+
timeout,
|
|
354
|
+
metadata,
|
|
355
|
+
_registered_method=True)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: app/stats/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/stats/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\x16\x61pp/stats/config.proto\x12\x0exray.app.stats\"\x08\n\x06\x43onfig\"N\n\rChannelConfig\x12\x10\n\x08\x42locking\x18\x01 \x01(\x08\x12\x17\n\x0fSubscriberLimit\x18\x02 \x01(\x05\x12\x12\n\nBufferSize\x18\x03 \x01(\x05\x42L\n\x12\x63om.xray.app.statsP\x01Z#github.com/xtls/xray-core/app/stats\xaa\x02\x0eXray.App.Statsb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.stats.config_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\022com.xray.app.statsP\001Z#github.com/xtls/xray-core/app/stats\252\002\016Xray.App.Stats'
|
|
35
|
+
_globals['_CONFIG']._serialized_start=42
|
|
36
|
+
_globals['_CONFIG']._serialized_end=50
|
|
37
|
+
_globals['_CHANNELCONFIG']._serialized_start=52
|
|
38
|
+
_globals['_CHANNELCONFIG']._serialized_end=130
|
|
39
|
+
# @@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/stats/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,37 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: app/version/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/version/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/version/config.proto\x12\x10xray.app.version\"H\n\x06\x43onfig\x12\x14\n\x0c\x63ore_version\x18\x01 \x01(\t\x12\x13\n\x0bmin_version\x18\x02 \x01(\t\x12\x13\n\x0bmax_version\x18\x03 \x01(\tBR\n\x14\x63om.xray.app.versionP\x01Z%github.com/xtls/xray-core/app/version\xaa\x02\x10Xray.App.Versionb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.version.config_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\024com.xray.app.versionP\001Z%github.com/xtls/xray-core/app/version\252\002\020Xray.App.Version'
|
|
35
|
+
_globals['_CONFIG']._serialized_start=46
|
|
36
|
+
_globals['_CONFIG']._serialized_end=118
|
|
37
|
+
# @@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/version/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
|
+
)
|
xray/common/__init__.py
ADDED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: common/geodata/geodat.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
|
+
'common/geodata/geodat.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\x1b\x63ommon/geodata/geodat.proto\x12\x13xray.common.geodata\"\x8a\x02\n\x06\x44omain\x12.\n\x04type\x18\x01 \x01(\x0e\x32 .xray.common.geodata.Domain.Type\x12\r\n\x05value\x18\x02 \x01(\t\x12\x38\n\tattribute\x18\x03 \x03(\x0b\x32%.xray.common.geodata.Domain.Attribute\x1aR\n\tAttribute\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x14\n\nbool_value\x18\x02 \x01(\x08H\x00\x12\x13\n\tint_value\x18\x03 \x01(\x03H\x00\x42\r\n\x0btyped_value\"3\n\x04Type\x12\n\n\x06Substr\x10\x00\x12\t\n\x05Regex\x10\x01\x12\n\n\x06\x44omain\x10\x02\x12\x08\n\x04\x46ull\x10\x03\"D\n\x07GeoSite\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12+\n\x06\x64omain\x18\x02 \x03(\x0b\x32\x1b.xray.common.geodata.Domain\":\n\x0bGeoSiteList\x12+\n\x05\x65ntry\x18\x01 \x03(\x0b\x32\x1c.xray.common.geodata.GeoSite\"8\n\x0bGeoSiteRule\x12\x0c\n\x04\x66ile\x18\x01 \x01(\t\x12\x0c\n\x04\x63ode\x18\x02 \x01(\t\x12\r\n\x05\x61ttrs\x18\x03 \x01(\t\"y\n\nDomainRule\x12\x33\n\x07geosite\x18\x01 \x01(\x0b\x32 .xray.common.geodata.GeoSiteRuleH\x00\x12-\n\x06\x63ustom\x18\x02 \x01(\x0b\x32\x1b.xray.common.geodata.DomainH\x00\x42\x07\n\x05value\"\"\n\x04\x43IDR\x12\n\n\x02ip\x18\x01 \x01(\x0c\x12\x0e\n\x06prefix\x18\x02 \x01(\r\"J\n\x08\x43IDRRule\x12\'\n\x04\x63idr\x18\x01 \x01(\x0b\x32\x19.xray.common.geodata.CIDR\x12\x15\n\rreverse_match\x18\x02 \x01(\x08\"U\n\x05GeoIP\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12\'\n\x04\x63idr\x18\x02 \x03(\x0b\x32\x19.xray.common.geodata.CIDR\x12\x15\n\rreverse_match\x18\x03 \x01(\x08\"6\n\tGeoIPList\x12)\n\x05\x65ntry\x18\x01 \x03(\x0b\x32\x1a.xray.common.geodata.GeoIP\">\n\tGeoIPRule\x12\x0c\n\x04\x66ile\x18\x01 \x01(\t\x12\x0c\n\x04\x63ode\x18\x02 \x01(\t\x12\x15\n\rreverse_match\x18\x03 \x01(\x08\"s\n\x06IPRule\x12/\n\x05geoip\x18\x01 \x01(\x0b\x32\x1e.xray.common.geodata.GeoIPRuleH\x00\x12/\n\x06\x63ustom\x18\x02 \x01(\x0b\x32\x1d.xray.common.geodata.CIDRRuleH\x00\x42\x07\n\x05valueB[\n\x17\x63om.xray.common.geodataP\x01Z(github.com/xtls/xray-core/common/geodata\xaa\x02\x13Xray.Common.Geodatab\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common.geodata.geodat_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.xray.common.geodataP\001Z(github.com/xtls/xray-core/common/geodata\252\002\023Xray.Common.Geodata'
|
|
35
|
+
_globals['_DOMAIN']._serialized_start=53
|
|
36
|
+
_globals['_DOMAIN']._serialized_end=319
|
|
37
|
+
_globals['_DOMAIN_ATTRIBUTE']._serialized_start=184
|
|
38
|
+
_globals['_DOMAIN_ATTRIBUTE']._serialized_end=266
|
|
39
|
+
_globals['_DOMAIN_TYPE']._serialized_start=268
|
|
40
|
+
_globals['_DOMAIN_TYPE']._serialized_end=319
|
|
41
|
+
_globals['_GEOSITE']._serialized_start=321
|
|
42
|
+
_globals['_GEOSITE']._serialized_end=389
|
|
43
|
+
_globals['_GEOSITELIST']._serialized_start=391
|
|
44
|
+
_globals['_GEOSITELIST']._serialized_end=449
|
|
45
|
+
_globals['_GEOSITERULE']._serialized_start=451
|
|
46
|
+
_globals['_GEOSITERULE']._serialized_end=507
|
|
47
|
+
_globals['_DOMAINRULE']._serialized_start=509
|
|
48
|
+
_globals['_DOMAINRULE']._serialized_end=630
|
|
49
|
+
_globals['_CIDR']._serialized_start=632
|
|
50
|
+
_globals['_CIDR']._serialized_end=666
|
|
51
|
+
_globals['_CIDRRULE']._serialized_start=668
|
|
52
|
+
_globals['_CIDRRULE']._serialized_end=742
|
|
53
|
+
_globals['_GEOIP']._serialized_start=744
|
|
54
|
+
_globals['_GEOIP']._serialized_end=829
|
|
55
|
+
_globals['_GEOIPLIST']._serialized_start=831
|
|
56
|
+
_globals['_GEOIPLIST']._serialized_end=885
|
|
57
|
+
_globals['_GEOIPRULE']._serialized_start=887
|
|
58
|
+
_globals['_GEOIPRULE']._serialized_end=949
|
|
59
|
+
_globals['_IPRULE']._serialized_start=951
|
|
60
|
+
_globals['_IPRULE']._serialized_end=1066
|
|
61
|
+
# @@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 common/geodata/geodat_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,37 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: common/log/log.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
|
+
'common/log/log.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\x14\x63ommon/log/log.proto\x12\x0fxray.common.log*D\n\x08Severity\x12\x0b\n\x07Unknown\x10\x00\x12\t\n\x05\x45rror\x10\x01\x12\x0b\n\x07Warning\x10\x02\x12\x08\n\x04Info\x10\x03\x12\t\n\x05\x44\x65\x62ug\x10\x04\x42O\n\x13\x63om.xray.common.logP\x01Z$github.com/xtls/xray-core/common/log\xaa\x02\x0fXray.Common.Logb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common.log.log_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\023com.xray.common.logP\001Z$github.com/xtls/xray-core/common/log\252\002\017Xray.Common.Log'
|
|
35
|
+
_globals['_SEVERITY']._serialized_start=41
|
|
36
|
+
_globals['_SEVERITY']._serialized_end=109
|
|
37
|
+
# @@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 common/log/log_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
|