init
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
"""Глобальные ссылки на живые компоненты (заполняются в 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()
|
||||
Reference in New Issue
Block a user