Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { gorm.Model URL string `gorm:"not null;uniqueIndex"` Title string `gorm:"not null"` Description string Content string PublishedAt uint64 // TODO: if not provided, set to CreatedAt ModifiedAt uint64 Banner string Authors []Author `gorm:"many2many:article_authors"` Tags []Tag `gorm:"many2many:article_tags"` Attachments []Attachment // uses ArticleID as FK by default FeedID uint // FK }
type Attachment ¶
type Attachment struct { gorm.Model URL string `gorm:"not null;unique"` Length uint64 // 1GB is 8589934592 bits (size units) @ 34 bits (binary length) Type string ArticleID uint // FK }
func (*Attachment) BeforeCreate ¶
func (this *Attachment) BeforeCreate(tx *gorm.DB) (err error)
type Author ¶
type Feed ¶
Click to show internal directories.
Click to hide internal directories.