diff options
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) } |