Documentation
¶
Index ¶
- type ArchiveHandler
- func (a *ArchiveHandler) AdminArchivesBySlug(ctx *gin.Context, model template.Model) (string, error)
- func (a *ArchiveHandler) Archives(ctx *gin.Context, model template.Model) (string, error)
- func (a *ArchiveHandler) ArchivesBySlug(ctx *gin.Context, model template.Model) (string, error)
- func (a *ArchiveHandler) ArchivesPage(ctx *gin.Context, model template.Model) (string, error)
- type CategoryHandler
- type FeedHandler
- func (f *FeedHandler) Atom(ctx *gin.Context, model template.Model) (string, error)
- func (f *FeedHandler) CategoryAtom(ctx *gin.Context, model template.Model) (string, error)
- func (f *FeedHandler) CategoryFeed(ctx *gin.Context, model template.Model) (string, error)
- func (f *FeedHandler) Feed(ctx *gin.Context, model template.Model) (string, error)
- func (f *FeedHandler) Robots(ctx *gin.Context, model template.Model) (string, error)
- func (f *FeedHandler) SitemapHTML(ctx *gin.Context, model template.Model) (string, error)
- func (f *FeedHandler) SitemapXML(ctx *gin.Context, model template.Model) (string, error)
- type IndexHandler
- type JournalHandler
- type LinkHandler
- type PhotoHandler
- type SearchHandler
- type SheetHandler
- type TagHandler
- type ViewHandler
- func (v *ViewHandler) Admin(ctx *gin.Context) (interface{}, error)
- func (v *ViewHandler) Authenticate(ctx *gin.Context, model template.Model) (string, error)
- func (v *ViewHandler) Favicon(ctx *gin.Context) (interface{}, error)
- func (v *ViewHandler) Install(ctx *gin.Context)
- func (v *ViewHandler) Logo(ctx *gin.Context) (interface{}, error)
- func (v *ViewHandler) Version(ctx *gin.Context) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveHandler ¶
type ArchiveHandler struct {
OptionService service.OptionService
PostService service.PostService
PostCategoryService service.PostCategoryService
CategoryService service.CategoryService
PostAssembler assembler.PostAssembler
PostModel *model.PostModel
Cache cache.Cache
}
func NewArchiveHandler ¶
func NewArchiveHandler( optionService service.OptionService, postService service.PostService, categoryService service.CategoryService, postCategoryService service.PostCategoryService, postAssembler assembler.PostAssembler, postModel *model.PostModel, cache cache.Cache, ) *ArchiveHandler
func (*ArchiveHandler) AdminArchivesBySlug ¶ added in v1.1.0
func (a *ArchiveHandler) AdminArchivesBySlug(ctx *gin.Context, model template.Model) (string, error)
AdminArchivesBySlug It can only be used in the console to preview articles
func (*ArchiveHandler) ArchivesBySlug ¶
func (*ArchiveHandler) ArchivesPage ¶
type CategoryHandler ¶
type CategoryHandler struct {
OptionService service.OptionService
PostService service.PostService
PostCategoryService service.PostCategoryService
CategoryService service.CategoryService
PostAssembler assembler.PostAssembler
PostModel *model.PostModel
CategoryModel *model.CategoryModel
}
func NewCategoryHandler ¶
func NewCategoryHandler( optionService service.OptionService, postService service.PostService, categoryService service.CategoryService, postCategoryService service.PostCategoryService, postAssembler assembler.PostAssembler, postModel *model.PostModel, categoryModel *model.CategoryModel, ) *CategoryHandler
func (*CategoryHandler) Categories ¶
func (*CategoryHandler) CategoryDetail ¶
func (*CategoryHandler) CategoryDetailPage ¶
type FeedHandler ¶
type FeedHandler struct {
OptionService service.OptionService
PostService service.PostService
PostCategoryService service.PostCategoryService
CategoryService service.CategoryService
PostAssembler assembler.PostAssembler
}
func NewFeedHandler ¶
func NewFeedHandler(optionService service.OptionService, postService service.PostService, categoryService service.CategoryService, postCategoryService service.PostCategoryService, postAssembler assembler.PostAssembler) *FeedHandler
func (*FeedHandler) CategoryAtom ¶
func (*FeedHandler) CategoryFeed ¶
func (*FeedHandler) SitemapHTML ¶
func (*FeedHandler) SitemapXML ¶
type IndexHandler ¶
func NewIndexHandler ¶
func NewIndexHandler(postModel *model.PostModel) *IndexHandler
type JournalHandler ¶
type JournalHandler struct {
OptionService service.OptionService
JournalService service.JournalService
JournalModel *model.JournalModel
}
func NewJournalHandler ¶
func NewJournalHandler( optionService service.OptionService, journalService service.JournalService, journalModel *model.JournalModel, ) *JournalHandler
func (*JournalHandler) JournalsPage ¶
type LinkHandler ¶
func NewLinkHandler ¶
func NewLinkHandler( linkModel *model.LinkModel, ) *LinkHandler
type PhotoHandler ¶
type PhotoHandler struct {
OptionService service.OptionService
PhotoService service.PhotoService
PhotoModel *model.PhotoModel
}
func NewPhotoHandler ¶
func NewPhotoHandler( optionService service.OptionService, photoService service.PhotoService, photoModel *model.PhotoModel, ) *PhotoHandler
func (*PhotoHandler) PhotosPage ¶
type SearchHandler ¶
type SearchHandler struct {
PostAssembler assembler.PostAssembler
PostService service.PostService
OptionService service.OptionService
ThemeService service.ThemeService
}
func NewSearchHandler ¶
func NewSearchHandler( postAssembler assembler.PostAssembler, postService service.PostService, optionService service.OptionService, themeService service.ThemeService, ) *SearchHandler
func (*SearchHandler) PageSearch ¶
type SheetHandler ¶
type SheetHandler struct {
OptionService service.OptionService
SheetService service.SheetService
SheetModel *model.SheetModel
Cache cache.Cache
}
func NewSheetHandler ¶
func NewSheetHandler( optionService service.OptionService, sheetService service.SheetService, sheetModel *model.SheetModel, cache cache.Cache, ) *SheetHandler
func (*SheetHandler) AdminSheetBySlug ¶ added in v1.1.0
func (*SheetHandler) SheetBySlug ¶
type TagHandler ¶
type TagHandler struct {
OptionService service.OptionService
TagService service.TagService
TagModel *model.TagModel
PostTagService service.PostTagService
}
func NewTagHandler ¶
func NewTagHandler( optionService service.OptionService, tagService service.TagService, tagModel *model.TagModel, postTagService service.PostTagService, ) *TagHandler
func (*TagHandler) TagPostPage ¶
type ViewHandler ¶
type ViewHandler struct {
OptionService service.OptionService
UserService service.UserService
CategoryService service.CategoryService
PostService service.PostService
ThemeService service.ThemeService
CategoryAuthentication *authentication.CategoryAuthentication
PostAuthentication *authentication.PostAuthentication
}
func NewViewHandler ¶
func NewViewHandler( optionService service.OptionService, userService service.UserService, categoryService service.CategoryService, postService service.PostService, themeService service.ThemeService, categoryAuthentication *authentication.CategoryAuthentication, postAuthentication *authentication.PostAuthentication, ) *ViewHandler
func (*ViewHandler) Authenticate ¶
func (*ViewHandler) Install ¶
func (v *ViewHandler) Install(ctx *gin.Context)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.