aboutsummaryrefslogtreecommitdiff
path: root/internal/service/index.go
blob: dd39169d1845ba1f95af2ab7f4bd7cc57c875b01 (plain)
1
2
3
4
5
6
7
8
9
package service

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

// galleryIndex stores an in-memory snapshot of the gallery.
type galleryIndex struct {
	photos []gallery.Photo
	byID   map[string]gallery.Photo
}