From 40875b1ff160ed248cccf4ea0b76218e52876250 Mon Sep 17 00:00:00 2001 From: vladimir Date: Mon, 6 Jul 2026 02:56:33 +0300 Subject: [PATCH] =?UTF-8?q?refactor:=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B9=20?= =?UTF-8?q?=D0=BA=D0=BB=D0=B0=D1=81=D1=81=20XrayStorage=20=D0=B1=D0=B5?= =?UTF-8?q?=D0=B7=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D0=BE=D0=B2=20=D1=82?= =?UTF-8?q?=D1=80=D0=B5=D0=B1=D1=83=D1=8E=D1=89=D0=B8=D1=85=20=D0=BA=D0=BB?= =?UTF-8?q?=D0=B0=D1=81=D1=81=D0=BE=D0=B2=20User=20=D0=B8=20Outbound?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/xray_manager/core/xray_config.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/xray_manager/core/xray_config.py b/src/xray_manager/core/xray_config.py index 393d3ba..0c3ed1f 100644 --- a/src/xray_manager/core/xray_config.py +++ b/src/xray_manager/core/xray_config.py @@ -157,3 +157,19 @@ class XrayConfig: self._save_json(self.inbounds_data[filename], path) return True + + +class XrayStorage: + def __init__(self, config_path: Path): + self.path = config_path + + self.inbounds_files: list + self.outbound_files: list + self.routings_files: list + + self.inbounds: list[dict] + self.outbouns: list[dict] + self.routings: list[dict] + + def load_inbounds(self) -> list[dict]: + return self.inbounds