Documentation ¶
Overview ¶
Package service is the "business logic" layer, encapsulates transaction.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Archive = &archiveService{ mutex: &sync.Mutex{}, }
Archive service.
View Source
var Article = &articleService{ mutex: &sync.Mutex{}, }
Article service.
View Source
var Category = &categoryService{ mutex: &sync.Mutex{}, }
Category service.
View Source
var Comment = &commentService{ mutex: &sync.Mutex{}, }
Comment service.
View Source
var Export = &exportService{}
Export service.
View Source
var Import = &importService{}
Import service.
View Source
var Init = &initService{ mutex: &sync.Mutex{}, }
Init service.
View Source
sync.Mutex{}, }mutex: &
Navigation service.
View Source
var Setting = &settingService{ mutex: &sync.Mutex{}, }
Setting service.
View Source
var Statistic = &statisticService{ mutex: &sync.Mutex{}, }
Statistic service.
View Source
var Tag = &tagService{ mutex: &sync.Mutex{}, }
Tag service.
View Source
var Upgrade = &upgradeService{ mutex: &sync.Mutex{}, }
Upgrade service.
View Source
var User = &userService{ mutex: &sync.Mutex{}, }
User service.
Functions ¶
Types ¶
type MarkdownFile ¶
MarkdownFile represents markdown file.
type PlatformStatus ¶
type PlatformStatus struct { Version string `json:"version"` Locale string `json:"locale"` Inited bool `json:"inited"` }
PlatformStatus represents platform status.
type UserBlog ¶
type UserBlog struct { ID uint64 `json:"id,omitempty"` // blog ID Title string `json:"title"` // blog title URL string `json:"url"` // blog URL UserID uint64 `json:"userId,omitempty"` UserRole int `json:"userRole,omitempty"` UserArticleCount int `json:"userArticleCount"` }
UserBlog represents user blog.
Click to show internal directories.
Click to hide internal directories.