files v2 controller without impl
parent
2b82fb7aac
commit
f504632c4d
|
|
@ -5,7 +5,25 @@ use std::borrow::BorrowMut;
|
|||
use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
use tokio::sync::mpsc;
|
||||
use tokio::sync::mpsc::Sender as MpscSender;
|
||||
use tokio::time::Duration;
|
||||
use crate::options::structs::Events;
|
||||
|
||||
pub mod v2 {
|
||||
use std::collections::HashMap;
|
||||
|
||||
use crate::options::structs::Triggers;
|
||||
|
||||
use super::*;
|
||||
|
||||
struct FilesController<'a> {
|
||||
name: &'a str,
|
||||
watcher: Inotify,
|
||||
// obj: Arc<Files>,
|
||||
triggers: HashMap<&'a str, Triggers<'a>>,
|
||||
event_registrator: Vec<MpscSender<Events<'a>>>,
|
||||
}
|
||||
}
|
||||
|
||||
/// # Fn `create_watcher`
|
||||
/// ## for creating watcher on file's delete | update events
|
||||
|
|
|
|||
Loading…
Reference in New Issue