taolib.testing.config_center.server.app

taolib.testing.config_center.server.app#

FastAPI 应用工厂模块。

创建和配置 FastAPI 应用实例。

Functions#

lifespan(→ collections.abc.AsyncGenerator[None])

应用生命周期管理。

_init_system_roles(→ None)

初始化系统角色。

create_app(→ fastapi.FastAPI)

创建 FastAPI 应用实例。

Module Contents#

async taolib.testing.config_center.server.app.lifespan(app: fastapi.FastAPI) collections.abc.AsyncGenerator[None]#

应用生命周期管理。

async taolib.testing.config_center.server.app._init_system_roles(role_collection) None#

初始化系统角色。

taolib.testing.config_center.server.app.create_app() fastapi.FastAPI#

创建 FastAPI 应用实例。