aboutsummaryrefslogtreecommitdiff
path: root/internal/service/service.go
blob: 252abed5215307babc9f2c7b428ee7125223b640 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)
}