a34fe57
zhenyi
feat(lib): add new handlers and export views (db users_loader, repo readme/lifecycle/tree/PR/release, issue reopen, export sidebar/basic)
a34fe57
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>;
}