python-xray-api 26.10.21__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- python_xray_api-26.10.21.dist-info/METADATA +27 -0
- python_xray_api-26.10.21.dist-info/RECORD +258 -0
- python_xray_api-26.10.21.dist-info/WHEEL +5 -0
- python_xray_api-26.10.21.dist-info/licenses/LICENSE +674 -0
- python_xray_api-26.10.21.dist-info/top_level.txt +1 -0
- xray/__init__.py +0 -0
- xray/app/__init__.py +0 -0
- xray/app/commander/__init__.py +0 -0
- xray/app/commander/config_pb2.py +40 -0
- xray/app/commander/config_pb2_grpc.py +24 -0
- xray/app/dispatcher/__init__.py +0 -0
- xray/app/dispatcher/config_pb2.py +39 -0
- xray/app/dispatcher/config_pb2_grpc.py +24 -0
- xray/app/dns/__init__.py +0 -0
- xray/app/dns/config_pb2.py +45 -0
- xray/app/dns/config_pb2_grpc.py +24 -0
- xray/app/dns/fakedns/__init__.py +0 -0
- xray/app/dns/fakedns/fakedns_pb2.py +39 -0
- xray/app/dns/fakedns/fakedns_pb2_grpc.py +24 -0
- xray/app/geodata/__init__.py +0 -0
- xray/app/geodata/config_pb2.py +39 -0
- xray/app/geodata/config_pb2_grpc.py +24 -0
- xray/app/log/__init__.py +0 -0
- xray/app/log/command/__init__.py +0 -0
- xray/app/log/command/config_pb2.py +43 -0
- xray/app/log/command/config_pb2_grpc.py +97 -0
- xray/app/log/config_pb2.py +40 -0
- xray/app/log/config_pb2_grpc.py +24 -0
- xray/app/metrics/__init__.py +0 -0
- xray/app/metrics/config_pb2.py +37 -0
- xray/app/metrics/config_pb2_grpc.py +24 -0
- xray/app/observatory/__init__.py +0 -0
- xray/app/observatory/burst/__init__.py +0 -0
- xray/app/observatory/burst/config_pb2.py +39 -0
- xray/app/observatory/burst/config_pb2_grpc.py +24 -0
- xray/app/observatory/command/__init__.py +0 -0
- xray/app/observatory/command/command_pb2.py +44 -0
- xray/app/observatory/command/command_pb2_grpc.py +97 -0
- xray/app/observatory/config_pb2.py +47 -0
- xray/app/observatory/config_pb2_grpc.py +24 -0
- xray/app/policy/__init__.py +0 -0
- xray/app/policy/config_pb2.py +55 -0
- xray/app/policy/config_pb2_grpc.py +24 -0
- xray/app/proxyman/__init__.py +0 -0
- xray/app/proxyman/command/__init__.py +0 -0
- xray/app/proxyman/command/command_pb2.py +84 -0
- xray/app/proxyman/command/command_pb2_grpc.py +484 -0
- xray/app/proxyman/config_pb2.py +54 -0
- xray/app/proxyman/config_pb2_grpc.py +24 -0
- xray/app/reverse/__init__.py +0 -0
- xray/app/reverse/config_pb2.py +45 -0
- xray/app/reverse/config_pb2_grpc.py +24 -0
- xray/app/router/__init__.py +0 -0
- xray/app/router/command/__init__.py +0 -0
- xray/app/router/command/command_pb2.py +79 -0
- xray/app/router/command/command_pb2_grpc.py +355 -0
- xray/app/router/config_pb2.py +61 -0
- xray/app/router/config_pb2_grpc.py +24 -0
- xray/app/stats/__init__.py +0 -0
- xray/app/stats/command/__init__.py +0 -0
- xray/app/stats/command/command_pb2.py +73 -0
- xray/app/stats/command/command_pb2_grpc.py +355 -0
- xray/app/stats/config_pb2.py +39 -0
- xray/app/stats/config_pb2_grpc.py +24 -0
- xray/app/version/__init__.py +0 -0
- xray/app/version/config_pb2.py +37 -0
- xray/app/version/config_pb2_grpc.py +24 -0
- xray/common/__init__.py +0 -0
- xray/common/geodata/__init__.py +0 -0
- xray/common/geodata/geodat_pb2.py +61 -0
- xray/common/geodata/geodat_pb2_grpc.py +24 -0
- xray/common/log/__init__.py +0 -0
- xray/common/log/log_pb2.py +37 -0
- xray/common/log/log_pb2_grpc.py +24 -0
- xray/common/net/__init__.py +0 -0
- xray/common/net/address_pb2.py +37 -0
- xray/common/net/address_pb2_grpc.py +24 -0
- xray/common/net/destination_pb2.py +39 -0
- xray/common/net/destination_pb2_grpc.py +24 -0
- xray/common/net/network_pb2.py +39 -0
- xray/common/net/network_pb2_grpc.py +24 -0
- xray/common/net/port_pb2.py +39 -0
- xray/common/net/port_pb2_grpc.py +24 -0
- xray/common/protocol/__init__.py +0 -0
- xray/common/protocol/headers_pb2.py +39 -0
- xray/common/protocol/headers_pb2_grpc.py +24 -0
- xray/common/protocol/server_spec_pb2.py +39 -0
- xray/common/protocol/server_spec_pb2_grpc.py +24 -0
- xray/common/protocol/user_pb2.py +38 -0
- xray/common/protocol/user_pb2_grpc.py +24 -0
- xray/common/serial/__init__.py +0 -0
- xray/common/serial/typed_message_pb2.py +37 -0
- xray/common/serial/typed_message_pb2_grpc.py +24 -0
- xray/core/__init__.py +0 -0
- xray/core/config_pb2.py +42 -0
- xray/core/config_pb2_grpc.py +24 -0
- xray/proxy/__init__.py +0 -0
- xray/proxy/blackhole/__init__.py +0 -0
- xray/proxy/blackhole/config_pb2.py +39 -0
- xray/proxy/blackhole/config_pb2_grpc.py +24 -0
- xray/proxy/dns/__init__.py +0 -0
- xray/proxy/dns/config_pb2.py +43 -0
- xray/proxy/dns/config_pb2_grpc.py +24 -0
- xray/proxy/dokodemo/__init__.py +0 -0
- xray/proxy/dokodemo/config_pb2.py +43 -0
- xray/proxy/dokodemo/config_pb2_grpc.py +24 -0
- xray/proxy/freedom/__init__.py +0 -0
- xray/proxy/freedom/config_pb2.py +54 -0
- xray/proxy/freedom/config_pb2_grpc.py +24 -0
- xray/proxy/http/__init__.py +0 -0
- xray/proxy/http/config_pb2.py +48 -0
- xray/proxy/http/config_pb2_grpc.py +24 -0
- xray/proxy/hysteria/__init__.py +0 -0
- xray/proxy/hysteria/account/__init__.py +0 -0
- xray/proxy/hysteria/account/config_pb2.py +37 -0
- xray/proxy/hysteria/account/config_pb2_grpc.py +24 -0
- xray/proxy/hysteria/config_pb2.py +41 -0
- xray/proxy/hysteria/config_pb2_grpc.py +24 -0
- xray/proxy/loopback/__init__.py +0 -0
- xray/proxy/loopback/config_pb2.py +38 -0
- xray/proxy/loopback/config_pb2_grpc.py +24 -0
- xray/proxy/masque/__init__.py +0 -0
- xray/proxy/masque/config_pb2.py +43 -0
- xray/proxy/masque/config_pb2_grpc.py +24 -0
- xray/proxy/shadowsocks/__init__.py +0 -0
- xray/proxy/shadowsocks/config_pb2.py +46 -0
- xray/proxy/shadowsocks/config_pb2_grpc.py +24 -0
- xray/proxy/shadowsocks_2022/__init__.py +0 -0
- xray/proxy/shadowsocks_2022/config_pb2.py +50 -0
- xray/proxy/shadowsocks_2022/config_pb2_grpc.py +24 -0
- xray/proxy/socks/__init__.py +0 -0
- xray/proxy/socks/config_pb2.py +49 -0
- xray/proxy/socks/config_pb2_grpc.py +24 -0
- xray/proxy/trojan/__init__.py +0 -0
- xray/proxy/trojan/config_pb2.py +45 -0
- xray/proxy/trojan/config_pb2_grpc.py +24 -0
- xray/proxy/tun/__init__.py +0 -0
- xray/proxy/tun/config_pb2.py +37 -0
- xray/proxy/tun/config_pb2_grpc.py +24 -0
- xray/proxy/vless/__init__.py +0 -0
- xray/proxy/vless/account_pb2.py +40 -0
- xray/proxy/vless/account_pb2_grpc.py +24 -0
- xray/proxy/vless/encoding/__init__.py +0 -0
- xray/proxy/vless/encoding/addons_pb2.py +37 -0
- xray/proxy/vless/encoding/addons_pb2_grpc.py +24 -0
- xray/proxy/vless/inbound/__init__.py +0 -0
- xray/proxy/vless/inbound/config_pb2.py +40 -0
- xray/proxy/vless/inbound/config_pb2_grpc.py +24 -0
- xray/proxy/vless/outbound/__init__.py +0 -0
- xray/proxy/vless/outbound/config_pb2.py +38 -0
- xray/proxy/vless/outbound/config_pb2_grpc.py +24 -0
- xray/proxy/vmess/__init__.py +0 -0
- xray/proxy/vmess/account_pb2.py +38 -0
- xray/proxy/vmess/account_pb2_grpc.py +24 -0
- xray/proxy/vmess/inbound/__init__.py +0 -0
- xray/proxy/vmess/inbound/config_pb2.py +42 -0
- xray/proxy/vmess/inbound/config_pb2_grpc.py +24 -0
- xray/proxy/vmess/outbound/__init__.py +0 -0
- xray/proxy/vmess/outbound/config_pb2.py +38 -0
- xray/proxy/vmess/outbound/config_pb2_grpc.py +24 -0
- xray/proxy/wireguard/__init__.py +0 -0
- xray/proxy/wireguard/config_pb2.py +40 -0
- xray/proxy/wireguard/config_pb2_grpc.py +24 -0
- xray/transport/__init__.py +0 -0
- xray/transport/internet/__init__.py +0 -0
- xray/transport/internet/config_pb2.py +55 -0
- xray/transport/internet/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/__init__.py +0 -0
- xray/transport/internet/finalmask/filter/__init__.py +0 -0
- xray/transport/internet/finalmask/filter/config_pb2.py +38 -0
- xray/transport/internet/finalmask/filter/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/fragment/__init__.py +0 -0
- xray/transport/internet/finalmask/fragment/config_pb2.py +37 -0
- xray/transport/internet/finalmask/fragment/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/header/__init__.py +0 -0
- xray/transport/internet/finalmask/header/custom/__init__.py +0 -0
- xray/transport/internet/finalmask/header/custom/config_pb2.py +51 -0
- xray/transport/internet/finalmask/header/custom/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/mkcp/__init__.py +0 -0
- xray/transport/internet/finalmask/mkcp/aes128gcm/__init__.py +0 -0
- xray/transport/internet/finalmask/mkcp/aes128gcm/config_pb2.py +37 -0
- xray/transport/internet/finalmask/mkcp/aes128gcm/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/mkcp/header/__init__.py +0 -0
- xray/transport/internet/finalmask/mkcp/header/config_pb2.py +37 -0
- xray/transport/internet/finalmask/mkcp/header/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/mkcp/original/__init__.py +0 -0
- xray/transport/internet/finalmask/mkcp/original/config_pb2.py +37 -0
- xray/transport/internet/finalmask/mkcp/original/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/noise/__init__.py +0 -0
- xray/transport/internet/finalmask/noise/config_pb2.py +43 -0
- xray/transport/internet/finalmask/noise/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/realm/__init__.py +0 -0
- xray/transport/internet/finalmask/realm/config_pb2.py +42 -0
- xray/transport/internet/finalmask/realm/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/salamander/__init__.py +0 -0
- xray/transport/internet/finalmask/salamander/config_pb2.py +39 -0
- xray/transport/internet/finalmask/salamander/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/sudoku/__init__.py +0 -0
- xray/transport/internet/finalmask/sudoku/config_pb2.py +37 -0
- xray/transport/internet/finalmask/sudoku/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/udphop/__init__.py +0 -0
- xray/transport/internet/finalmask/udphop/config_pb2.py +37 -0
- xray/transport/internet/finalmask/udphop/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/xdns/__init__.py +0 -0
- xray/transport/internet/finalmask/xdns/config_pb2.py +44 -0
- xray/transport/internet/finalmask/xdns/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/xicmp/__init__.py +0 -0
- xray/transport/internet/finalmask/xicmp/config_pb2.py +37 -0
- xray/transport/internet/finalmask/xicmp/config_pb2_grpc.py +24 -0
- xray/transport/internet/finalmask/xmc/__init__.py +0 -0
- xray/transport/internet/finalmask/xmc/config_pb2.py +39 -0
- xray/transport/internet/finalmask/xmc/config_pb2_grpc.py +24 -0
- xray/transport/internet/grpc/__init__.py +0 -0
- xray/transport/internet/grpc/config_pb2.py +37 -0
- xray/transport/internet/grpc/config_pb2_grpc.py +24 -0
- xray/transport/internet/grpc/encoding/__init__.py +0 -0
- xray/transport/internet/grpc/encoding/stream_pb2.py +41 -0
- xray/transport/internet/grpc/encoding/stream_pb2_grpc.py +140 -0
- xray/transport/internet/headers/__init__.py +0 -0
- xray/transport/internet/headers/http/__init__.py +0 -0
- xray/transport/internet/headers/http/config_pb2.py +49 -0
- xray/transport/internet/headers/http/config_pb2_grpc.py +24 -0
- xray/transport/internet/headers/noop/__init__.py +0 -0
- xray/transport/internet/headers/noop/config_pb2.py +39 -0
- xray/transport/internet/headers/noop/config_pb2_grpc.py +24 -0
- xray/transport/internet/httpupgrade/__init__.py +0 -0
- xray/transport/internet/httpupgrade/config_pb2.py +41 -0
- xray/transport/internet/httpupgrade/config_pb2_grpc.py +24 -0
- xray/transport/internet/hysteria/__init__.py +0 -0
- xray/transport/internet/hysteria/config_pb2.py +41 -0
- xray/transport/internet/hysteria/config_pb2_grpc.py +24 -0
- xray/transport/internet/kcp/__init__.py +0 -0
- xray/transport/internet/kcp/config_pb2.py +37 -0
- xray/transport/internet/kcp/config_pb2_grpc.py +24 -0
- xray/transport/internet/masque/__init__.py +0 -0
- xray/transport/internet/masque/config_pb2.py +44 -0
- xray/transport/internet/masque/config_pb2_grpc.py +24 -0
- xray/transport/internet/reality/__init__.py +0 -0
- xray/transport/internet/reality/config_pb2.py +39 -0
- xray/transport/internet/reality/config_pb2_grpc.py +24 -0
- xray/transport/internet/splithttp/__init__.py +0 -0
- xray/transport/internet/splithttp/config_pb2.py +46 -0
- xray/transport/internet/splithttp/config_pb2_grpc.py +24 -0
- xray/transport/internet/tcp/__init__.py +0 -0
- xray/transport/internet/tcp/config_pb2.py +38 -0
- xray/transport/internet/tcp/config_pb2_grpc.py +24 -0
- xray/transport/internet/tls/__init__.py +0 -0
- xray/transport/internet/tls/config_pb2.py +42 -0
- xray/transport/internet/tls/config_pb2_grpc.py +24 -0
- xray/transport/internet/udp/__init__.py +0 -0
- xray/transport/internet/udp/config_pb2.py +37 -0
- xray/transport/internet/udp/config_pb2_grpc.py +24 -0
- xray/transport/internet/websocket/__init__.py +0 -0
- xray/transport/internet/websocket/config_pb2.py +41 -0
- xray/transport/internet/websocket/config_pb2_grpc.py +24 -0
- xray/transport/internet/xdrive/__init__.py +0 -0
- xray/transport/internet/xdrive/config_pb2.py +38 -0
- xray/transport/internet/xdrive/config_pb2_grpc.py +24 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: app/observatory/burst/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/observatory/burst/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\"app/observatory/burst/config.proto\x12\x1fxray.core.app.observatory.burst\"j\n\x06\x43onfig\x12\x18\n\x10subject_selector\x18\x02 \x03(\t\x12\x46\n\x0bping_config\x18\x03 \x01(\x0b\x32\x31.xray.core.app.observatory.burst.HealthPingConfig\"\x8b\x01\n\x10HealthPingConfig\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\t\x12\x14\n\x0c\x63onnectivity\x18\x02 \x01(\t\x12\x10\n\x08interval\x18\x03 \x01(\x03\x12\x15\n\rsamplingCount\x18\x04 \x01(\x05\x12\x0f\n\x07timeout\x18\x05 \x01(\x03\x12\x12\n\nhttpMethod\x18\x06 \x01(\tBp\n\x1e\x63om.xray.app.observatory.burstP\x01Z/github.com/xtls/xray-core/app/observatory/burst\xaa\x02\x1aXray.App.Observatory.Burstb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.observatory.burst.config_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\036com.xray.app.observatory.burstP\001Z/github.com/xtls/xray-core/app/observatory/burst\252\002\032Xray.App.Observatory.Burst'
|
|
35
|
+
_globals['_CONFIG']._serialized_start=71
|
|
36
|
+
_globals['_CONFIG']._serialized_end=177
|
|
37
|
+
_globals['_HEALTHPINGCONFIG']._serialized_start=180
|
|
38
|
+
_globals['_HEALTHPINGCONFIG']._serialized_end=319
|
|
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/observatory/burst/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,44 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: app/observatory/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/observatory/command/command.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from xray.app.observatory import config_pb2 as app_dot_observatory_dot_config__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%app/observatory/command/command.proto\x12!xray.core.app.observatory.command\x1a\x1c\x61pp/observatory/config.proto\"\x1a\n\x18GetOutboundStatusRequest\"Y\n\x19GetOutboundStatusResponse\x12<\n\x06status\x18\x01 \x01(\x0b\x32,.xray.core.app.observatory.ObservationResult\"\x08\n\x06\x43onfig2\xa7\x01\n\x12ObservatoryService\x12\x90\x01\n\x11GetOutboundStatus\x12;.xray.core.app.observatory.command.GetOutboundStatusRequest\x1a<.xray.core.app.observatory.command.GetOutboundStatusResponse\"\x00\x42\x80\x01\n%com.xray.core.app.observatory.commandP\x01Z1github.com/xtls/xray-core/app/observatory/command\xaa\x02!Xray.Core.App.Observatory.Commandb\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.observatory.command.command_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n%com.xray.core.app.observatory.commandP\001Z1github.com/xtls/xray-core/app/observatory/command\252\002!Xray.Core.App.Observatory.Command'
|
|
36
|
+
_globals['_GETOUTBOUNDSTATUSREQUEST']._serialized_start=106
|
|
37
|
+
_globals['_GETOUTBOUNDSTATUSREQUEST']._serialized_end=132
|
|
38
|
+
_globals['_GETOUTBOUNDSTATUSRESPONSE']._serialized_start=134
|
|
39
|
+
_globals['_GETOUTBOUNDSTATUSRESPONSE']._serialized_end=223
|
|
40
|
+
_globals['_CONFIG']._serialized_start=225
|
|
41
|
+
_globals['_CONFIG']._serialized_end=233
|
|
42
|
+
_globals['_OBSERVATORYSERVICE']._serialized_start=236
|
|
43
|
+
_globals['_OBSERVATORYSERVICE']._serialized_end=403
|
|
44
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,97 @@
|
|
|
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.observatory.command import command_pb2 as app_dot_observatory_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/observatory/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 ObservatoryServiceStub:
|
|
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.GetOutboundStatus = channel.unary_unary(
|
|
38
|
+
'/xray.core.app.observatory.command.ObservatoryService/GetOutboundStatus',
|
|
39
|
+
request_serializer=app_dot_observatory_dot_command_dot_command__pb2.GetOutboundStatusRequest.SerializeToString,
|
|
40
|
+
response_deserializer=app_dot_observatory_dot_command_dot_command__pb2.GetOutboundStatusResponse.FromString,
|
|
41
|
+
_registered_method=True)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class ObservatoryServiceServicer:
|
|
45
|
+
"""Missing associated documentation comment in .proto file."""
|
|
46
|
+
|
|
47
|
+
def GetOutboundStatus(self, request, context):
|
|
48
|
+
"""Missing associated documentation comment in .proto file."""
|
|
49
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
50
|
+
context.set_details('Method not implemented!')
|
|
51
|
+
raise NotImplementedError('Method not implemented!')
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def add_ObservatoryServiceServicer_to_server(servicer, server):
|
|
55
|
+
rpc_method_handlers = {
|
|
56
|
+
'GetOutboundStatus': grpc.unary_unary_rpc_method_handler(
|
|
57
|
+
servicer.GetOutboundStatus,
|
|
58
|
+
request_deserializer=app_dot_observatory_dot_command_dot_command__pb2.GetOutboundStatusRequest.FromString,
|
|
59
|
+
response_serializer=app_dot_observatory_dot_command_dot_command__pb2.GetOutboundStatusResponse.SerializeToString,
|
|
60
|
+
),
|
|
61
|
+
}
|
|
62
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
63
|
+
'xray.core.app.observatory.command.ObservatoryService', rpc_method_handlers)
|
|
64
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
65
|
+
server.add_registered_method_handlers('xray.core.app.observatory.command.ObservatoryService', rpc_method_handlers)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# This class is part of an EXPERIMENTAL API.
|
|
69
|
+
class ObservatoryService:
|
|
70
|
+
"""Missing associated documentation comment in .proto file."""
|
|
71
|
+
|
|
72
|
+
@staticmethod
|
|
73
|
+
def GetOutboundStatus(request,
|
|
74
|
+
target,
|
|
75
|
+
options=(),
|
|
76
|
+
channel_credentials=None,
|
|
77
|
+
call_credentials=None,
|
|
78
|
+
insecure=False,
|
|
79
|
+
compression=None,
|
|
80
|
+
wait_for_ready=None,
|
|
81
|
+
timeout=None,
|
|
82
|
+
metadata=None):
|
|
83
|
+
return grpc.experimental.unary_unary(
|
|
84
|
+
request,
|
|
85
|
+
target,
|
|
86
|
+
'/xray.core.app.observatory.command.ObservatoryService/GetOutboundStatus',
|
|
87
|
+
app_dot_observatory_dot_command_dot_command__pb2.GetOutboundStatusRequest.SerializeToString,
|
|
88
|
+
app_dot_observatory_dot_command_dot_command__pb2.GetOutboundStatusResponse.FromString,
|
|
89
|
+
options,
|
|
90
|
+
channel_credentials,
|
|
91
|
+
insecure,
|
|
92
|
+
call_credentials,
|
|
93
|
+
compression,
|
|
94
|
+
wait_for_ready,
|
|
95
|
+
timeout,
|
|
96
|
+
metadata,
|
|
97
|
+
_registered_method=True)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: app/observatory/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/observatory/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\x1c\x61pp/observatory/config.proto\x12\x19xray.core.app.observatory\"N\n\x11ObservationResult\x12\x39\n\x06status\x18\x01 \x03(\x0b\x32).xray.core.app.observatory.OutboundStatus\"v\n\x1bHealthPingMeasurementResult\x12\x0b\n\x03\x61ll\x18\x01 \x01(\x03\x12\x0c\n\x04\x66\x61il\x18\x02 \x01(\x03\x12\x11\n\tdeviation\x18\x03 \x01(\x03\x12\x0f\n\x07\x61verage\x18\x04 \x01(\x03\x12\x0b\n\x03max\x18\x05 \x01(\x03\x12\x0b\n\x03min\x18\x06 \x01(\x03\"\xdb\x01\n\x0eOutboundStatus\x12\r\n\x05\x61live\x18\x01 \x01(\x08\x12\r\n\x05\x64\x65lay\x18\x02 \x01(\x03\x12\x19\n\x11last_error_reason\x18\x03 \x01(\t\x12\x14\n\x0coutbound_tag\x18\x04 \x01(\t\x12\x16\n\x0elast_seen_time\x18\x05 \x01(\x03\x12\x15\n\rlast_try_time\x18\x06 \x01(\x03\x12K\n\x0bhealth_ping\x18\x07 \x01(\x0b\x32\x36.xray.core.app.observatory.HealthPingMeasurementResult\"F\n\x0bProbeResult\x12\r\n\x05\x61live\x18\x01 \x01(\x08\x12\r\n\x05\x64\x65lay\x18\x02 \x01(\x03\x12\x19\n\x11last_error_reason\x18\x03 \x01(\t\"#\n\tIntensity\x12\x16\n\x0eprobe_interval\x18\x01 \x01(\r\"i\n\x06\x43onfig\x12\x18\n\x10subject_selector\x18\x02 \x03(\t\x12\x11\n\tprobe_url\x18\x03 \x01(\t\x12\x16\n\x0eprobe_interval\x18\x04 \x01(\x03\x12\x1a\n\x12\x65nable_concurrency\x18\x05 \x01(\x08\x42^\n\x18\x63om.xray.app.observatoryP\x01Z)github.com/xtls/xray-core/app/observatory\xaa\x02\x14Xray.App.Observatoryb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.observatory.config_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\030com.xray.app.observatoryP\001Z)github.com/xtls/xray-core/app/observatory\252\002\024Xray.App.Observatory'
|
|
35
|
+
_globals['_OBSERVATIONRESULT']._serialized_start=59
|
|
36
|
+
_globals['_OBSERVATIONRESULT']._serialized_end=137
|
|
37
|
+
_globals['_HEALTHPINGMEASUREMENTRESULT']._serialized_start=139
|
|
38
|
+
_globals['_HEALTHPINGMEASUREMENTRESULT']._serialized_end=257
|
|
39
|
+
_globals['_OUTBOUNDSTATUS']._serialized_start=260
|
|
40
|
+
_globals['_OUTBOUNDSTATUS']._serialized_end=479
|
|
41
|
+
_globals['_PROBERESULT']._serialized_start=481
|
|
42
|
+
_globals['_PROBERESULT']._serialized_end=551
|
|
43
|
+
_globals['_INTENSITY']._serialized_start=553
|
|
44
|
+
_globals['_INTENSITY']._serialized_end=588
|
|
45
|
+
_globals['_CONFIG']._serialized_start=590
|
|
46
|
+
_globals['_CONFIG']._serialized_end=695
|
|
47
|
+
# @@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/observatory/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,55 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: app/policy/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/policy/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\x17\x61pp/policy/config.proto\x12\x0fxray.app.policy\"\x17\n\x06Second\x12\r\n\x05value\x18\x01 \x01(\r\"\xc8\x03\n\x06Policy\x12\x30\n\x07timeout\x18\x01 \x01(\x0b\x32\x1f.xray.app.policy.Policy.Timeout\x12,\n\x05stats\x18\x02 \x01(\x0b\x32\x1d.xray.app.policy.Policy.Stats\x12.\n\x06\x62uffer\x18\x03 \x01(\x0b\x32\x1e.xray.app.policy.Policy.Buffer\x1a\xc5\x01\n\x07Timeout\x12*\n\thandshake\x18\x01 \x01(\x0b\x32\x17.xray.app.policy.Second\x12\x30\n\x0f\x63onnection_idle\x18\x02 \x01(\x0b\x32\x17.xray.app.policy.Second\x12,\n\x0buplink_only\x18\x03 \x01(\x0b\x32\x17.xray.app.policy.Second\x12.\n\rdownlink_only\x18\x04 \x01(\x0b\x32\x17.xray.app.policy.Second\x1aH\n\x05Stats\x12\x13\n\x0buser_uplink\x18\x01 \x01(\x08\x12\x15\n\ruser_downlink\x18\x02 \x01(\x08\x12\x13\n\x0buser_online\x18\x03 \x01(\x08\x1a\x1c\n\x06\x42uffer\x12\x12\n\nconnection\x18\x01 \x01(\x05\"\xb1\x01\n\x0cSystemPolicy\x12\x32\n\x05stats\x18\x01 \x01(\x0b\x32#.xray.app.policy.SystemPolicy.Stats\x1am\n\x05Stats\x12\x16\n\x0einbound_uplink\x18\x01 \x01(\x08\x12\x18\n\x10inbound_downlink\x18\x02 \x01(\x08\x12\x17\n\x0foutbound_uplink\x18\x03 \x01(\x08\x12\x19\n\x11outbound_downlink\x18\x04 \x01(\x08\"\xb1\x01\n\x06\x43onfig\x12\x31\n\x05level\x18\x01 \x03(\x0b\x32\".xray.app.policy.Config.LevelEntry\x12-\n\x06system\x18\x02 \x01(\x0b\x32\x1d.xray.app.policy.SystemPolicy\x1a\x45\n\nLevelEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.xray.app.policy.Policy:\x02\x38\x01\x42O\n\x13\x63om.xray.app.policyP\x01Z$github.com/xtls/xray-core/app/policy\xaa\x02\x0fXray.App.Policyb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.policy.config_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\023com.xray.app.policyP\001Z$github.com/xtls/xray-core/app/policy\252\002\017Xray.App.Policy'
|
|
35
|
+
_globals['_CONFIG_LEVELENTRY']._loaded_options = None
|
|
36
|
+
_globals['_CONFIG_LEVELENTRY']._serialized_options = b'8\001'
|
|
37
|
+
_globals['_SECOND']._serialized_start=44
|
|
38
|
+
_globals['_SECOND']._serialized_end=67
|
|
39
|
+
_globals['_POLICY']._serialized_start=70
|
|
40
|
+
_globals['_POLICY']._serialized_end=526
|
|
41
|
+
_globals['_POLICY_TIMEOUT']._serialized_start=225
|
|
42
|
+
_globals['_POLICY_TIMEOUT']._serialized_end=422
|
|
43
|
+
_globals['_POLICY_STATS']._serialized_start=424
|
|
44
|
+
_globals['_POLICY_STATS']._serialized_end=496
|
|
45
|
+
_globals['_POLICY_BUFFER']._serialized_start=498
|
|
46
|
+
_globals['_POLICY_BUFFER']._serialized_end=526
|
|
47
|
+
_globals['_SYSTEMPOLICY']._serialized_start=529
|
|
48
|
+
_globals['_SYSTEMPOLICY']._serialized_end=706
|
|
49
|
+
_globals['_SYSTEMPOLICY_STATS']._serialized_start=597
|
|
50
|
+
_globals['_SYSTEMPOLICY_STATS']._serialized_end=706
|
|
51
|
+
_globals['_CONFIG']._serialized_start=709
|
|
52
|
+
_globals['_CONFIG']._serialized_end=886
|
|
53
|
+
_globals['_CONFIG_LEVELENTRY']._serialized_start=817
|
|
54
|
+
_globals['_CONFIG_LEVELENTRY']._serialized_end=886
|
|
55
|
+
# @@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/policy/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,84 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: app/proxyman/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/proxyman/command/command.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from xray.common.protocol import user_pb2 as common_dot_protocol_dot_user__pb2
|
|
26
|
+
from xray.common.serial import typed_message_pb2 as common_dot_serial_dot_typed__message__pb2
|
|
27
|
+
from xray.core import config_pb2 as core_dot_config__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"app/proxyman/command/command.proto\x12\x19xray.app.proxyman.command\x1a\x1a\x63ommon/protocol/user.proto\x1a!common/serial/typed_message.proto\x1a\x11\x63ore/config.proto\"<\n\x10\x41\x64\x64UserOperation\x12(\n\x04user\x18\x01 \x01(\x0b\x32\x1a.xray.common.protocol.User\"$\n\x13RemoveUserOperation\x12\r\n\x05\x65mail\x18\x01 \x01(\t\"E\n\x11\x41\x64\x64InboundRequest\x12\x30\n\x07inbound\x18\x01 \x01(\x0b\x32\x1f.xray.core.InboundHandlerConfig\"\x14\n\x12\x41\x64\x64InboundResponse\"#\n\x14RemoveInboundRequest\x12\x0b\n\x03tag\x18\x01 \x01(\t\"\x17\n\x15RemoveInboundResponse\"W\n\x13\x41lterInboundRequest\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x33\n\toperation\x18\x02 \x01(\x0b\x32 .xray.common.serial.TypedMessage\"\x16\n\x14\x41lterInboundResponse\")\n\x13ListInboundsRequest\x12\x12\n\nisOnlyTags\x18\x01 \x01(\x08\"I\n\x14ListInboundsResponse\x12\x31\n\x08inbounds\x18\x01 \x03(\x0b\x32\x1f.xray.core.InboundHandlerConfig\"3\n\x15GetInboundUserRequest\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\r\n\x05\x65mail\x18\x02 \x01(\t\"C\n\x16GetInboundUserResponse\x12)\n\x05users\x18\x01 \x03(\x0b\x32\x1a.xray.common.protocol.User\"-\n\x1cGetInboundUsersCountResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\"H\n\x12\x41\x64\x64OutboundRequest\x12\x32\n\x08outbound\x18\x01 \x01(\x0b\x32 .xray.core.OutboundHandlerConfig\"\x15\n\x13\x41\x64\x64OutboundResponse\"$\n\x15RemoveOutboundRequest\x12\x0b\n\x03tag\x18\x01 \x01(\t\"\x18\n\x16RemoveOutboundResponse\"X\n\x14\x41lterOutboundRequest\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x33\n\toperation\x18\x02 \x01(\x0b\x32 .xray.common.serial.TypedMessage\"\x17\n\x15\x41lterOutboundResponse\"\x16\n\x14ListOutboundsRequest\"L\n\x15ListOutboundsResponse\x12\x33\n\toutbounds\x18\x01 \x03(\x0b\x32 .xray.core.OutboundHandlerConfig\"\x08\n\x06\x43onfig2\xae\t\n\x0eHandlerService\x12k\n\nAddInbound\x12,.xray.app.proxyman.command.AddInboundRequest\x1a-.xray.app.proxyman.command.AddInboundResponse\"\x00\x12t\n\rRemoveInbound\x12/.xray.app.proxyman.command.RemoveInboundRequest\x1a\x30.xray.app.proxyman.command.RemoveInboundResponse\"\x00\x12q\n\x0c\x41lterInbound\x12..xray.app.proxyman.command.AlterInboundRequest\x1a/.xray.app.proxyman.command.AlterInboundResponse\"\x00\x12q\n\x0cListInbounds\x12..xray.app.proxyman.command.ListInboundsRequest\x1a/.xray.app.proxyman.command.ListInboundsResponse\"\x00\x12x\n\x0fGetInboundUsers\x12\x30.xray.app.proxyman.command.GetInboundUserRequest\x1a\x31.xray.app.proxyman.command.GetInboundUserResponse\"\x00\x12\x83\x01\n\x14GetInboundUsersCount\x12\x30.xray.app.proxyman.command.GetInboundUserRequest\x1a\x37.xray.app.proxyman.command.GetInboundUsersCountResponse\"\x00\x12n\n\x0b\x41\x64\x64Outbound\x12-.xray.app.proxyman.command.AddOutboundRequest\x1a..xray.app.proxyman.command.AddOutboundResponse\"\x00\x12w\n\x0eRemoveOutbound\x12\x30.xray.app.proxyman.command.RemoveOutboundRequest\x1a\x31.xray.app.proxyman.command.RemoveOutboundResponse\"\x00\x12t\n\rAlterOutbound\x12/.xray.app.proxyman.command.AlterOutboundRequest\x1a\x30.xray.app.proxyman.command.AlterOutboundResponse\"\x00\x12t\n\rListOutbounds\x12/.xray.app.proxyman.command.ListOutboundsRequest\x1a\x30.xray.app.proxyman.command.ListOutboundsResponse\"\x00\x42m\n\x1d\x63om.xray.app.proxyman.commandP\x01Z.github.com/xtls/xray-core/app/proxyman/command\xaa\x02\x19Xray.App.Proxyman.Commandb\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.proxyman.command.command_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\035com.xray.app.proxyman.commandP\001Z.github.com/xtls/xray-core/app/proxyman/command\252\002\031Xray.App.Proxyman.Command'
|
|
38
|
+
_globals['_ADDUSEROPERATION']._serialized_start=147
|
|
39
|
+
_globals['_ADDUSEROPERATION']._serialized_end=207
|
|
40
|
+
_globals['_REMOVEUSEROPERATION']._serialized_start=209
|
|
41
|
+
_globals['_REMOVEUSEROPERATION']._serialized_end=245
|
|
42
|
+
_globals['_ADDINBOUNDREQUEST']._serialized_start=247
|
|
43
|
+
_globals['_ADDINBOUNDREQUEST']._serialized_end=316
|
|
44
|
+
_globals['_ADDINBOUNDRESPONSE']._serialized_start=318
|
|
45
|
+
_globals['_ADDINBOUNDRESPONSE']._serialized_end=338
|
|
46
|
+
_globals['_REMOVEINBOUNDREQUEST']._serialized_start=340
|
|
47
|
+
_globals['_REMOVEINBOUNDREQUEST']._serialized_end=375
|
|
48
|
+
_globals['_REMOVEINBOUNDRESPONSE']._serialized_start=377
|
|
49
|
+
_globals['_REMOVEINBOUNDRESPONSE']._serialized_end=400
|
|
50
|
+
_globals['_ALTERINBOUNDREQUEST']._serialized_start=402
|
|
51
|
+
_globals['_ALTERINBOUNDREQUEST']._serialized_end=489
|
|
52
|
+
_globals['_ALTERINBOUNDRESPONSE']._serialized_start=491
|
|
53
|
+
_globals['_ALTERINBOUNDRESPONSE']._serialized_end=513
|
|
54
|
+
_globals['_LISTINBOUNDSREQUEST']._serialized_start=515
|
|
55
|
+
_globals['_LISTINBOUNDSREQUEST']._serialized_end=556
|
|
56
|
+
_globals['_LISTINBOUNDSRESPONSE']._serialized_start=558
|
|
57
|
+
_globals['_LISTINBOUNDSRESPONSE']._serialized_end=631
|
|
58
|
+
_globals['_GETINBOUNDUSERREQUEST']._serialized_start=633
|
|
59
|
+
_globals['_GETINBOUNDUSERREQUEST']._serialized_end=684
|
|
60
|
+
_globals['_GETINBOUNDUSERRESPONSE']._serialized_start=686
|
|
61
|
+
_globals['_GETINBOUNDUSERRESPONSE']._serialized_end=753
|
|
62
|
+
_globals['_GETINBOUNDUSERSCOUNTRESPONSE']._serialized_start=755
|
|
63
|
+
_globals['_GETINBOUNDUSERSCOUNTRESPONSE']._serialized_end=800
|
|
64
|
+
_globals['_ADDOUTBOUNDREQUEST']._serialized_start=802
|
|
65
|
+
_globals['_ADDOUTBOUNDREQUEST']._serialized_end=874
|
|
66
|
+
_globals['_ADDOUTBOUNDRESPONSE']._serialized_start=876
|
|
67
|
+
_globals['_ADDOUTBOUNDRESPONSE']._serialized_end=897
|
|
68
|
+
_globals['_REMOVEOUTBOUNDREQUEST']._serialized_start=899
|
|
69
|
+
_globals['_REMOVEOUTBOUNDREQUEST']._serialized_end=935
|
|
70
|
+
_globals['_REMOVEOUTBOUNDRESPONSE']._serialized_start=937
|
|
71
|
+
_globals['_REMOVEOUTBOUNDRESPONSE']._serialized_end=961
|
|
72
|
+
_globals['_ALTEROUTBOUNDREQUEST']._serialized_start=963
|
|
73
|
+
_globals['_ALTEROUTBOUNDREQUEST']._serialized_end=1051
|
|
74
|
+
_globals['_ALTEROUTBOUNDRESPONSE']._serialized_start=1053
|
|
75
|
+
_globals['_ALTEROUTBOUNDRESPONSE']._serialized_end=1076
|
|
76
|
+
_globals['_LISTOUTBOUNDSREQUEST']._serialized_start=1078
|
|
77
|
+
_globals['_LISTOUTBOUNDSREQUEST']._serialized_end=1100
|
|
78
|
+
_globals['_LISTOUTBOUNDSRESPONSE']._serialized_start=1102
|
|
79
|
+
_globals['_LISTOUTBOUNDSRESPONSE']._serialized_end=1178
|
|
80
|
+
_globals['_CONFIG']._serialized_start=1180
|
|
81
|
+
_globals['_CONFIG']._serialized_end=1188
|
|
82
|
+
_globals['_HANDLERSERVICE']._serialized_start=1191
|
|
83
|
+
_globals['_HANDLERSERVICE']._serialized_end=2389
|
|
84
|
+
# @@protoc_insertion_point(module_scope)
|