web

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 9 Imported by: 0

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

func (*Edit) Run

func (c *Edit) Run(response http.ResponseWriter, request *http.Request)

Run Edit action

type Index

type Index struct {
	controller.Super
	Journals   []model.Journal
	Pages      []int
	Pagination database.PaginationInformation
	Saved      bool
}

Index Handle displaying all blog entries

func (*Index) Run

func (c *Index) Run(response http.ResponseWriter, request *http.Request)

Run Index action

type New

type New struct {
	controller.Super
	Error   bool
	Journal model.Journal
}

New Handle creating a new entry

func (*New) Run

func (c *New) Run(response http.ResponseWriter, request *http.Request)

Run New action

type Sitemap added in v0.7.1

type Sitemap struct {
	controller.Super
	Journals []model.Journal
}

Sitemap Generate an XML sitemap

func (*Sitemap) Run added in v0.7.1

func (c *Sitemap) Run(response http.ResponseWriter, request *http.Request)

Run Sitemap

type View

type View struct {
	controller.Super
	Journal model.Journal
	Next    model.Journal
	Prev    model.Journal
}

View Handle displaying individual entry

func (*View) Run

func (c *View) Run(response http.ResponseWriter, request *http.Request)

Run View action

Jump to

Keyboard shortcuts

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