move helpers around

This commit is contained in:
mbecker20
2023-07-16 15:38:01 +00:00
parent 6c7dda2b67
commit ce29e0685c
7 changed files with 6 additions and 7 deletions

View File

@@ -22,6 +22,11 @@ use rand::{thread_rng, Rng};
use crate::{auth::RequestUser, state::State};
pub mod cache;
pub mod channel;
pub mod alert;
pub mod db;
pub fn empty_or_only_spaces(word: &str) -> bool {
if word.is_empty() {
return true;

View File

@@ -4,13 +4,9 @@ extern crate log;
use axum::{Extension, Router};
use termination_signal::tokio::immediate_term_handle;
mod alert;
mod auth;
mod cache;
mod channel;
mod cloud;
mod config;
mod db;
mod helpers;
mod listener;
mod monitor;

View File

@@ -12,10 +12,8 @@ use monitor_types::{
use crate::{
auth::{GithubOauthClient, GoogleOauthClient, JwtClient},
cache::Cache,
channel::BroadcastChannel,
config::{CoreConfig, Env},
db::DbClient,
helpers::{cache::Cache, channel::BroadcastChannel, db::DbClient},
monitor::{CachedDeploymentStatus, CachedServerStatus},
};