Documentation ¶
Index ¶
- func CreateMeditation(w http.ResponseWriter, r *http.Request)
- func DeleteMeditation(w http.ResponseWriter, r *http.Request)
- func GetMeditationByID(w http.ResponseWriter, r *http.Request)
- func GetMeditations(w http.ResponseWriter, r *http.Request)
- func UpdateMeditation(w http.ResponseWriter, r *http.Request)
- type Meditation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMeditation ¶
func CreateMeditation(w http.ResponseWriter, r *http.Request)
Handler for creating a new meditation
func DeleteMeditation ¶
func DeleteMeditation(w http.ResponseWriter, r *http.Request)
Handler for deleting a meditation by ID
func GetMeditationByID ¶
func GetMeditationByID(w http.ResponseWriter, r *http.Request)
Handler for getting a specific meditation by ID
func GetMeditations ¶
func GetMeditations(w http.ResponseWriter, r *http.Request)
Handler for getting all meditations
func UpdateMeditation ¶
func UpdateMeditation(w http.ResponseWriter, r *http.Request)
Handler for updating an existing meditation
Types ¶
type Meditation ¶
type Meditation struct { ID string `json:"id"` Title string `json:"title"` Content string `json:"content"` }
Sample data structure for a meditation
Click to show internal directories.
Click to hide internal directories.