summaryrefslogtreecommitdiff
path: root/services/worker/internal/model/feed.go
blob: 611c820991e2f543c91d5373caa29a5b24cf3d11 (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
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
}