Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feed ¶
type Feed struct {
ID uint `gorm:"primarykey"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt soft_delete.DeletedAt
Name *string `gorm:"name;not null"`
Link *string `gorm:"link;not null"` // FIX: unique index?
// LastBuild is the last time the content of the feed changed
LastBuild *time.Time `gorm:"last_build"`
// Failure is the reason of failure. If it is not null or empty, the fetch processor
// should skip this feed
Failure *string `gorm:"failure;default:''"`
Suspended *bool `gorm:"suspended;default:false"`
FeedRequestOptions
GroupID uint
Group Group
}
func (Feed) IsSuspended ¶ added in v0.3.0
type FeedRequestOptions ¶ added in v0.8.0
type FeedRequestOptions struct {
ReqProxy *string `gorm:"req_proxy"`
}
type Item ¶
type Item struct {
ID uint `gorm:"primarykey"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:idx_guid"`
Title *string `gorm:"title"`
GUID *string `gorm:"guid;uniqueIndex:idx_guid"`
Link *string `gorm:"link"`
Content *string `gorm:"content"`
PubDate *time.Time `gorm:"pub_date"`
Unread *bool `gorm:"unread;default:true;index"`
Bookmark *bool `gorm:"bookmark;default:false;index"`
FeedID uint `gorm:"feed_id;uniqueIndex:idx_guid"`
Feed Feed
}
Click to show internal directories.
Click to hide internal directories.