File tree 5 files changed +5
-21
lines changed
packages/tracker-core/src
5 files changed +5
-21
lines changed Original file line number Diff line number Diff line change 6
6
//!
7
7
//! There are services to [`generate_key`] and [`verify_key_expiration`] authentication keys.
8
8
//!
9
- //! Authentication keys are used only by [` HTTP`](crate::servers::http) trackers. All keys have an expiration time, that means
9
+ //! Authentication keys are used only by HTTP trackers. All keys have an expiration time, that means
10
10
//! they are only valid during a period of time. After that time the expiring key will no longer be valid.
11
11
//!
12
12
//! Keys are stored in this struct:
@@ -112,7 +112,7 @@ pub fn generate_key(lifetime: Option<Duration>) -> PeerKey {
112
112
///
113
113
/// # Errors
114
114
///
115
- /// Will return a verification error [`crate::authentication::key::Error`] if
115
+ /// Will return a verification error [`enum@ crate::authentication::key::Error`] if
116
116
/// it cannot verify the key.
117
117
pub fn verify_key_expiration ( auth_key : & PeerKey ) -> Result < ( ) , Error > {
118
118
let current_time: DurationSinceUnixEpoch = CurrentClock :: now ( ) ;
Original file line number Diff line number Diff line change 1
1
//! Database driver factory.
2
- //!
3
- //! See [`databases::driver::build`](crate::core::databases::driver::build)
4
- //! function for more information.
5
2
use mysql:: Mysql ;
6
3
use serde:: { Deserialize , Serialize } ;
7
4
use sqlite:: Sqlite ;
Original file line number Diff line number Diff line change 1
1
//! Database errors.
2
2
//!
3
- //! This module contains the [Database errors](crate::core:: databases::error::Error).
3
+ //! This module contains the [Database errors](crate::databases::error::Error).
4
4
use std:: panic:: Location ;
5
5
use std:: sync:: Arc ;
6
6
Original file line number Diff line number Diff line change 4
4
//!
5
5
//! There are two implementations of the trait (two drivers):
6
6
//!
7
- //! - [ `Mysql`](crate::core::databases::mysql::Mysql)
8
- //! - [ `Sqlite`](crate::core::databases::sqlite::Sqlite)
7
+ //! - `Mysql`
8
+ //! - `Sqlite`
9
9
//!
10
10
//! > **NOTICE**: There are no database migrations. If there are any changes,
11
11
//! > we will implemented them or provide a script to migrate to the new schema.
Original file line number Diff line number Diff line change 25
25
//! - [Torrents](#torrents)
26
26
//! - [Peers](#peers)
27
27
//! - [Configuration](#configuration)
28
- //! - [Services](#services)
29
28
//! - [Authentication](#authentication)
30
29
//! - [Statistics](#statistics)
31
30
//! - [Persistence](#persistence)
342
341
//!
343
342
//! Refer to the [`configuration` module documentation](https://docs.rs/torrust-tracker-configuration) to get more information about all options.
344
343
//!
345
- //! # Services
346
- //!
347
- //! Services are domain services on top of the core tracker domain. Right now there are two types of service:
348
- //!
349
- //! - For statistics: [`crate::packages::statistics::services`]
350
- //! - For torrents: [`crate::core::torrent::services`]
351
- //!
352
- //! Services usually format the data inside the tracker to make it easier to consume by other parts.
353
- //! They also decouple the internal data structure, used by the tracker, from the way we deliver that data to the consumers.
354
- //! The internal data structure is designed for performance or low memory consumption. And it should be changed
355
- //! without affecting the external consumers.
356
- //!
357
344
//! Services can include extra features like pagination, for example.
358
345
//!
359
346
//! # Authentication
You can’t perform that action at this time.
0 commit comments