Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct {
core.Model
UserID uint `sql:"not null" json:"user_id"`
User auth.User `json:"-"`
Aid string `sql:"not null;type:varchar(36);unique_index" json:"aid"`
Title string `sql:"not null" json:"title"`
Summary string `sql:"not null" json:"summary"`
Body string `sql:"not null;type:TEXT" json:"body"`
Type string `sql:"not null;type:varchar(8);default:'markdown';index" json:"type"`
Lang string `sql:"not null;type:char(5);index;default:'en-US'" json:"lang"`
Tags []Tag `gorm:"many2many:cms_article_tags;" json:"tags"`
}
type Attachment ¶
type Attachment struct {
core.Model
UserID uint `sql:"not null" json:"-"`
User User `json:"-"`
Url string `sql:"not null;unique_index" json:"url"`
Title string `sql:"not null;index" json:"title"`
Size uint `sql:"not null" json:"size"`
Type string `sql:"not null;index" json:"type"`
}
func (*Attachment) Ext ¶
func (p *Attachment) Ext() string
func (*Attachment) IsPicture ¶
func (p *Attachment) IsPicture() bool
func (*Attachment) SizeS ¶
func (p *Attachment) SizeS() string
type Book ¶
type Book struct {
core.Model
Type string `sql:"not null;index" json:"type"`
Name string `sql:"not null;unique_index" json:"name"`
IndexHref string `json:"index_href"`
IndexType string `json:"index_type"`
CoverHref string `json:"cover_href"`
CoverType string `json:"cover_type"`
Title string `sql:"not null;index" json:"title"`
Author string `sql:"not null;index" json:"author"`
Language string `json:"language"`
Identifier string `json:"identifier"`
Subject string `json:"subject"`
Publisher string `json:"publisher"`
Date string `json:"date"`
}
type Channel ¶
type CmsEngine ¶
type CmsEngine struct {
core.Controller
Render *render.Render `inject:""`
Db *gorm.DB `inject:""`
Logger *logging.Logger `inject:""`
Cache cache.Provider `inject:""`
Session *auth.Session `inject:""`
AuthDao *auth.Dao `inject:""`
Storage storage.Provider `inject:""`
SiteDao *site.Dao `inject:""`
}
type Comment ¶
type Playlist ¶
type Tag ¶
type User ¶
type Video ¶
type YTChannel ¶
type YTChannel struct {
Id string `json:"id"`
Page YTPageInfo `json:"pageInfo"`
Snippet YTSnippet `json:"snippet"`
Items []YTPlaylist `json:"items"`
}
type YTPageInfo ¶
type YTPlaylist ¶
type YTPlaylist struct {
Id string `json:"id"`
Page YTPageInfo `json:"pageInfo"`
Snippet YTSnippet `json:"snippet"`
Items []YTVideo `json:"items"`
}
type YTUser ¶
type YTUser struct {
Page YTPageInfo `json:"pageInfo"`
Items []YTChannel `json:"items"`
}
type YTVideo ¶
type YTVideo struct {
Id string `json:"id"`
Page YTPageInfo `json:"pageInfo"`
Snippet YTSnippet `json:"snippet"`
}
Click to show internal directories.
Click to hide internal directories.