authority: add ArcAuthority, add into_groups & iter_authorities

This commit is contained in:
Luna Yao
2026-04-03 14:27:37 +02:00
parent c9ce17d25e
commit 58c7828c85
2 changed files with 31 additions and 8 deletions
+5 -2
View File
@@ -1,10 +1,13 @@
use derive_more::{Deref, DerefMut, From};
use hickory_proto::rr::{LowerName, RecordType};
use hickory_server::authority::{
Authority, LookupControlFlow, LookupObject, LookupOptions, MessageRequest, UpdateResult,
ZoneType,
Authority, AuthorityObject, LookupControlFlow, LookupObject, LookupOptions, MessageRequest,
UpdateResult, ZoneType,
};
use hickory_server::server::RequestInfo;
use std::sync::Arc;
pub type ArcAuthority = Arc<dyn AuthorityObject>;
#[derive(From, Deref, DerefMut)]
pub struct ChainedAuthority<A>(A)