diff options
| author | Fuwn <[email protected]> | 2026-02-07 01:42:57 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-07 01:42:57 -0800 |
| commit | 5c5b1993edd890a80870ee05607ac5f088191d4e (patch) | |
| tree | a721b76bcd49ba10826c53efc87302c7a689512f /services/worker/internal/model | |
| download | asa.news-5c5b1993edd890a80870ee05607ac5f088191d4e.tar.xz asa.news-5c5b1993edd890a80870ee05607ac5f088191d4e.zip | |
feat: asa.news RSS reader with developer tier, REST API, and webhooks
Full-stack RSS reader SaaS: Supabase + Next.js + Go worker.
Includes three subscription tiers (free/pro/developer), API key auth,
read-only REST API, webhook push notifications, Stripe billing with
proration, and PWA support.
Diffstat (limited to 'services/worker/internal/model')
| -rw-r--r-- | services/worker/internal/model/feed.go | 41 | ||||
| -rw-r--r-- | services/worker/internal/model/queue.go | 5 |
2 files changed, 46 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 +} diff --git a/services/worker/internal/model/queue.go b/services/worker/internal/model/queue.go new file mode 100644 index 0000000..a5aaa7c --- /dev/null +++ b/services/worker/internal/model/queue.go @@ -0,0 +1,5 @@ +package model + +type RefreshRequest struct { + FeedIdentifier string `json:"feed_id"` +} |