Documentation
¶
Index ¶
- func AddTodoItemHandler(db *mgo.Collection) http.HandlerFunc
- func CompleteTodoItemHandler(db *mgo.Collection) http.HandlerFunc
- func DeleteTodoItemHandler(db *mgo.Collection) http.HandlerFunc
- func GetByID(id string, db *mgo.Collection) []models.TodoItem
- func GetTodoItemHandler(db *mgo.Collection) http.HandlerFunc
- func HealthCheckHandler(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTodoItemHandler ¶
func AddTodoItemHandler(db *mgo.Collection) http.HandlerFunc
AddTodoItemHandler adds a new TodoItem.
func CompleteTodoItemHandler ¶
func CompleteTodoItemHandler(db *mgo.Collection) http.HandlerFunc
CompleteTodoItemHandler marks a TodoItem as done.
func DeleteTodoItemHandler ¶
func DeleteTodoItemHandler(db *mgo.Collection) http.HandlerFunc
DeleteTodoItemHandler deletes a TodoItem.
func GetByID ¶
func GetByID(id string, db *mgo.Collection) []models.TodoItem
GetByID gets a TodoItem by ID.
func GetTodoItemHandler ¶
func GetTodoItemHandler(db *mgo.Collection) http.HandlerFunc
GetTodoItemHandler gets a TodoItem.
func HealthCheckHandler ¶
func HealthCheckHandler(w http.ResponseWriter, r *http.Request)
HealthCheckHandler handles the GET request to /health.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.