Skip to main content

Module validation

Module validation 

Source
Expand description

Example: Validation and quality assurance.

use oximedia_proxy::{ValidationChecker, ProxyLinkManager};

let manager = ProxyLinkManager::new("links.db").await?;
let checker = ValidationChecker::new(&manager);

let report = checker.validate()?;

if report.is_valid() {
    println!("All proxies are valid!");
} else {
    println!("Found {} errors", report.error_count());
    for error in &report.errors {
        println!("  - {}", error);
    }
}

Functionsยง

strict_validation
Perform strict validation with comprehensive checks.
validate_workflow
Validate all proxy links and report issues.