Skip to main content

Module bridge

Module bridge 

Source

Re-exports§

pub use cache_bundle::CacheBundle;
pub use clock::ServerClockRuntime;
pub use utils::derive_exch_type_with_fallback;
pub use utils::listing_date_to_str;
pub use utils::market_code_to_exch_type_with_security;
pub use utils::market_code_to_qot_market_with_security;

Modules§

cache_bundle
Cache ownership boundary for super::GatewayBridge.
clock
push_delivery
QOT push delivery helpers.
push_parser
bridge push dispatcher core(v1.4.60 Phase E1 从 bridge/mod.rs 抽出)
utils
bridge 工具函数(v1.4.60 Phase E1 从 bridge/mod.rs 抽出)

Structs§

AuthRuntime
BackgroundRuntime
BackgroundTaskTracker
BrokerConnMeta
网关桥接器 每个 broker 通道的“重连所需元数据“缓存(v1.4.24)。
BrokerRuntime
BrokerStatus
CacheStats
ClientIdentityRuntime
ClientSigRefreshStatus
GatewayBridge
网关桥接器
GatewayConfig
网关配置
LoginCredentialStatus
LoginStatus
PlatformStatus
PushHealth
v1.4.83 §9 F2-F6 推送通道健康追踪。
PushHealthSnapshot
v1.4.83 §9 F5 结构化 snapshot, 给 /api/push-subscriber-info 直接序列化.
PushRuntime
QotLoginHealth
QotLoginHealthSnapshot
v1.4.90 P1-D structured snapshot for REST exposure.
QotRuntime
ReferenceRuntime
ReloadReport
v1.4.32+ /api/admin/reload 的结构化响应。
ReloadState
v1.4.34: bridge 保留的“reload 可用上下文“。
StaticCacheStats
StatusSnapshot
v1.4.32+ 只读健康状态快照(/api/admin/status 的结构化响应)
SubscriptionRuntime
TradeWriteRuntime

Enums§

PushEvent
推送事件 (从 push_callback 通过 channel 发送)
ReloadRefreshStatus
v1.4.106 codex 0554 F3 [P2]: /api/admin/reload 两阶段拆分后, 后台 credentials refresh 任务的状态机。

Constants§

BROKER_RECONNECT_MAX_CONSECUTIVE_FAILURES

Functions§

load_backend
从 SharedBackend 加载当前后端连接(原子读取,支持重连后自动更新)

Type Aliases§

SharedBackend
共享的后端连接引用,支持重连后原子替换。 所有 handler 持有同一个 Arc,重连时通过 ArcSwap::store 替换内部值, handler 下次 load() 即可获取新连接。
SharedPushHealth
共享指针——方便 push callback / dispatcher / REST handler 多处持有.
SharedQotLoginHealth
共享指针 — bridge spawn 30s polling task + REST handler 共享.