Skip to main content

futu_gateway_core/
lib.rs

1// v1.4.110 P0-5 T15 P4 wire: gateway-core crate root.
2//
3// 持有跨 trd/qot 域共享的内容:
4//   - bridge::* (GatewayBridge + dispatcher + push 健康监控 + 鉴权 + connect)
5//   - handlers_shared (decode / response 构建 helpers, 跨 trd/qot 共用)
6//   - handlers_sys (sys/auth/keepalive 系统类 handler)
7//   - idempotency (90s TTL cache for PlaceOrder/Modify/Cancel)
8//   - stock_db (sqlite cache for stock_list / stock_info)
9//
10// `futu-opend` 通过 `futu_gateway_core::bridge::{GatewayBridge, GatewayConfig}`
11// 接入. trd / qot 各域 handler 在 gateway-trd / gateway-qot crate, 通过其
12// `register_handlers` 入口注册到 server router.
13
14pub mod bridge;
15pub mod handlers_shared;
16pub mod handlers_sys;
17pub mod idempotency;
18pub mod security_display_name;
19pub mod security_on_demand;
20pub mod stock_db;