diff options
| author | Saiyed Shizain <saiyedshizain@gmail.com> | 2026-07-13 19:45:40 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-13 19:45:40 +0530 |
| commit | 5d4eaf85434658f6fed621016e0bc2bae59e88d1 (patch) | |
| tree | 93ec34c177b6a48d90d5024313c3a10f5b7c5d2b /internal/service/service.go | |
| parent | f41b0b92046e1bee512b3e4143ed9dc9a9ba9713 (diff) | |
| parent | 8e8f0bd38f0cc0ee435ae2ed392a206e1ea73a32 (diff) | |
| download | galleryd-5d4eaf85434658f6fed621016e0bc2bae59e88d1.tar.xz galleryd-5d4eaf85434658f6fed621016e0bc2bae59e88d1.zip | |
Merge pull request #8 from RanXom/feat/api
Feat/api: expose gallery HTTP API
Diffstat (limited to 'internal/service/service.go')
| -rw-r--r-- | internal/service/service.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/service/service.go b/internal/service/service.go index 6183e26..68a764e 100644 --- a/internal/service/service.go +++ b/internal/service/service.go @@ -8,5 +8,12 @@ import ( // GalleryService provides gallery operations. type GalleryService interface { + // Load scans the configured roots and builds the in-memory gallery. + Load(ctx context.Context) error + + // Gallery returns the currently loaded gallery. Gallery(ctx context.Context) ([]gallery.Photo, error) + + // Photo returns a single photo by its ID. + Photo(ctx context.Context, id string) (gallery.Photo, error) } |