forked from github-starred/komodo
move helpers around
This commit is contained in:
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
@@ -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},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user