Documentation ¶
Index ¶
- type Manager
- func (f *Manager) GetArticle(artID string) (*structs.Article, error)
- func (f *Manager) GetLatestArticleID() (string, error)
- func (f *Manager) GetTags() ([]*structs.ArticleTag, error)
- func (f *Manager) GetTitle(uri string) (r string, e error)
- func (f *Manager) Start(errCh chan error)
- func (f *Manager) Stop()
- func (f *Manager) UpdateArtcile(art *structs.Article) (*structs.Article, error)
- func (f *Manager) UpdateMetadata(art *structs.Article) (*structs.Article, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) GetLatestArticleID ¶
func (*Manager) GetTags ¶
func (f *Manager) GetTags() ([]*structs.ArticleTag, error)
构造一个首页文章导航json [{"Name":"linux","Articles":[{"ID":"/linux/linux-code1","Title":"mknote","En_name":"","Content":"","Author":"","Like_count":0,"Viewer_count":0,"Create_date":""},{"ID":"/linux/linux-code2","Title":"Linux 管道","En_name":"","Content":"","Author":"","Like_count":0,"Viewer_count":0,"Create_date":""}]},{"Name":"mknote","Articles":[{"ID":"/mknote/README","Title":"mknote","En_name":"","Content":"","Author":"","Like_count":0,"Viewer_count":0,"Create_date":""}]}]
func (*Manager) UpdateArtcile ¶
Click to show internal directories.
Click to hide internal directories.