change dependencies to be more sharable
This commit is contained in:
@@ -1,12 +1,18 @@
|
||||
use crate::controller::Controller;
|
||||
|
||||
impl Controller {
|
||||
pub async fn add_domain_to_dns(&self, domain: &str) -> Result<(), Box<dyn std::error::Error>> {
|
||||
pub(in crate::controller) async fn add_domain_to_dns(
|
||||
&self,
|
||||
domain: &str,
|
||||
) -> Result<(), Box<dyn std::error::Error>> {
|
||||
self.dns_manager.add_domain(domain, self.pub_addr).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn del_domain_to_dns(&self, domain: &str) -> Result<(), Box<dyn std::error::Error>> {
|
||||
pub(in crate::controller) async fn del_domain_to_dns(
|
||||
&self,
|
||||
domain: &str,
|
||||
) -> Result<(), Box<dyn std::error::Error>> {
|
||||
self.dns_manager.del_domain(domain).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user