futu_backend/auth/commconfig/
mod.rs1mod accessors;
18mod fetch;
19mod parsers;
20mod totp;
21mod types;
22
23#[cfg(test)]
24mod tests;
25
26#[cfg(test)]
28pub(super) use super::*;
29
30pub use accessors::{
32 broker_auth_webtcp_identity, default_webtcp_identity_for_client_type,
33 forced_ip_for_attribution, ips_for_attribution, ips_for_broker, ips_for_web_identity,
34 spawn_refresher, webtcp_addrs_for_identity, webtcp_hardcoded_addrs,
35};
36pub use fetch::{SharedCommConfig, empty_snapshot, fetch_all};
37pub use parsers::is_web_identity;
38pub use totp::gen_totp_sha1;
39pub use types::{
40 AuthGuaranteedDomainMap, CONN_WEB_AU, CONN_WEB_CA, CONN_WEB_CN, CONN_WEB_HK, CONN_WEB_JP,
41 CONN_WEB_MY, CONN_WEB_SG, CONN_WEB_US, CommonConfigSnapshot, ForcedIpEntry, ForcedIpMap,
42 GuaranteedBrokerIpMap, GuaranteedIpMap, GuaranteedWebIpMap,
43};
44
45#[cfg(test)]
47pub(super) use accessors::delay_until_next_refresh;
48#[cfg(test)]
49pub(super) use parsers::client_version_dotted;
50#[cfg(test)]
51pub(super) use parsers::{
52 api_root_for_client, is_broker_identity, parse_auth_guaranteed_domain_list, parse_forced_ip,
53 parse_guaranteed_ip, parse_web_tcp_config_identity, value_kind,
54};
55#[cfg(test)]
56pub(super) use std::collections::HashMap;
57#[cfg(test)]
58pub(super) use totp::base32_decode;