Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_PAGE = 1 DEFAULT_LIMIT = 50 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArticleHandler ¶
type ArticleHandler struct {
// contains filtered or unexported fields
}
func NewArticleHandler ¶
func NewArticleHandler(store store.ArticleStorer) *ArticleHandler
func (*ArticleHandler) HandleGetArticle ¶
func (h *ArticleHandler) HandleGetArticle(w http.ResponseWriter, r *http.Request) error
func (*ArticleHandler) HandleGetArticles ¶
func (h *ArticleHandler) HandleGetArticles(w http.ResponseWriter, r *http.Request) error
func (*ArticleHandler) HandlePostArticle ¶
func (h *ArticleHandler) HandlePostArticle(w http.ResponseWriter, r *http.Request) error
type Error ¶
func ErrBadRequest ¶
func ErrBadRequest() Error
func ErrInternalServerError ¶
func ErrInternalServerError() Error
func ErrNoDocuments ¶
func ErrNoDocuments() Error
Click to show internal directories.
Click to hide internal directories.