From 0d44904c3e54bb3fe393e88c12a152a799b9773b Mon Sep 17 00:00:00 2001 From: RanXom Date: Mon, 13 Jul 2026 12:18:09 +0530 Subject: feat(gallery): initialise gallery package --- internal/gallery/photo.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 internal/gallery/photo.go (limited to 'internal/gallery/photo.go') diff --git a/internal/gallery/photo.go b/internal/gallery/photo.go new file mode 100644 index 0000000..57678f4 --- /dev/null +++ b/internal/gallery/photo.go @@ -0,0 +1,14 @@ +package gallery + +import ( + "github.com/RanXom/galleryd/internal/metadata" + "github.com/RanXom/galleryd/internal/scanner" +) + +// Photo represents an image in the gallery +type Photo struct { + ID string + + scanner.File + metadata.Metadata +} -- cgit v1.2.3 From f2ec755fa94c61f18873b3b9feab43eb234d2d82 Mon Sep 17 00:00:00 2001 From: RanXom Date: Mon, 13 Jul 2026 12:51:46 +0530 Subject: docs(gallery): document public API --- internal/gallery/photo.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'internal/gallery/photo.go') diff --git a/internal/gallery/photo.go b/internal/gallery/photo.go index 57678f4..73a6103 100644 --- a/internal/gallery/photo.go +++ b/internal/gallery/photo.go @@ -5,7 +5,10 @@ import ( "github.com/RanXom/galleryd/internal/scanner" ) -// Photo represents an image in the gallery +// Photo represents an image in the gallery. +// +// A Photo combines filesystem information with extracted metadata +// and a stable identifier. type Photo struct { ID string -- cgit v1.2.3