controller

package
v0.0.0-...-4f2ec73 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryController

type CategoryController struct {
	Logger    *logger.Logger
	Client    *api.Client
	Presenter *presenter.Presenter
}

A CategoryController is a controller for category.

func NewCategoryController

func NewCategoryController(logger *logger.Logger, client *api.Client, presenter *presenter.Presenter) *CategoryController

NewCategoryController creates a CategoryController.

func (*CategoryController) Index

func (cc *CategoryController) Index() http.Handler

Index displays a listing of the resource.

type CommentControlller

type CommentControlller struct {
	Logger    *logger.Logger
	Client    *api.Client
	Presenter *presenter.Presenter
}

A CommentControlller is a controller for a comment.

func NewCommentController

func NewCommentController(logger *logger.Logger, client *api.Client, presenter *presenter.Presenter) *CommentControlller

NewCommentController creates a NewCommentController.

func (*CommentControlller) Store

Store displays a listing of the resource.

type FeedController

type FeedController struct {
	Logger    *logger.Logger
	Client    *api.Client
	Presenter *presenter.Presenter
}

A FeedController is a controller for feed.

func NewFeedController

func NewFeedController(logger *logger.Logger, client *api.Client, presenter *presenter.Presenter) *FeedController

NewFeedController creates a FeedController.

func (*FeedController) Index

func (fc *FeedController) Index() http.Handler

Index displays a listing of the resource.

type HomeController

type HomeController struct {
	Logger    *logger.Logger
	Client    *api.Client
	Presenter *presenter.Presenter
}

A HomeController is a controller for a home.

func NewHomeController

func NewHomeController(logger *logger.Logger, client *api.Client, presenter *presenter.Presenter) *HomeController

NewHomeController creates a HomeController.

func (*HomeController) Index

func (hc *HomeController) Index() http.Handler

Index displays a listing of the resource.

type PostController

type PostController struct {
	Logger    *logger.Logger
	Client    *api.Client
	Presenter *presenter.Presenter
}

A PostController is a controller for a post.

func NewPostController

func NewPostController(logger *logger.Logger, client *api.Client, presenter *presenter.Presenter) *PostController

NewPostController creates a NewPostController.

func (*PostController) Index

func (pc *PostController) Index() http.Handler

Index displays a listing of the resource.

func (*PostController) IndexByCategory

func (pc *PostController) IndexByCategory() http.Handler

IndexByCategory displays a listing of the resource.

func (*PostController) IndexByKeyword

func (pc *PostController) IndexByKeyword() http.Handler

IndexByKeyword displays a listing of the resource.

func (*PostController) IndexByTag

func (pc *PostController) IndexByTag() http.Handler

IndexByTag displays a listing of the resource.

func (*PostController) Show

func (pc *PostController) Show() http.Handler

Show displays the specified resource.

type SitemapController

type SitemapController struct {
	Logger    *logger.Logger
	Client    *api.Client
	Presenter *presenter.Presenter
}

A SitemapController is a controller for a sitemap.

func NewSitemapController

func NewSitemapController(logger *logger.Logger, client *api.Client, presenter *presenter.Presenter) *SitemapController

NewSitemapController creates a SitemapController.

func (*SitemapController) Index

func (si *SitemapController) Index() http.Handler

Index displays a listing of the resource.

type TagController

type TagController struct {
	Logger    *logger.Logger
	Client    *api.Client
	Presenter *presenter.Presenter
}

A TagController is a controller for a tag.

func NewTagController

func NewTagController(logger *logger.Logger, client *api.Client, presenter *presenter.Presenter) *TagController

NewTagController creates a TagController.

func (*TagController) Index

func (tc *TagController) Index() http.Handler

Index displays a listing of the resource.

Jump to

Keyboard shortcuts

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