新增路由器、主机客户端和共享协议模块,支持多主机部署模式: - 路由器作为中央节点管理主机连接和消息路由 - 主机客户端作为工作节点运行本地代理 - 共享协议定义通信消息格式 - 新增独立运行模式standalone.py - 更新配置系统支持路由模式
16 lines
367 B
Python
16 lines
367 B
Python
"""Router module - public-facing component of PhoneWork."""
|
|
|
|
from router.nodes import NodeRegistry, NodeConnection, get_node_registry
|
|
from router.main import create_app
|
|
from router.rpc import forward
|
|
from router.routing_agent import route
|
|
|
|
__all__ = [
|
|
"NodeRegistry",
|
|
"NodeConnection",
|
|
"get_node_registry",
|
|
"create_app",
|
|
"forward",
|
|
"route",
|
|
]
|