chore: clean up, rename types.rs to server.rs
This commit is contained in:
parent
a8bc61f40c
commit
0c68399210
9 changed files with 110 additions and 41 deletions
|
@ -12,7 +12,7 @@ use tokio::sync::Mutex;
|
|||
use crate::{
|
||||
config::{self, Client, Config, Host},
|
||||
db::{BoxyDatabase, Endpoint},
|
||||
types::{GeneralBody, GeneralResponse, TcpIntercept},
|
||||
server::{GeneralBody, GeneralResponse, TcpIntercept},
|
||||
};
|
||||
|
||||
use super::proxy::ProxyService;
|
||||
|
@ -23,8 +23,7 @@ pub struct ControllerService {
|
|||
}
|
||||
|
||||
impl TcpIntercept for ControllerService {
|
||||
fn handle(&mut self, stream: &tokio::net::TcpStream) {
|
||||
}
|
||||
fn stream(&mut self, _: &tokio::net::TcpStream) {}
|
||||
}
|
||||
|
||||
impl Service<Request<Incoming>> for ControllerService {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue