Skip to content

Commit

Permalink
Merge #257: docs: crate docs for lib.rs
Browse files Browse the repository at this point in the history
78f295b docs: [#253] crate docs for app.rs (Jose Celano)
a58554a docs: [#253] crate docs for lib.rs (Jose Celano)

Pull request description:

  Entrypoint for the crate documentation, the `lib.rs` file.

Top commit has no ACKs.

Tree-SHA512: ec13ffc6408f3cf06da59cf639807e11b8e5baecbcad016ec8662753ff53cc9e971bff1e9ae3979ae729def9f3ab8a63d884584dba4a56d58fb0c8510c3daf1d
  • Loading branch information
josecelano committed Mar 22, 2023
2 parents 62cd78f + 78f295b commit 1333cc0
Show file tree
Hide file tree
Showing 4 changed files with 443 additions and 0 deletions.
1 change: 1 addition & 0 deletions cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"Azureus",
"bencode",
"bencoded",
"beps",
"binascii",
"Bitflu",
"bools",
Expand Down
Binary file added docs/media/torrust-tracker-components.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
//! Torrust Tracker application.
//!
//! The tracker application has a global configuration for multiple jobs.
//! It's basically a container for other services.
//! It also check constraint and dependencies between services. For example:
//! It's not safe to run a UDP tracker on top of a core public tracker, as UDP trackers
//! do not allow private access to the tracker data.
//!
//! The application is responsible for:
//!
//! - Loading data from the database when it's needed.
//! - Starting some jobs depending on the configuration.
//!
//! The started jobs may be:
//!
//! - Torrent cleaner: it removes inactive peers and (optionally) peerless torrents.
//! - UDP trackers: the user can enable multiple UDP tracker on several ports.
//! - HTTP trackers: the user can enable multiple HTTP tracker on several ports.
//! - Tracker REST API: the tracker API can be enabled/disabled.
use std::sync::Arc;

use log::warn;
Expand Down
Loading

0 comments on commit 1333cc0

Please sign in to comment.