blob: 9eec0b81555fd4530475cd7de8d0d58f00d5b5aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package service
import (
"context"
"github.com/RanXom/galleryd/internal/gallery"
)
// GalleryService provides gallery operations.
type GalleryService interface {
// Reload scans the configured roots and rebuilds the in-memory gallery.
Reload(ctx context.Context) error
// Gallery returns the currently loaded gallery.
Gallery(
ctx context.Context,
query gallery.Query,
) ([]gallery.Photo, error)
// Photo returns a single photo by its ID.
Photo(ctx context.Context, id string) (gallery.Photo, error)
}
|