Documentation ¶
Index ¶
- type NotesController
- func (NotesController) Create(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
- func (NotesController) Destroy(w http.ResponseWriter, req *http.Request, p httprouter.Params)
- func (NotesController) Find(w http.ResponseWriter, req *http.Request, p httprouter.Params)
- func (NotesController) Index(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
- func (NotesController) Update(w http.ResponseWriter, req *http.Request, p httprouter.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotesController ¶
type NotesController struct{}
NotesController All actions will be bound to this
func (NotesController) Create ¶
func (NotesController) Create(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
Create Action that creates a note
func (NotesController) Destroy ¶
func (NotesController) Destroy(w http.ResponseWriter, req *http.Request, p httprouter.Params)
Destroy Action that destroys a note
func (NotesController) Find ¶
func (NotesController) Find(w http.ResponseWriter, req *http.Request, p httprouter.Params)
Find Action that finds note by id
func (NotesController) Index ¶
func (NotesController) Index(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
Index Action that returns all notes
func (NotesController) Update ¶
func (NotesController) Update(w http.ResponseWriter, req *http.Request, p httprouter.Params)
Update Action that updates a note
Click to show internal directories.
Click to hide internal directories.