blob: 0b4a85a3af65162a9e850d863fbc86eb77105afc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
use crate::{
blobservice::{BlobService, MemoryBlobService},
chunkservice::{ChunkService, MemoryChunkService},
directoryservice::{DirectoryService, MemoryDirectoryService},
pathinfoservice::{MemoryPathInfoService, PathInfoService},
};
pub fn gen_blob_service() -> impl BlobService + Send + Sync + Clone + 'static {
MemoryBlobService::new()
}
pub fn gen_chunk_service() -> impl ChunkService + Clone {
MemoryChunkService::new()
}
pub fn gen_directory_service() -> impl DirectoryService + Send + Sync + Clone + 'static {
MemoryDirectoryService::new()
}
pub fn gen_pathinfo_service() -> impl PathInfoService {
MemoryPathInfoService::default()
}
|