Implements Better Abstraction on Top of StorageService and File Handlers

Adds Expiration Time to Config

Reformats Project
This commit is contained in:
2023-08-10 01:54:17 -03:00
parent 0b320a3222
commit 2bd7ae10b9
12 changed files with 125 additions and 66 deletions

View File

@@ -1,7 +0,0 @@
from resize_image_service.depends.depend_s3_service import (
dependency_s3_service,
)
def s3_image_worker(string_url: str) -> None:
dependency_s3_service().process_image(string_url)

View File

@@ -0,0 +1,7 @@
from resize_image_service.depends.depend_s3_service import (
dependency_storage_service,
)
def storage_file_worker(string_url: str) -> None:
dependency_storage_service().process_image(string_url)