diff options
Diffstat (limited to 'services/worker/internal/model/feed.go')
| -rw-r--r-- | services/worker/internal/model/feed.go | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/services/worker/internal/model/feed.go b/services/worker/internal/model/feed.go new file mode 100644 index 0000000..611c820 --- /dev/null +++ b/services/worker/internal/model/feed.go @@ -0,0 +1,41 @@ +package model + +import ( + "time" +) + +type Feed struct { + Identifier string + URL string + SiteURL *string + Title *string + FeedType *string + Visibility string + EntityTag *string + LastModified *string + LastFetchedAt *time.Time + LastFetchError *string + ConsecutiveFailures int + NextFetchAt time.Time + FetchIntervalSeconds int + CreatedAt time.Time + UpdatedAt time.Time +} + +type FeedEntry struct { + FeedIdentifier string + OwnerIdentifier *string + GUID string + URL *string + Title *string + Author *string + Summary *string + ContentHTML *string + ContentText *string + ImageURL *string + PublishedAt *time.Time + WordCount *int + EnclosureURL *string + EnclosureType *string + EnclosureLength *int64 +} |