Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunBadRequest ¶ added in v0.4.1
func RunBadRequest(response http.ResponseWriter, request *http.Request, container interface{})
RunBadRequest calls the bad request from an existing controller
Types ¶
type BadRequest ¶ added in v0.4.1
type BadRequest struct {
controller.Super
}
BadRequest Display a 404 not found page
func (*BadRequest) Run ¶ added in v0.4.1
func (c *BadRequest) Run(response http.ResponseWriter, request *http.Request)
Run BadRequest
type Edit ¶
type Edit struct {
controller.Super
Error bool
Journal model.Journal
}
Edit Handle updating an existing entry
type Index ¶
type Index struct {
controller.Super
Journals []model.Journal
Pages []int
Pagination database.PaginationInformation
Saved bool
}
Index Handle displaying all blog entries
type New ¶
type New struct {
controller.Super
Error bool
Journal model.Journal
}
New Handle creating a new entry
Click to show internal directories.
Click to hide internal directories.