aboutsummaryrefslogtreecommitdiff
path: root/internal/service/service.go
diff options
context:
space:
mode:
authorRanXom <saiyedshizain@gmail.com>2026-07-17 16:42:21 +0530
committerRanXom <saiyedshizain@gmail.com>2026-07-17 16:42:21 +0530
commit9237991fa79f9b90a3f14f8b3c42dab25d029f05 (patch)
tree1df25421e3a5f6aafa2cecf7aa063d1b8cd1e65d /internal/service/service.go
parent46d2bf8bb5a0d18bdbe613a9346a5757b39e0a35 (diff)
downloadgalleryd-9237991fa79f9b90a3f14f8b3c42dab25d029f05.tar.xz
galleryd-9237991fa79f9b90a3f14f8b3c42dab25d029f05.zip
feat(gallery): introduce gallery query
Diffstat (limited to 'internal/service/service.go')
-rw-r--r--internal/service/service.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/service/service.go b/internal/service/service.go
index 0b9b253..9eec0b8 100644
--- a/internal/service/service.go
+++ b/internal/service/service.go
@@ -12,7 +12,10 @@ type GalleryService interface {
Reload(ctx context.Context) error
// Gallery returns the currently loaded gallery.
- Gallery(ctx context.Context) ([]gallery.Photo, error)
+ Gallery(
+ ctx context.Context,
+ query gallery.Query,
+ ) ([]gallery.Photo, error)
// Photo returns a single photo by its ID.
Photo(ctx context.Context, id string) (gallery.Photo, error)