use sova_core::Event;
#[derive(Debug, Clone)]
pub struct CertificateIssued {
pub domains: Vec<String>,
pub not_after_unix: u64,
}
impl Event for CertificateIssued {
fn name(&self) -> &'static str {
"acme.certificate_issued"
}
}
#[derive(Debug, Clone)]
pub struct CertificateRenewed {
pub domains: Vec<String>,
pub not_after_unix: u64,
}
impl Event for CertificateRenewed {
fn name(&self) -> &'static str {
"acme.certificate_renewed"
}
}
#[derive(Debug, Clone)]
pub struct AcmeFailed {
pub domains: Vec<String>,
pub error: String,
}
impl Event for AcmeFailed {
fn name(&self) -> &'static str {
"acme.failed"
}
}