dynamic_tcp_proxy

Crates.iodynamic_tcp_proxy
lib.rsdynamic_tcp_proxy
version0.1.0
sourcesrc
created_at2024-08-10 07:44:32.492618
updated_at2024-08-10 07:44:32.492618
descriptionDynamic proxy implementation in Rust. This crate is designed to allow you to start a proxy that can be reconfigured at runtime.
homepagehttps://github.com/sathish-pv/port-switch/tree/main/crates/dynamic_tcp_proxy
repositoryhttps://github.com/sathish-pv/port-switch
max_upload_size
id1332129
size8,892
Sathish (sathish-pv)

documentation

README

DynamicProxy

The DynamicProxy crate provides a dynamic proxy implementation in Rust. This crate is designed to allow you to start a proxy that can be reconfigured at runtime. It leverages channels to update the proxy's configuration and spawns a thread to manage the proxy's operation.

Features

  • Dynamic Proxy Configuration: Update the proxy's configuration at runtime using a Sender.
  • Concurrency: The proxy runs in its own thread, allowing it to handle requests concurrently.
  • Simple API: The crate provides an easy-to-use API for starting the proxy and sending configuration updates.

Usage

DynamicProxy::start

The start method initializes the dynamic proxy and begins its operation. It returns a Sender for updating the proxy's configuration and a JoinHandle for the spawned thread managing the proxy.

Signature

impl DynamicProxy {
    pub fn start(self) -> Result<(Sender<ProxyConfig>, JoinHandle<()>), Error>
}
Commit count: 0

cargo fmt