Documentation ¶
Index ¶
- func CreatePaciente(db *mongo.Database, res http.ResponseWriter, req *http.Request)
- func GetPaciente(db *mongo.Database, res http.ResponseWriter, req *http.Request)
- func GetPacientes(db *mongo.Database, res http.ResponseWriter, req *http.Request)
- func JSONContentTypeMiddleware(next http.Handler) http.Handler
- func ResponseWriter(res http.ResponseWriter, statusCode int, message string, data interface{}) error
- func UpdatePaciente(db *mongo.Database, res http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePaciente ¶
CreatePaciente will handle the create person post request
func GetPaciente ¶
GetPaciente will give us person with special id
func GetPacientes ¶
GetPacientes will handle pacientes list get request
func JSONContentTypeMiddleware ¶
JSONContentTypeMiddleware will add the json content type header for all endpoints
func ResponseWriter ¶
func ResponseWriter(res http.ResponseWriter, statusCode int, message string, data interface{}) error
ResponseWriter will write result in http.ResponseWriter
func UpdatePaciente ¶
UpdatePaciente will handle the person update endpoint
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.