Documentation ¶
Index ¶
- type PatientController
- func (pc PatientController) CreatePatient(w http.ResponseWriter, r *http.Request)
- func (pc PatientController) DeletePatient(w http.ResponseWriter, r *http.Request)
- func (pc PatientController) GetPatient(w http.ResponseWriter, r *http.Request)
- func (pc PatientController) Patients(w http.ResponseWriter, r *http.Request)
- func (pc PatientController) UpdatePatient(w http.ResponseWriter, r *http.Request)
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
Click to show internal directories.
Click to hide internal directories.