You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
517 B
Rust
27 lines
517 B
Rust
5 years ago
|
use crate::crypto::*;
|
||
|
use crate::dnscrypt_certs::*;
|
||
|
|
||
|
use std::sync::Arc;
|
||
|
use tokio::runtime::Runtime;
|
||
|
|
||
|
#[derive(Debug)]
|
||
|
pub struct Globals {
|
||
|
pub runtime: Arc<Runtime>,
|
||
|
pub resolver_kp: SignKeyPair,
|
||
|
pub dnscrypt_certs: Vec<DNSCryptCert>,
|
||
|
}
|
||
|
|
||
|
impl Globals {
|
||
|
pub fn new(
|
||
|
runtime: Arc<Runtime>,
|
||
|
resolver_kp: SignKeyPair,
|
||
|
dnscrypt_certs: Vec<DNSCryptCert>,
|
||
|
) -> Self {
|
||
|
Globals {
|
||
|
runtime,
|
||
|
resolver_kp,
|
||
|
dnscrypt_certs,
|
||
|
}
|
||
|
}
|
||
|
}
|