Crate motorx_core

Crate motorx_core 

Source
Expand description

A reverse-proxy written in pure rust, built on hyper, tokio, and rustls

§Motorx

§Basic usage

#[tokio::main]
async fn main() {
    // Register a tracing subscriber for logging

    let server = motorx_core::Server::new(motorx_core::Config { /* Your config here */ });

    // Start the server
    server.run().await.unwrap()
}

Re-exports§

pub use config::CacheSettings;
pub use config::Config;
pub use config::Rule;
pub use error::Error;

Modules§

config
error
log

Macros§

cfg_logging
Everything in this block is only compiled with logging feature

Structs§

Server
Motorx proxy server