mirror of
https://github.com/katanemo/plano.git
synced 2026-05-18 13:45:15 +02:00
add listener routes for internal service proxying (#793)
This commit is contained in:
parent
198c912202
commit
c2480639b2
13 changed files with 219 additions and 2 deletions
|
|
@ -194,6 +194,7 @@ mod tests {
|
|||
Listener {
|
||||
name: name.to_string(),
|
||||
agents: Some(agents),
|
||||
routes: None,
|
||||
port: 8080,
|
||||
router: None,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ mod tests {
|
|||
let listener = Listener {
|
||||
name: "test-listener".to_string(),
|
||||
agents: Some(vec![agent_pipeline.clone()]),
|
||||
routes: None,
|
||||
port: 8080,
|
||||
router: None,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -36,11 +36,18 @@ pub struct AgentFilterChain {
|
|||
pub filter_chain: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct ListenerRoute {
|
||||
pub path_prefix: String,
|
||||
pub upstream: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct Listener {
|
||||
pub name: String,
|
||||
pub router: Option<String>,
|
||||
pub agents: Option<Vec<AgentFilterChain>>,
|
||||
pub routes: Option<Vec<ListenerRoute>>,
|
||||
pub port: u16,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue