summaryrefslogtreecommitdiff
path: root/services/worker/internal/model/feed.go
blob: db7a9139b91b5e0476bae6a95beede38cf0e333c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
	SubscriberUserIdentifier *string
	AuthenticationType       *string
	AuthenticationValue      *string
}

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
}