MCPcopy Create free account
hub / github.com/compassvpn/agent / __init__

Method __init__

xray-config/run.py:25–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23
24class XrayService:
25 def __init__(self) -> None:
26 self.app: Flask = Flask(__name__)
27 self.valid_configs: Dict[str, Dict[str, str]] = {}
28 self.latest_metrics: str = ""
29 self.instance_location_info: Optional[Union[str, Dict[str, str]]] = None
30 self._shutdown_event: threading.Event = threading.Event()
31 self._setup_routes()
32
33 def _setup_routes(self) -> None:
34 @self.app.route("/config")

Callers

nothing calls this directly

Calls 1

_setup_routesMethod · 0.95

Tested by

no test coverage detected