Versions in this module Expand all Collapse all v0 v0.2.0 Feb 9, 2024 Changes in this version + type Media struct + Alt string + Author string + ContentType string + CreatedAt time.Time + Creator User + CreatorID uint + Description string + Dimensions string + Directory bool + Ext string + External bool + Keywords string + Name string + Path string + PublicUrl string + Published bool + PublishedAt sql.NullTime + Remark string + Size int64 + StorePath string + Tags string + Thumbnail string + Title string + UpdatedAt time.Time + func (m *Media) BuildPublicUrls(mediaHost string, mediaPrefix string) + type MediaFolder struct + FilesCount int64 + FoldersCount int64 + Name string + Path string + type Site struct + CreatedAt time.Time + Disallow bool + Domain string + Name string + Preview string + UpdatedAt time.Time + func (s Site) String() string + type UploadResult struct + ContentType string + Dimensions string + Ext string + External bool + Name string + Path string + PublicUrl string + Size int64 + StorePath string + Thumbnail string v0.1.0 Dec 10, 2023 Changes in this version + const TableNameBlog + const TableNameCategory + const TableNameComment + const TableNamePage + const TableNamePost + const TableNamePostTag + const TableNameTag + const TableNameUser + type Blog struct + Description string + Name string + User User + UserID uint + func (*Blog) TableName() string + type Category struct + Description string + Name string + Slug string + func (*Category) TableName() string + type Comment struct + Body string + Email string + IP string + Post Post + PostID uint + User User + UserID uint + func (*Comment) TableName() string + type Page struct + Body string + PublishedAt time.Time + Slug string + Title string + User User + UserID uint + func (*Page) TableName() string + type Post struct + Body string + Category Category + CategoryID uint + Comments []Comment + Description string + IsDraft uint + PublishedAt time.Time + Slug string + Tags []Tag + Title string + User User + UserID uint + func (*Post) TableName() string + func (p Post) GetTagsAsCharSeparated(sep string) string + func (p Post) GetTagsAsCommaSeparated() string + type PostTag struct + PostID uint + TagID uint + func (*PostTag) TableName() string + type Tag struct + Name string + Posts []Post + Slug string + func (*Tag) TableName() string + type User struct + Addr string + Avatar string + Email string + Gender uint + IP string + LoginAt time.Time + LogoutAt time.Time + Name string + Password string + Phone string + Token string + Username string + func (*User) TableName() string