control

package
v0.0.0-...-a1d2d7e Latest Latest
Warning

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

Go to latest
Published: May 18, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PatientController

type PatientController struct{}

PatientController is a basic struct to get pointed to

func NewPatientController

func NewPatientController() *PatientController

NewPatientController gives a pointed PC

func (PatientController) CreatePatient

func (pc PatientController) CreatePatient(w http.ResponseWriter, r *http.Request)

CreatePatient creates a new patient from the JSON request

func (PatientController) DeletePatient

func (pc PatientController) DeletePatient(w http.ResponseWriter, r *http.Request)

DeletePatient deletes the request id related patient

func (PatientController) GetPatient

func (pc PatientController) GetPatient(w http.ResponseWriter, r *http.Request)

GetPatient returns a patient from the requested ID

func (PatientController) Patients

func (pc PatientController) Patients(w http.ResponseWriter, r *http.Request)

Patients retrieves all patients from the DB and shows as parsed template

func (PatientController) UpdatePatient

func (pc PatientController) UpdatePatient(w http.ResponseWriter, r *http.Request)

UpdatePatient updates the requested patient with data related

Jump to

Keyboard shortcuts

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