feat: Start research on Event Actix Actor
This commit is contained in:
parent
259b6a14c3
commit
4082a1677d
15
src/event/README
Normal file
15
src/event/README
Normal file
@ -0,0 +1,15 @@
|
||||
# Event
|
||||
|
||||
Event stack.
|
||||
|
||||
## Concour
|
||||
|
||||
Event stack used in order to handle the concour event stack.
|
||||
|
||||
### Action : CronJob
|
||||
|
||||
Once every x time the ActixActox X CronJob should handle the trigger of scheduled concour event.
|
||||
|
||||
- [Actix Actor](https://actix.rs/docs/actix/actor/)
|
||||
- [JobScheduler exemple](https://github.com/mvniekerk/tokio-cron-scheduler/blob/main/examples/simple_job.rs)
|
||||
- [JobSheduler exemple 2](https://github.com/mvniekerk/tokio-cron-scheduler/blob/main/examples/lib.rs)
|
0
src/event/concour/mod.rs
Normal file
0
src/event/concour/mod.rs
Normal file
1
src/event/mod.rs
Normal file
1
src/event/mod.rs
Normal file
@ -0,0 +1 @@
|
||||
pub mod concour;
|
@ -2,5 +2,6 @@ pub mod api;
|
||||
pub mod botv2;
|
||||
pub mod config;
|
||||
pub mod db;
|
||||
pub mod event;
|
||||
pub mod img;
|
||||
pub mod tracing;
|
||||
|
@ -15,7 +15,7 @@ use tracing_actix_web::{RequestId, TracingLogger};
|
||||
use utoipa::OpenApi;
|
||||
use utoipa_swagger_ui::SwaggerUi;
|
||||
|
||||
#[tokio::main] // or #[actix_web::main]
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
let config = parse_local_config();
|
||||
let port = config.port;
|
||||
|
Loading…
Reference in New Issue
Block a user