package
0.0.0-20230603090221-9658b470419c
Repository: https://github.com/gsc23-headhome/headhome-backend.git
Documentation: pkg.go.dev

# Functions

ChangeCareGiver changes the care giver for a document with the matching id in the care_receiver Firebase collection.
CloseDB destructs the closes the Firebase App Client instance.
CreateCareGiver creates a new document in the care_giver Firebase collection.
CreateCareReceiver creates a document in the care_receiver Firebase collection.
CreateSOSLog creates a new document in the sos_log Firebase collection.
CreateTravelLog creates a new document in the travel_log Firebase collection.
CreateVolunteer creates a new document in the volunteers Firebase Collection.
Delete the document with the matching id from the care_giver Firebase collection.
DeleteCareReceiver deletes a document with the matching id in the care_receiver Firebase collection.
DeleteVolunteer deletes the document with matching id from the volunteer Firebase collection.
FindSOSLog reads the document with the matching SOSId in the sos_log Firebase collection.
InitCareGiver initialises the reference to the care_giver Firebase collection.
InitCareReceiver initialises the reference to the care_receiver Firebase collection.
InitSOSLog initialises the reference to the sos_log Firebase collection.
InitTravelLog initialises the reference to the travel_log Firebase collection.
InitVolunteers initialises the reference to the volunteers Firebase collection.
NewCareReceiver adds a new care receiver to the care receiver list of the document with the matching id in the care_giver Firebase collection.
ReadAllCareGivers reads and returns all documents from the care_giver Firebase collection.
ReadAllCareReceiver reads and returns all documents from the care_receiver Firebase collection.
ReadAllSOSLogs reads and returns all documents from the sos_log Firebase collection.
Read all documents.
ReadAllVolunteers reads and returns all documents from the volunteers Firebase collection.
ReadCareGiver reads and returns a document with the matching id from the care_giver Firebase collection.
ReadCareReceiver reads and returns the document with the mathcing id from the care_receiver Firebase collection.
ReadLatestSOSLog reads and returns the all documents with cr_id field matching the specified id in the sos_log Firebase collection.
ReadLatestTravelLog reads and returns the last created document with cr_id that matches the id, from the travel_log Firebase collection.
ReadTravelLog reads and returns all documents with cr_id matching the specified id in the travel_log Firebase collection.
ReadVolunteer reads and returns the document with matching id from the volunteers Firebase collection.
RemoveCareReceiver removes a new care receiver from the care receiver list of the document with the matching id in the care_giver Firebase collection.
UpdateCareGiver updates a document with the matching id in the care_giver Firebase collection (use NewCareReceiver and RemoveCareReceiver to modify the care receiver list).
UpdateCareReceiver updates the document with the matching id in the care_giver Firebase collection (use ChangeCareGiver to modify the related caregiver).
UpdateSOSLog updates the document with the matching id in the sos_log Firebase collection.
UpdateTravelLog updates the document with matching id in the travel_log Firebase collection.
UpdateVolunteer updates the document with matching id from the the volunteers Firebase collection.

# Variables

No description provided by the author
No description provided by the author