diff options
Diffstat (limited to 'src/modules/mod.rs')
-rw-r--r-- | src/modules/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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<Incoming>; pub type NodeResponse = Response<BoxBody<Bytes, ServiceError>>; @@ -37,6 +39,7 @@ pub static MODULES: &[&dyn NodeKind] = &[ &AccessLogKind, &ErrorKind, &HeadersKind, + &SwitchKind, ]; pub struct NodeContext { |