25 lines
627 B
Python
25 lines
627 B
Python
"""Глобальные ссылки на живые компоненты (заполняются в lifespan)."""
|
|
from __future__ import annotations
|
|
|
|
from typing import TYPE_CHECKING
|
|
|
|
if TYPE_CHECKING:
|
|
from .config import Config
|
|
from .db import Database
|
|
from .recorder.indexer import Indexer
|
|
from .recorder.supervisor import Supervisor
|
|
from .services.retention import Retention
|
|
from .api.ws import ConnectionManager
|
|
|
|
|
|
class Runtime:
|
|
config: "Config"
|
|
db: "Database"
|
|
supervisor: "Supervisor"
|
|
indexer: "Indexer"
|
|
retention: "Retention"
|
|
ws: "ConnectionManager"
|
|
|
|
|
|
runtime = Runtime()
|