web

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 Error

type Error struct {
	controller.Super
}

Error Display a 404 not found page

func (*Error) Run

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

Run Error

type Index

type Index struct {
	controller.Super
	Journals []model.Journal
	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 View

type View struct {
	controller.Super
	Journal 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