aboutsummaryrefslogtreecommitdiff
path: root/internal/service/service.go
blob: 063c0e7c0d1c97a26d15e20fa70bfe8eaae64b90 (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.
	Reload(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)
}