Support connect gateway (#306)

This commit is contained in:
Kevin Yue authored and GitHub committed 2024-01-28 11:41:48 +08:00
1 parent 6fe6a1387a
commit b2bb35994f
14 files changed
+220 -92

No files matched your search

+9
View File
@@ -31,6 +31,15 @@ impl Display for Gateway {
}
impl Gateway {
pub fn new(name: String, address: String) -> Self {
Self {
name,
address,
priority: 0,
priority_rules: vec![],
}
}
pub fn name(&self) -> &str {
&self.name
}