Add module-level docs and first milestone plan.

This commit is contained in:
2025-11-12 16:57:34 +01:00
parent 235064cbf2
commit 4edc2e5176
7 changed files with 34 additions and 0 deletions
+2
View File
@@ -1,3 +1,5 @@
//! Allocation manager: provisions relay sockets and forwards packets for TURN allocations.
//! Backlog: permission tables, channel bindings, allocation refresh timers, and rate limits.
use std::collections::HashMap;
use std::net::SocketAddr;
use std::sync::{Arc, Mutex};
+2
View File
@@ -1,3 +1,5 @@
//! Authentication helpers and the in-memory credential store used for the MVP server.
//! Backlog: Argon2-backed storage, nonce lifecycle, and integration with persistent secrets.
use async_trait::async_trait;
use std::sync::Arc;
use crate::traits::CredentialStore;
+2
View File
@@ -1,3 +1,5 @@
//! Configuration loader for server bind addresses, TLS artifacts, and seed credentials.
//! Backlog: hot-reload support, secret injection, and environment overrides per deployment.
use serde::Deserialize;
use std::path::Path;
+2
View File
@@ -1,3 +1,5 @@
//! Binary entry point that wires configuration, UDP listener, optional TLS listener, and allocation handling.
//! Backlog: graceful shutdown signals, structured metrics, and coordinated lifecycle management across listeners.
use std::net::SocketAddr;
use std::sync::Arc;
use tokio::net::UdpSocket;
+2
View File
@@ -1,3 +1,5 @@
//! STUN/TURN message parsing and builders for the server.
//! Backlog: full attribute coverage, fingerprint helpers, IPv6 handling, and fuzz testing.
use std::convert::TryInto;
use crate::models::stun::{StunHeader, StunAttribute, StunMessage};
use crate::constants::*;
+2
View File
@@ -1,3 +1,5 @@
//! TLS listener that wraps the STUN/TURN logic for `turns:` clients.
//! Backlog: ALPN negotiation, TCP relay support, and shared flow-control with the UDP path.
use std::sync::Arc;
use anyhow::Context;
use tokio::net::TcpListener;