media/

directory
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2026 License: AGPL-3.0

Directories

Path Synopsis
Package adapter contains the media bounded context's outbound adapters: PhotoRepository (Postgres), LocalPhotoStore and S3PhotoStore (the two domain.PhotoStore implementations), StoreResolver, and the shared upload-validation/EXIF helpers every PhotoStore backend uses.
Package adapter contains the media bounded context's outbound adapters: PhotoRepository (Postgres), LocalPhotoStore and S3PhotoStore (the two domain.PhotoStore implementations), StoreResolver, and the shared upload-validation/EXIF helpers every PhotoStore backend uses.
Package app implements the media bounded context's shared use cases: PhotoService (upload/delete/list/serve, generic over a caller-chosen PhotoClass) and ReaperService (reclaiming orphaned object-store bytes, generic over a caller-supplied set of PhotoClass sources).
Package app implements the media bounded context's shared use cases: PhotoService (upload/delete/list/serve, generic over a caller-chosen PhotoClass) and ReaperService (reclaiming orphaned object-store bytes, generic over a caller-supplied set of PhotoClass sources).
Package bootstrap builds the media bounded context's composition-root-only dependency: the PhotoStore resolver/write-backend pair every application consuming media/domain.PhotoStoreResolver needs, constructed identically from one plain ResolverConfig rather than each application maintaining its own copy of the local/S3 selection logic.
Package bootstrap builds the media bounded context's composition-root-only dependency: the PhotoStore resolver/write-backend pair every application consuming media/domain.PhotoStoreResolver needs, constructed identically from one plain ResolverConfig rather than each application maintaining its own copy of the local/S3 selection logic.
Package domain holds the media bounded context's entities, value objects, and ports: Photo, PhotoClass, StorageBackend, and the PhotoStore/ PhotoRepository/ObjectLister/ExifReader ports adapters implement.
Package domain holds the media bounded context's entities, value objects, and ports: Photo, PhotoClass, StorageBackend, and the PhotoStore/ PhotoRepository/ObjectLister/ExifReader ports adapters implement.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL