use archapp_xc::RT1; use async_channel::Receiver; use err::Error; use futures_core::Stream; use items::Framable; use netpod::query::RawEventsQuery; use netpod::{ArchiverAppliance, Channel, ChannelInfo, NodeConfigCached}; use std::collections::BTreeMap; use std::future::Future; use std::pin::Pin; pub fn scan_files( pairs: BTreeMap, node_config: NodeConfigCached, ) -> Pin>, Error>> + Send>> { Box::pin(archapp::parse::scan_files_inner(pairs, node_config)) } pub async fn make_event_pipe( evq: &RawEventsQuery, aa: &ArchiverAppliance, ) -> Result> + Send>>, Error> { archapp::events::make_event_pipe(evq, aa).await } pub async fn channel_info(channel: &Channel, node_config: &NodeConfigCached) -> Result { archapp::events::channel_info(channel, node_config).await }