INNER CODE UNIT · Rust

new

Trow-Registry/trow · src/services/mod.rs:56

    pub fn new(
        repos: Arc<Repositories>,
        storage: Arc<FileStorage>,
        config: Arc<TrowConfig>,
    ) -> Self {
        let proxy = Arc::new(ProxyService::new(repos.clone(), storage.clone()));
        Self {
            blob: BlobService::new(repos.clone(), storage.clone()),
            blob_upload: BlobUploadService::new(repos.clone(), storage.clone()),
            manifest: ManifestService::new(repos.clone(), config.clone(), proxy.clone()),
            catalog: CatalogService::new(repos.clone()),
            referrers: ReferrersService::new(repos.clone()),
            proxy,
            gc: Arc::new(GcService::new(
                repos.clone(),
                storage.clone(),
                config.clone(),
            )),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…