aboutsummaryrefslogtreecommitdiff
path: root/internal/service/service.go
blob: 68a764e4a4430dafb364fbae769c431f4100126d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package service

import (
	"context"

	"github.com/RanXom/galleryd/internal/gallery"
)

// 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)
}