feat: async image conversion service (avif/webp) with backfill

This commit is contained in:
2026-05-12 15:05:28 +02:00
parent 4269eca582
commit 696e3e170c
22 changed files with 1286 additions and 16 deletions

View File

@@ -41,6 +41,9 @@ pub enum DomainEvent {
movie_id: MovieId,
external_metadata_id: String,
},
ImageStored {
key: String,
},
}
#[async_trait]

View File

@@ -264,3 +264,9 @@ pub trait ImportProfileRepository: Send + Sync {
async fn get(&self, id: &ImportProfileId, user_id: &UserId) -> Result<Option<ImportProfile>, DomainError>;
async fn delete(&self, id: &ImportProfileId) -> Result<(), DomainError>;
}
#[async_trait]
pub trait ImageRefPort: Send + Sync {
async fn swap(&self, old_key: &str, new_key: &str) -> Result<(), DomainError>;
async fn list_keys(&self) -> Result<Vec<String>, DomainError>;
}