aboutsummaryrefslogtreecommitdiff
path: root/internal/service
diff options
context:
space:
mode:
Diffstat (limited to 'internal/service')
-rw-r--r--internal/service/reload.go (renamed from internal/service/load.go)2
-rw-r--r--internal/service/service.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/service/load.go b/internal/service/reload.go
index 09bbc20..98e4710 100644
--- a/internal/service/load.go
+++ b/internal/service/reload.go
@@ -7,7 +7,7 @@ import (
)
// Load scans the configured roots and rebuilds the in-memory gallery.
-func (s *galleryService) Load(ctx context.Context) error {
+func (s *galleryService) Reload(ctx context.Context) error {
files, err := s.scanner.Scan(ctx)
if err != nil {
return err
diff --git a/internal/service/service.go b/internal/service/service.go
index 68a764e..063c0e7 100644
--- a/internal/service/service.go
+++ b/internal/service/service.go
@@ -9,7 +9,7 @@ import (
// GalleryService provides gallery operations.
type GalleryService interface {
// Load scans the configured roots and builds the in-memory gallery.
- Load(ctx context.Context) error
+ Reload(ctx context.Context) error
// Gallery returns the currently loaded gallery.
Gallery(ctx context.Context) ([]gallery.Photo, error)