handlers

package
v0.0.0-...-30dc2fd Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePerson

func CreatePerson(response http.ResponseWriter, request *http.Request)

CreatePerson takes in user request and creates a new Person in database

func DeletePerson

func DeletePerson(response http.ResponseWriter, request *http.Request)

DeletePerson deletes the corresponding document and returns it

func GetPeople

func GetPeople(response http.ResponseWriter, request *http.Request)

GetPeople gives the client the list of all records in the people collection

func GetPerson

func GetPerson(response http.ResponseWriter, request *http.Request)

GetPerson takes user request id param and returns the specific user to the client

Types

This section is empty.

Jump to

Keyboard shortcuts

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