Add support for multiple targets and live-reload.

This commit is contained in:
Fabian Stamm
2022-08-25 20:50:11 +00:00
parent cc9872034d
commit f7af1ac020
7 changed files with 161 additions and 26 deletions

View File

@ -1,7 +1,9 @@
use crate::shutdown::Shutdown;
use std::sync::Arc;
use tokio::sync::RwLock;
pub(crate) struct Listener {
pub(crate) shutdown: Shutdown,
pub(crate) source: String,
pub(crate) target: String,
pub(crate) targets: Arc<RwLock<Vec<String>>>,
}