-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dionisio
committed
Nov 19, 2024
1 parent
fb4f866
commit 26af028
Showing
19 changed files
with
191 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
pub mod gateway; | ||
pub mod rest; | ||
pub mod gateway; // Módulo para Gateway | ||
pub mod backends; // Módulo para manejar Backends | ||
pub mod observability; // Módulo para Observability | ||
pub mod security; // Módulo para Seguridad | ||
pub mod plugins; // Módulo para Plugins | ||
pub mod rest; // REST server | ||
|
||
// Reexportar configuraciones de rutas para `main.rs` | ||
// pub use backends::configure_routes as configure_backends_routes; | ||
// pub use observability::configure_routes as configure_observability_routes; | ||
// pub use security::configure_routes as configure_security_routes; | ||
// pub use plugins::configure_routes as configure_plugins_routes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
pub mod routes; | ||
|
||
pub use routes::configure_routes; | ||
|
||
/// Inicializar el manejador de plugins | ||
pub async fn start_plugins_manager() -> Result<(), Box<dyn std::error::Error + Send + Sync>> { | ||
println!("Starting Plugins Manager..."); | ||
// Aquí iría la lógica específica de inicialización de plugins | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
use actix_web::web; | ||
|
||
pub fn configure_routes(cfg: &mut web::ServiceConfig) { | ||
cfg.service( | ||
web::scope("/api/plugins") | ||
.route("/status", web::get().to(|| async { "Plugin status endpoint" })), // Ejemplo | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.