mirror of https://github.com/telemt/telemt.git
48 lines
1.1 KiB
Rust
48 lines
1.1 KiB
Rust
//! Middle Proxy RPC transport.
|
|
|
|
mod codec;
|
|
mod config_updater;
|
|
mod handshake;
|
|
mod health;
|
|
mod pool;
|
|
mod pool_config;
|
|
mod pool_init;
|
|
mod pool_nat;
|
|
mod pool_refill;
|
|
mod pool_reinit;
|
|
mod pool_runtime_api;
|
|
mod pool_writer;
|
|
mod ping;
|
|
mod reader;
|
|
mod registry;
|
|
mod rotation;
|
|
mod send;
|
|
mod secret;
|
|
mod wire;
|
|
mod pool_status;
|
|
|
|
use bytes::Bytes;
|
|
|
|
pub use health::me_health_monitor;
|
|
#[allow(unused_imports)]
|
|
pub use ping::{run_me_ping, format_sample_line, format_me_route, MePingReport, MePingSample, MePingFamily};
|
|
pub use pool::MePool;
|
|
#[allow(unused_imports)]
|
|
pub use pool_nat::{stun_probe, detect_public_ip};
|
|
pub use registry::ConnRegistry;
|
|
pub use secret::fetch_proxy_secret;
|
|
#[allow(unused_imports)]
|
|
pub use config_updater::{
|
|
ProxyConfigData, fetch_proxy_config, fetch_proxy_config_with_raw, load_proxy_config_cache,
|
|
me_config_updater, save_proxy_config_cache,
|
|
};
|
|
pub use rotation::{MeReinitTrigger, me_reinit_scheduler, me_rotation_task};
|
|
pub use wire::proto_flags_for_tag;
|
|
|
|
#[derive(Debug)]
|
|
pub enum MeResponse {
|
|
Data { flags: u32, data: Bytes },
|
|
Ack(u32),
|
|
Close,
|
|
}
|