1
2
3
4
5
6
7
8
9
10
11
12
//! Shared state and store for the iroh-dns-server

use crate::{dns::DnsHandler, store::ZoneStore};

/// The shared app state.
#[derive(Clone)]
pub struct AppState {
    /// The pkarr DNS store
    pub store: ZoneStore,
    /// Handler for DNS requests
    pub dns_handler: DnsHandler,
}