030e59e
zhenyi
refactor(lib): migrate storage and security tier to central lib/config (auth, cache, db, email, jwt, payment, queue, rate_limit, storage)
030e59e
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>;
}