Documentation ¶
Index ¶
- Variables
- func CronDeleteExpiredPosts(cfg *shared.ConfigSite, dbpool db.DB)
- func GetBlogName(username string) string
- func GetPostTitle(post *db.Post) string
- func NewConfigSite() *shared.ConfigSite
- func ParseText(filename string, text string) (string, error)
- func StartApiServer()
- func StartSshServer()
- type BlogPageData
- type FileHooks
- type HeaderTxt
- type Link
- type PageData
- type PostItemData
- type PostPageData
- type SSHServer
- type TransparencyPageData
Constants ¶
This section is empty.
Variables ¶
View Source
var DEFAULT_EXPIRES_AT = 90
Functions ¶
func CronDeleteExpiredPosts ¶
func CronDeleteExpiredPosts(cfg *shared.ConfigSite, dbpool db.DB)
func GetBlogName ¶
func GetPostTitle ¶
func NewConfigSite ¶
func NewConfigSite() *shared.ConfigSite
func StartApiServer ¶
func StartApiServer()
func StartSshServer ¶ added in v1.2.0
func StartSshServer()
Types ¶
type BlogPageData ¶
type BlogPageData struct { Site shared.SitePageData PageTitle string URL template.URL RSSURL template.URL Username string Header *HeaderTxt Posts []PostItemData }
type FileHooks ¶
type FileHooks struct { Cfg *shared.ConfigSite Db db.DB }
func (*FileHooks) FileMeta ¶
func (p *FileHooks) FileMeta(data *filehandlers.PostMetaData) error
func (*FileHooks) FileValidate ¶
func (p *FileHooks) FileValidate(data *filehandlers.PostMetaData) (bool, error)
type PageData ¶
type PageData struct {
Site shared.SitePageData
}
type PostItemData ¶
type PostPageData ¶
type TransparencyPageData ¶
type TransparencyPageData struct { Site shared.SitePageData Analytics *db.Analytics }
Click to show internal directories.
Click to hide internal directories.