controllers

package
v0.0.0-...-40f9e79 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNote

func CreateNote(w http.ResponseWriter, r *http.Request)

func DeleteNote

func DeleteNote(w http.ResponseWriter, r *http.Request)

func GetAllNotes

func GetAllNotes(w http.ResponseWriter, r *http.Request)

func GetNote

func GetNote(w http.ResponseWriter, r *http.Request)

func New

func New() http.Handler

func UpdateNote

func UpdateNote(w http.ResponseWriter, r *http.Request)

Types

type NoteInput

type NoteInput struct {
	Title string `json:"title" validate:"required"`
	Body  string `json:"body" validate:"required"`
}

Jump to

Keyboard shortcuts

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