Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithPagination ¶
func WithPagination(perPage, maxPerPage int) func(*articleControllerConfig)
Types ¶
type ArticleController ¶
type ArticleController struct {
// contains filtered or unexported fields
}
func NewArticleController ¶
func NewArticleController( repo *store.ArticleRepository, options ...func(*articleControllerConfig), ) ArticleController
func (ArticleController) Archive ¶
func (h ArticleController) Archive(w http.ResponseWriter, r *http.Request)
func (ArticleController) Article ¶
func (h ArticleController) Article(w http.ResponseWriter, r *http.Request)
func (ArticleController) Index ¶
func (h ArticleController) Index(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.