08cefb1
use crate::pack::types::{HotPackResult, IndexResult, IngestPackResult, PackStats, RepackResult};
pub trait PackOps {
fn pack_ingest_pack(&self, data: &[u8]) -> Result<IngestPackResult, crate::Error>;
fn pack_index(&self, pack_id: &str) -> Result<IndexResult, crate::Error>;
fn pack_repack(&self) -> Result<RepackResult, crate::Error>;
fn pack_stats(&self) -> Result<PackStats, crate::Error>;
fn pack_cache_hot_pack(&self, pack_id: &str) -> Result<HotPackResult, crate::Error>;
}