diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-22 12:54:39 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-22 12:54:39 +0200 |
commit | 4da8fe84c07e3f9e83f9b769f1670f4d52466001 (patch) | |
tree | bf4384034771001b136207c4df386daf99dac7fa /src/modules/mod.rs | |
parent | 1451273fa59d14070e525562ec466a21128fa671 (diff) | |
download | gnix-4da8fe84c07e3f9e83f9b769f1670f4d52466001.tar gnix-4da8fe84c07e3f9e83f9b769f1670f4d52466001.tar.bz2 gnix-4da8fe84c07e3f9e83f9b769f1670f4d52466001.tar.zst |
add switch module
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 { |