Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blog ¶
type Blog struct {
gorm.Model
Title string `gorm:"SIZE:512;NOT NULL"`
Description string `gorm:"SIZE:2048"`
URL string `gorm:"SIZE:1024;NOT NULL"`
FeedURL string `gorm:"SIZE:1024;NOT NULL"`
Language string `gorm:"SIZE:5"`
LastUpdatedAt time.Time `gorm:"NOT NULL"`
Posts []Post `gorm:"ForeignKey:BlogID"`
}
type BlogService ¶
type FeedService ¶
type Post ¶
type Post struct {
gorm.Model
BlogID uint `gorm:"NOT NULL"`
Blog Blog
Author string `gorm:"SIZE:256;NOT NULL"`
Title string `gorm:"SIZE:2048;NOT NULL"`
Content string `gorm:"NOT NULL"`
PublishedAt time.Time `gorm:"NOT NULL"`
URL string `gorm:"NOT NULL"`
ShortURL string
GUID string `gorm:"NOT NULL;UNIQUE"`
Notified bool `gorm:"NOT NULL;DEFAULT:false"`
}
Click to show internal directories.
Click to hide internal directories.