content

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

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) Archives

func (a *ArchiveHandler) Archives(ctx *gin.Context, model template.Model) (string, error)

func (*ArchiveHandler) ArchivesBySlug

func (a *ArchiveHandler) ArchivesBySlug(ctx *gin.Context, model template.Model) (string, error)

func (*ArchiveHandler) ArchivesPage

func (a *ArchiveHandler) ArchivesPage(ctx *gin.Context, model template.Model) (string, error)

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 (c *CategoryHandler) Categories(ctx *gin.Context, model template.Model) (string, error)

func (*CategoryHandler) CategoryDetail

func (c *CategoryHandler) CategoryDetail(ctx *gin.Context, model template.Model) (string, error)

func (*CategoryHandler) CategoryDetailPage

func (c *CategoryHandler) CategoryDetailPage(ctx *gin.Context, model template.Model) (string, error)

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) Atom

func (f *FeedHandler) Atom(ctx *gin.Context, model template.Model) (string, error)

func (*FeedHandler) CategoryAtom

func (f *FeedHandler) CategoryAtom(ctx *gin.Context, model template.Model) (string, error)

func (*FeedHandler) CategoryFeed

func (f *FeedHandler) CategoryFeed(ctx *gin.Context, model template.Model) (string, error)

func (*FeedHandler) Feed

func (f *FeedHandler) Feed(ctx *gin.Context, model template.Model) (string, error)

func (*FeedHandler) Robots

func (f *FeedHandler) Robots(ctx *gin.Context, model template.Model) (string, error)

func (*FeedHandler) SitemapHTML

func (f *FeedHandler) SitemapHTML(ctx *gin.Context, model template.Model) (string, error)

func (*FeedHandler) SitemapXML

func (f *FeedHandler) SitemapXML(ctx *gin.Context, model template.Model) (string, error)

type IndexHandler

type IndexHandler struct {
	PostModel *model.PostModel
}

func NewIndexHandler

func NewIndexHandler(postModel *model.PostModel) *IndexHandler

func (*IndexHandler) Index

func (h *IndexHandler) Index(ctx *gin.Context, model template.Model) (string, error)

func (*IndexHandler) IndexPage

func (h *IndexHandler) IndexPage(ctx *gin.Context, model template.Model) (string, error)

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) Journals

func (p *JournalHandler) Journals(ctx *gin.Context, model template.Model) (string, error)

func (*JournalHandler) JournalsPage

func (p *JournalHandler) JournalsPage(ctx *gin.Context, model template.Model) (string, error)

type LinkHandler

type LinkHandler struct {
	LinkModel *model.LinkModel
}

func NewLinkHandler

func NewLinkHandler(
	linkModel *model.LinkModel,
) *LinkHandler
func (t *LinkHandler) Link(ctx *gin.Context, model template.Model) (string, error)

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

func (p *PhotoHandler) PhotosPage(ctx *gin.Context, model template.Model) (string, error)

func (*PhotoHandler) Phtotos

func (p *PhotoHandler) Phtotos(ctx *gin.Context, model template.Model) (string, error)

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

func (s *SearchHandler) PageSearch(ctx *gin.Context, model template.Model) (string, error)

func (*SearchHandler) Search

func (s *SearchHandler) Search(ctx *gin.Context, model template.Model) (string, error)

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 (s *SheetHandler) AdminSheetBySlug(ctx *gin.Context, model template.Model) (string, error)

func (*SheetHandler) SheetBySlug

func (s *SheetHandler) SheetBySlug(ctx *gin.Context, model template.Model) (string, error)

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) TagPost

func (t *TagHandler) TagPost(ctx *gin.Context, model template.Model) (string, error)

func (*TagHandler) TagPostPage

func (t *TagHandler) TagPostPage(ctx *gin.Context, model template.Model) (string, error)

func (*TagHandler) Tags

func (t *TagHandler) Tags(ctx *gin.Context, model template.Model) (string, error)

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) Admin

func (v *ViewHandler) Admin(ctx *gin.Context) (interface{}, error)

func (*ViewHandler) Authenticate

func (v *ViewHandler) Authenticate(ctx *gin.Context, model template.Model) (string, error)

func (*ViewHandler) Favicon

func (v *ViewHandler) Favicon(ctx *gin.Context) (interface{}, error)

func (*ViewHandler) Install

func (v *ViewHandler) Install(ctx *gin.Context)
func (v *ViewHandler) Logo(ctx *gin.Context) (interface{}, error)

func (*ViewHandler) Version

func (v *ViewHandler) Version(ctx *gin.Context) (interface{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL