2020-05-16 14:04:08 +00:00
|
|
|
pub mod api;
|
|
|
|
pub mod federation;
|
|
|
|
pub mod feeds;
|
|
|
|
pub mod index;
|
|
|
|
pub mod nodeinfo;
|
|
|
|
pub mod webfinger;
|
|
|
|
pub mod websocket;
|
|
|
|
|
|
|
|
use crate::{rate_limit::rate_limiter::RateLimiter, websocket::server::ChatServer};
|
2020-04-19 22:08:25 +00:00
|
|
|
use actix::prelude::*;
|
2020-05-16 14:04:08 +00:00
|
|
|
use actix_web::*;
|
2020-04-19 22:08:25 +00:00
|
|
|
use diesel::{
|
|
|
|
r2d2::{ConnectionManager, Pool},
|
|
|
|
PgConnection,
|
|
|
|
};
|
|
|
|
use std::sync::{Arc, Mutex};
|
|
|
|
|
|
|
|
pub type DbPoolParam = web::Data<Pool<ConnectionManager<PgConnection>>>;
|
|
|
|
pub type RateLimitParam = web::Data<Arc<Mutex<RateLimiter>>>;
|
|
|
|
pub type ChatServerParam = web::Data<Addr<ChatServer>>;
|