From 7c09e8f8f8a6d77aa900b080fe8820dcf5f7db2a Mon Sep 17 00:00:00 2001 From: Maxim Lebedev Date: Tue, 10 Oct 2023 23:03:22 +0600 Subject: [PATCH] :label: Expanded Entry properties contents --- internal/domain/entry.go | 50 +++++++++++++++++++++++++++++++--------- 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/internal/domain/entry.go b/internal/domain/entry.go index 7aaf781..8de6518 100644 --- a/internal/domain/entry.go +++ b/internal/domain/entry.go @@ -9,17 +9,45 @@ import ( // Entry represent a single microformats2 entry. type Entry struct { - UpdatedAt time.Time - PublishedAt time.Time - DeletedAt time.Time - URL *url.URL - Params map[string]any - Title string - Description string - Photo []*url.URL - Syndications []*url.URL - Content []byte - Tags []string + CreatedAt time.Time + DeletedAt time.Time + Title string // p-name + Description string // p-summary + Content []byte // e-content + PublishedAt time.Time // dt-published + UpdatedAt time.Time // dt-updated + // TODO(toby3d): Author string // p-author + Tags []string // p-category + URL *url.URL // u-url + ID string // u-uid + // TODO(toby3d): Location string // p-location + Syndications []*url.URL // u-syndication + // TODO(toby3d): Reply *url.URL // u-in-reply-to + RSVP RSVP // p-rsvp + // TODO(toby3d): Like *url.URL // u-like-of + // TODO(toby3d): Repost *url.URL // u-repost-of + + // Draft Properties + // TODO(toby3d): Comments []string // p-comment + Photo []*url.URL // u-photo + Video []*url.URL // u-video + + // Proposed Additions + Audio []*url.URL // u-audio + // TODO(toby3d): Like []*url.URL // u-like + // TODO(toby3d): Repost []*url.URL // u-repost + // TODO(toby3d): BookmarkOf []*url.URL // u-bookmark-of + // TODO(toby3d): Featured []*url.URL // u-featured + Latitude float32 // p-latitude + Longitude float32 // p-longitude + Altitude float32 // p-altitude + // TODO(toby3d): Duration int // p-duration + // TODO(toby3d): Size int // p-size + // TODO(toby3d): ListenOf *url.URL // u-listen-of + // TODO(toby3d): WatchOf *url.URL // u-watch-of + // TODO(toby3d): ReadOf *url.URL // u-read-of + // TODO(toby3d): TranslationOf *url.URL // u-translation-of + // TODO(toby3d): Checkin *url.URL // u-checking } // TestEntry returns a random valid Entry for tests.