posts

package
v0.0.0-...-a197a46 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New(db pogo.DB, model *post.Model, store sessions.Store, view *posts.View) *Controller

func (*Controller) Create

func (c *Controller) Create(w http.ResponseWriter, r *http.Request)

func (*Controller) CreateJSON

func (c *Controller) CreateJSON(w http.ResponseWriter, r *http.Request)

func (*Controller) Delete

func (c *Controller) Delete(w http.ResponseWriter, r *http.Request)

func (*Controller) DeleteJSON

func (c *Controller) DeleteJSON(w http.ResponseWriter, r *http.Request)

func (*Controller) Edit

func (c *Controller) Edit(w http.ResponseWriter, r *http.Request)

func (*Controller) Index

func (c *Controller) Index(w http.ResponseWriter, r *http.Request)

func (*Controller) IndexJSON

func (c *Controller) IndexJSON(w http.ResponseWriter, r *http.Request)

func (*Controller) New

func (c *Controller) New(w http.ResponseWriter, r *http.Request)

func (*Controller) Show

func (c *Controller) Show(w http.ResponseWriter, r *http.Request)

func (*Controller) ShowJSON

func (c *Controller) ShowJSON(w http.ResponseWriter, r *http.Request)

func (*Controller) Update

func (c *Controller) Update(w http.ResponseWriter, r *http.Request)

func (*Controller) UpdateJSON

func (c *Controller) UpdateJSON(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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