🏷️ Expanded Entry properties contents

This commit is contained in:
Maxim Lebedev 2023-10-10 23:03:22 +06:00
parent 67930d3e2d
commit 7c09e8f8f8
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5

View File

@ -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.