Crate ya_sb_router

source ·
Expand description

§Gsb Router

use ya_sb_router::{InstanceConfig, RouterConfig};

#[actix_rt::main]
async fn main() {
    let mut config = RouterConfig::from_env();
    config.gc_interval_secs(60);
    InstanceConfig::new(config).run_url(None).await;
}

Re-exports§

  • pub use unix::connect;

Structs§

Functions§

  • Starts in background new server instance on given gsb address.
  • Starts in background new server instance on given tcp address.