From 4da8fe84c07e3f9e83f9b769f1670f4d52466001 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 22 Jun 2024 12:54:39 +0200 Subject: add switch module --- src/modules/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules/mod.rs') diff --git a/src/modules/mod.rs b/src/modules/mod.rs index 2e08142..0fe9ca0 100644 --- a/src/modules/mod.rs +++ b/src/modules/mod.rs @@ -14,6 +14,7 @@ use hyper::{body::Incoming, Request, Response}; use proxy::ProxyKind; use serde_yaml::Value; use std::{net::SocketAddr, pin::Pin, sync::Arc}; +use switch::SwitchKind; pub mod accesslog; pub mod auth; @@ -23,6 +24,7 @@ pub mod files; pub mod headers; pub mod hosts; pub mod proxy; +pub mod switch; pub type NodeRequest = Request; pub type NodeResponse = Response>; @@ -37,6 +39,7 @@ pub static MODULES: &[&dyn NodeKind] = &[ &AccessLogKind, &ErrorKind, &HeadersKind, + &SwitchKind, ]; pub struct NodeContext { -- cgit v1.2.3-70-g09d2