Skip to main content

Module state

Module state 

Source
Expand description

共享状态:网关连接 + 订阅状态 + 授权

Modules§

audit_fmt
v1.4.90 P2-C: audit log Option 序列化助手。
push_filter 🔒
push_subscribers 🔒

Structs§

Inner 🔒
ServerState 内部可变部分,加锁存放 gateway 地址 + 懒加载的 [FutuClient]。
PendingPushDelivery 🔒
ServerState
MCP server 运行时状态

Constants§

LEGACY_PUSH_INFO_LEVEL_RANK 🔒
MCP_CONNECT_RETRY_DELAY 🔒
MCP_CONNECT_TOTAL_TIMEOUT 🔒

Functions§

base64_encode_bytes 🔒
v1.4.38 Phase 5 helper: bytes → base64 (用于 push body 安全包进 JSON)
format_symbol
格式化 Security 为 “MARKET.CODE”
notify_legacy_push 🔒
parse_symbol
push_delivery_is_authorized 🔒
Single authorization admission shared by legacy logging and modern resource delivery. A caller must pass this function before either target is created, so decode-failed restricted trade bodies and current scope revocations can never enter a modern queue.