Crate certain

source ·
Expand description

Client for listening to certificate transparency logs.

Example

use std::time::{Duration};
 
use certain::{
     
    StreamConfig,
    StreamError, 
};
 
fn main() -> Result<(), StreamError> {
    let config = StreamConfig::new("https://ct.googleapis.com/logs/argon2023/")
        .timeout(Duration::from_secs(1))
        .workers(4)
        .batch(1);
 
    certain::blocking::stream(config, |entry| {
        println!("{entry:#?}");
        true // continue
    })
}

Re-exports

Modules

Structs

Functions