diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-07-13 18:37:01 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-07-13 18:37:01 +0530 |
| commit | d754ce4c11af51e06515275b58a3f337a440ed9d (patch) | |
| tree | 07845d209b67c7445803443e2ba158e91b672888 /internal/service/service.go | |
| parent | a06e00d332aff7ddc667331c8f83b7317f5ca933 (diff) | |
| download | galleryd-d754ce4c11af51e06515275b58a3f337a440ed9d.tar.xz galleryd-d754ce4c11af51e06515275b58a3f337a440ed9d.zip | |
feat(service): introduce service lifecycle & load gallery during initialization
Diffstat (limited to 'internal/service/service.go')
| -rw-r--r-- | internal/service/service.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/service/service.go b/internal/service/service.go index 6183e26..252abed 100644 --- a/internal/service/service.go +++ b/internal/service/service.go @@ -8,5 +8,9 @@ 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) } |