wip
This commit is contained in:
1
src/app.rs
Normal file
1
src/app.rs
Normal file
@@ -0,0 +1 @@
|
||||
pub mod node_notifier;
|
||||
2
src/app/node_notifier.rs
Normal file
2
src/app/node_notifier.rs
Normal file
@@ -0,0 +1,2 @@
|
||||
pub mod ports;
|
||||
pub mod services;
|
||||
0
src/app/node_notifier/ports.rs
Normal file
0
src/app/node_notifier/ports.rs
Normal file
1
src/app/node_notifier/services.rs
Normal file
1
src/app/node_notifier/services.rs
Normal file
@@ -0,0 +1 @@
|
||||
pub mod service;
|
||||
24
src/app/node_notifier/services/service.rs
Normal file
24
src/app/node_notifier/services/service.rs
Normal file
@@ -0,0 +1,24 @@
|
||||
pub struct Service {}
|
||||
|
||||
impl Service {
|
||||
pub fn new() -> Self {
|
||||
Service {}
|
||||
}
|
||||
|
||||
pub fn run(&self) -> Result<(), String> {
|
||||
println!("Service is running...");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_service_run() {
|
||||
let service = Service::new();
|
||||
assert!(service.run().is_ok(), "Service should run without errors");
|
||||
}
|
||||
}
|
||||
1
src/lib.rs
Normal file
1
src/lib.rs
Normal file
@@ -0,0 +1 @@
|
||||
pub mod app;
|
||||
0
src/outside.rs
Normal file
0
src/outside.rs
Normal file
0
src/outside/driven.rs
Normal file
0
src/outside/driven.rs
Normal file
0
src/outside/driven/for_collecting_data.rs
Normal file
0
src/outside/driven/for_collecting_data.rs
Normal file
0
src/outside/driven/for_notifying.rs
Normal file
0
src/outside/driven/for_notifying.rs
Normal file
0
src/outside/driven/for_notifying/discord_client.rs
Normal file
0
src/outside/driven/for_notifying/discord_client.rs
Normal file
Reference in New Issue
Block a user